Skip to content

Task_179#205

Open
sagarikapatha wants to merge 1 commit into
saayam-for-all:mainfrom
sagarikapatha:task_179_volunteer_application_analytics
Open

Task_179#205
sagarikapatha wants to merge 1 commit into
saayam-for-all:mainfrom
sagarikapatha:task_179_volunteer_application_analytics

Conversation

@sagarikapatha

Copy link
Copy Markdown
Contributor

Implemented independent date filter support for Volunteer Activity Trend and Volunteers by Location.

Changes:

  • Added build_date_filter_trend()
  • Added build_date_filter_location()
  • Added get_grouping()
  • Updated get_volunteer_activity_trend() to support 7D, 30D, 1Y, All, and Custom filters
  • Updated get_volunteers_by_location() to support independent date filtering
  • Changed trend response key from month to period
  • Kept Volunteers by Location country aggregation logic unchanged
  • Added LOCAL_DB_TEST mode using CSV files from the sql folder

Testing:

  • python -m py_compile volunteer_application_analytics.py
  • LOCAL_DB_TEST=true python volunteer_application_analytics.py
  • Verified All response locally
  • Verified 30D daily grouped response locally

Implemented independent date filter support for Volunteer Activity Trend and Volunteers by Location.
Added trend and location date filter helpers, grouping logic, period-based trend output, and local CSV test mode.
@sagarikapatha sagarikapatha changed the title Add date filters for volunteer analytics widgets Task_179 Jul 6, 2026
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