Skip to content

Add date filter support for Volunteer Activity Trend and Volunteers by Location#217

Open
mahaveerappini wants to merge 1 commit into
mainfrom
add-date-filters-volunteer-analytics
Open

Add date filter support for Volunteer Activity Trend and Volunteers by Location#217
mahaveerappini wants to merge 1 commit into
mainfrom
add-date-filters-volunteer-analytics

Conversation

@mahaveerappini

Copy link
Copy Markdown

Summary

Adds date filter support (7D / 30D / 1Y / All / Custom) to the Volunteer Activity Trend and Volunteers by Location dashboard widgets, with independent filters for each chart.

Changes

  • Added build_date_filter_trend(), build_date_filter_location(), and get_grouping() helper functions.
  • Updated get_volunteer_activity_trend() to apply date filtering + daily/monthly grouping; response key renamed from month to period.
  • Updated get_volunteers_by_location() to apply date filtering only (grouping and country logic unchanged).
  • Updated lambda_handler() to pass the new filter params through for both Virginia and Ireland.
  • Added a local-testing path to get_db_config() (env vars instead of AWS SSM) — no credentials hardcoded.

Testing

Verified locally against Postgres loaded with the sql/ fixtures — all time ranges filter and group correctly, and the two charts' filters work independently.

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