Skip to content

Alisha/feature pie chart volunteering fresh#1663

Open
alishawalunj wants to merge 6 commits intodevelopmentfrom
alisha/feature-pie-chart-volunteering-fresh
Open

Alisha/feature pie chart volunteering fresh#1663
alishawalunj wants to merge 6 commits intodevelopmentfrom
alisha/feature-pie-chart-volunteering-fresh

Conversation

@alishawalunj
Copy link
Contributor

@alishawalunj alishawalunj commented Aug 16, 2025

Description

E72F725D-EC84-4B47-9BAB-46C9209F5FF0

Related PRS (if any):

To test this backend PR you need to checkout the #3910 frontend PR.

Main changes explained:

  • Fetches breakdown of applicants by reason of volunteering
  • Added role based filtering

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. Test the API using Postman:
    GET http://localhost:4500/api/analytics/opt-status
  6. Verify the response returns totalCandidates and breakdown with fields: optStatus(category), count, percentage
  7. Optional params to be passed:
  • Date ranges : 2024-06-15 to 2024-07-14
  • Role: Analyst, Developer, QA, Intern

Screenshots or videos of changes:

5925ACC1-96F6-405B-919B-A6672A0560A8
A70117B2-6943-466F-AAB6-637910F53A48

Copy link
Contributor

@harshavarma29 harshavarma29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested the PR in Postman using admin credentials. It is not working as expected in the following scenarios

  1. No data is returned when the start date and end date overlap, an invalid role name is provided, or certain filter combinations are used. It would be better to display a message in these cases:
negative_scenarios
  1. Dates are displayed even for invalid inputs. It would be better to show an error message instead:
invalid_date_format_no_error_message

Copy link
Contributor

@linkhanthtel linkhanthtel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Response returns totalCandidates and breakdown with fields: optStatus(category), count, percentage. Nice work!

#1663

@Anusha-Gali Anusha-Gali added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Nov 27, 2025
Copy link

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Alisha,

I have reviewed your PR locally and mentioned few changes on the frontend. The backend does work as per requirement.
Screenshot 2025-11-29 at 1 35 57 AM
Screenshot 2025-11-29 at 1 37 05 AM
Screenshot 2025-11-29 at 1 38 52 AM

@alishawalunj alishawalunj force-pushed the alisha/feature-pie-chart-volunteering-fresh branch from 1825379 to 1440115 Compare January 24, 2026 22:47
@alishawalunj alishawalunj force-pushed the alisha/feature-pie-chart-volunteering-fresh branch from f3a4f55 to c6c73be Compare March 7, 2026 21:10
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 8, 2026

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

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants