Date offset fix & post response detail echo #2

Open
thread wants to merge 1 commits from followup into main
Owner
  • Fix date offset to be more robust. Conveniently, it worked with how I was testing, but there would be a real-world bug.
  • Added postman-echo response status code and echoed data per requirements.

New output:

~/c/jump (main|✚2) [1]$ mix escript.build; ./jump --article Wealth_management --days 4
Compiling 1 file (.ex)
Generated jump app
Generated escript jump with MIX_ENV=dev
Summary:
%{
  article: "Wealth_management",
  avg_daily_pageviews: 141.33333333333334,
  event_name: "campaign_spike_conversion",
  top_day: %{date: "2026041400", pageviews: 166},
  total_pageviews: 424,
  window_days: 4
}

Post Response (Status 200):
%{"article" => "Wealth_management", "avg_daily_pageviews" => 141.33333333333334, "event_name" => "campaign_spike_conversion", "top_day" => %{"date" => "2026041400", "pageviews" => 166}, "total_pageviews" => 424, "window_days" => 4}

done.
- Fix date offset to be more robust. Conveniently, it worked with how I was testing, but there would be a real-world bug. - Added postman-echo response status code and echoed data per requirements. New output: ``` ~/c/jump (main|✚2) [1]$ mix escript.build; ./jump --article Wealth_management --days 4 Compiling 1 file (.ex) Generated jump app Generated escript jump with MIX_ENV=dev Summary: %{ article: "Wealth_management", avg_daily_pageviews: 141.33333333333334, event_name: "campaign_spike_conversion", top_day: %{date: "2026041400", pageviews: 166}, total_pageviews: 424, window_days: 4 } Post Response (Status 200): %{"article" => "Wealth_management", "avg_daily_pageviews" => 141.33333333333334, "event_name" => "campaign_spike_conversion", "top_day" => %{"date" => "2026041400", "pageviews" => 166}, "total_pageviews" => 424, "window_days" => 4} done. ```
thread added 1 commit 2026-04-15 21:09:59 -04:00
thread force-pushed followup from c9bd5207b0 to a8eab3c9c8 2026-04-15 21:09:59 -04:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin followup:followup
git checkout followup
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: thread/jump#2