-
-
Notifications
You must be signed in to change notification settings - Fork 40
Backend Release to Main [2.72] #1910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
…supplier-performance-graph-summary-dboard
…izationRateDowntimeBackend
- Exclude mentors from active volunteers count with role filter - Add dedicated mentors aggregation pipeline for accurate counting - Include mentors in total volunteers calculation as separate category - Add mentor statistics to response (count, percentage, comparison) - Add null safety checks to prevent division by zero errors - Update comparison logic to include mentor count comparisons This change provides better granularity in volunteer reporting by distinguishing mentors from regular volunteers in dashboard analytics.
Update multiple @apimatic packages, browserslist, caniuse-lite, electron-to-chromium, twilio, and other dependencies to latest versions. Includes security patches and bug fixes.
… weekly average calculation - Add null safety for timeEntries.totalSeconds using $ifNull operator - Add null safety for totalBlueSquares count with optional chaining - Refactor getHoursStats to calculate weekly averages based on 4+ days rule - Add helper functions for week counting and bucket assignment - Update bucket structure to use single values (10, 20, 30, 40, 40+) - Implement proper week counting logic (Sunday to Saturday) - Add current week exception (always counts regardless of days) - Filter users to only include those with time entries in date range - Calculate weekly averages only for weeks where user logged time
- Add validateDateParameters() helper function for comprehensive date validation
- Implement graceful error handling that returns error objects instead of throwing exceptions
- Add validation to getWorkDistributionStats() for startDate and endDate parameters
- Add validation to getHoursStats() for all date parameters including comparison dates
- Add validation to getVolunteerHoursStats() for current week and last week date ranges
- Prevent server crashes from invalid date inputs while maintaining clear error messages
- Return structured error responses { error: string } for invalid date formats or ranges
- Support validation for YYYY-MM-DD, ISO strings, and Date object formats
- Validate that start dates are not after end dates for all date pairs
- Ensure comparison dates are provided together when either is specified
- Update getVolunteerHoursStats controller to check for error responses from helper functions - Update getVolunteerStatsData controller to validate pie chart function responses - Return proper 400 Bad Request status with descriptive error messages for invalid dates - Add console logging for date validation errors to help with debugging - Prevent server crashes and provide meaningful error responses to frontend This ensures that invalid date parameters are handled gracefully with appropriate HTTP status codes and error messages instead of generic 500 errors.
- Add validateDateParameters() call to getTotalHoursWorked function - Add safety check for empty data array to prevent undefined access - Update getVolunteerStatsData controller to handle totalHoursWorked error responses - Fix TypeError: Cannot read properties of undefined (reading 'totalHours') - Ensure all date-dependent functions return proper error responses
…r stats endpoint - Add comprehensive date format validation using regex pattern (YYYY-MM-DD) - Implement proper date validity checks using Number.isNaN for Date objects - Add validation for comparison dates (comparisonStartDate, comparisonEndDate) - Replace generic 500 error responses with specific 400 Bad Request responses - Provide detailed error messages for different validation failures: * Invalid date format * Invalid date values (e.g., 2024-13-45) * Missing required date parameters - Fix ESLint violations by replacing isNaN with Number.isNaN - Improve API error responses with structured error objects containing msg and error fields Resolves issue where invalid date parameters returned generic error message instead of proper validation feedback to API consumers.
…uick_setups_not_saving_in_user_profile Venkataramanan 🔥 Quick setups not saving in user profile page
…n-table-api Kristin - Fix Promotion Eligibility Table APIs
…sEmailExistsController Julia - Add Unit tests and Integration Tests to isEmailExistsController
…n_mang_fix Rahul - Permission Management Fix
…nRateDowntimeBackend Sai Moola - Phase 2 Summary Dashboard: Create Horizontal Bar Graph titled Utilization Rate and Downtime of Tools/Equipment backend
…ntsBackend Sai Moola - Phase 4 - Announcements Backend
…io_Announcement_Backend Suparshwa - fix: resolve bio announcement issue
…unt-volunteer-status Aditya feat(reports): separate mentor count from volunteer statistics
…mmary-dashboard-count-mismatch Aditya fix: correct weekly summary dashboard count calculation
…eam-member-counts Deep Fix(totalOrgSummary): update In Team/Not In team queries
…art_Error Mohan fix: Add missing /api/tools/utilization endpoint for Utilization Chart
…on-Pie-Chart-Data-Categorization
…-status-donut-chart-percentages Aditya feat: Add donutChartData with mutually exclusive volunteer categories
…-Hours-Distribution-Pie-Chart-Data-Categorization Aditya - fix: Volunteer Hours Distribution Pie Chart Data Categorization Bug
…er-performance-graph-summary-dboard Sai Moola- backend support for supplier performance graph
…ve_performance_of_update_user_info Venkataramanan fix: performance of update user information
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.
Includes: humemah: Add reason field for Blue Square infringements #1658, Diya 🔥 (hours): Weekly Summary Report Hours Logged #1900, Venkataramanan 🔥 Quick setups not saving in user profile page #1902, Julia - Add Unit tests and Integration Tests to isEmailExistsController #1488, Kristin - Fix Promotion Eligibility Table APIs #1776, Rahul - 🔥 Permission Management permissions reverting when profile edits were made #4318+1812, Sai Moola - Phase 2 Summary Dashboard: Create Horizontal Bar Graph titled Utilization Rate and Downtime of Tools/Equipment backend #1745, Sai Moola - Phase 4 - Announcements Backend #1859, Suparshwa - 🔥 Weekly Summaries Report - resolve bio announcement toggle persistence issue #3888+1657, Aditya - feat: add mentor count to volunteer status dashboard 4142+#1760, Aditya fix: correct weekly summary dashboard count calculation #1790, Deep Fix(totalOrgSummary): update In Team/Not In team queries #1778, Mohan fix: Utilization charts - enable tool and project filters in utilization chart 4397+#1893, Aditya fix: Update volunteer status donut chart to use new donutChartData structure 4191+#1794, Aditya - fix: Volunteer Hours Distribution Pie Chart Data Categorization Bug #1773, Sai Moola- new component for supplier performance graph 3469+#1379, Venkataramanan 🔥 performance of update user information #1909,