Skip to content

Shendu 95 179 volunteer date filters#207

Open
shendu-95 wants to merge 2 commits into
saayam-for-all:devfrom
shendu-95:shendu-95_179_volunteer_date_filters
Open

Shendu 95 179 volunteer date filters#207
shendu-95 wants to merge 2 commits into
saayam-for-all:devfrom
shendu-95:shendu-95_179_volunteer_date_filters

Conversation

@shendu-95

Copy link
Copy Markdown

-Date Filter Helpers: Added build_date_filter_trend() and build_date_filter_location() to dynamically generate SQL WHERE clauses for 7D, 30D, 1Y, All, and Custom ranges.

-Dynamic Grouping: Added get_grouping() to automatically aggregate Activity Trend data by day (for short/custom ranges) or month (for 1Y/All ranges).

-Schema Update: Changed the output key in the Activity Trend response from month to period to accurately reflect the new dynamic grouping.

-Preserved Location Logic: Applied date filters to the Location queries without altering the existing country aggregation or response format.

-Payload Parsing: Updated lambda_handler to accept independent timeline controls (time_range vs time_range_location).

-Cross-Region Merging: Renamed and updated merge_period_data to accommodate the new period key when combining Virginia and Ireland datasets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant