Gayatri/fix volunteer count mismatch - #2312
Open
sawantgayatri19 wants to merge 8 commits into
Open
Conversation
iAbhi001
self-requested a review
August 23, 2026 01:53
…ndDate query params and direct issueDate filtering behavior
…ality Gate coverage requirement
… bmGetInjuryIssue, bmDeleteInjuryIssue, bmRenameInjuryIssue, bmCopyInjuryIssue) to close SonarCloud coverage gap
|
DeepighaJ
approved these changes
Aug 29, 2026
DeepighaJ
left a comment
There was a problem hiding this comment.
Tested the PR locally. Verified the updated Team Stats values against the API response — In Team: 1,015 and Not In Team: 1,612 match the usersInTeamStats response. The Volunteer Status section also matches the volunteerstats API response.
I noticed the overall Team Stats total (2,627) differs from the Volunteer Status total (2,564); however, these sections may represent different user populations based on the updated calculation logic. No UI/API mismatch was observed within the respective sections during testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
This PR resolves a discrepancy between the "Team Stats" volunteer count and the broader "Volunteer Status" active user pool by updating the
getTeamMembersCounthelper function. Previously, overly restrictive filters (weeklycommittedHoursandrole) were causing a mismatch in organization summary metrics.Related PRs (if any):
This is a backend PR for resolving organization report metrics.
Main changes explained:
src/helpers/overviewReportHelper.jsto remove restrictive base filters (weeklycommittedHoursandrole) fromgetTeamMembersCount.How to test:
git checkout gayatri/fix-volunteer-count-mismatchnpm installto ensure all dependencies are up to date.Screenshots or videos of changes:
Attach screenshots showing the updated metrics matching properly