Backend Release to Main [3.06]#2214
Merged
Merged
Conversation
Co-authored-by: Nathan Hoffman <nathanahoffman@gmail.com>
- Validates hours is a positive finite number - Checks task ownership (studentId match) - Rejects if task already completed or graded - Caps loggedHours at suggestedTotalHours - Auto-transitions status assigned -> in_progress on first log - Returns loggedHours, suggestedTotalHours, status, canMarkDone
… avoid validation errors
Validate projectId (ObjectId when not ALL), startDate and endDate before querying; return 400 for invalid values. Replace console.error with logger.logException for structured error logging. Made-with: Cursor
Extract buildProjectIdFilter and calculateChangePercentage; add end-of-day constants for month boundaries. Simplify getLessonsLearnt aggregation and map building. Replace console.error with logger.logException in all handler catch blocks. Made-with: Cursor
Cover validation (invalid projectId, startDate, endDate), filter construction (projectId ALL/valid, date range), changePercentage cases (+100%, 0%, +/-50%, +0.0%, multi-project), and 500 + logger on aggregate error. Made-with: Cursor
…Bar-Chart-Card-to-the-Lessons-Learned-Section-on-the-Total-Construction-Summary-Page Rithika taking over for Aditya-feat: Add New Bar Chart Card to the Lessons Learned Section on the Total Construction Summary Page
Sundar: 🔥 fix cors issue due to header policies
…hours-logging Siri - Feature: phase4 hours logging
…team-backend Sai Sandeep taking over for Kristin: Phase 4 - Support Team Backend (Permissions + Daily Log Access)
…leFlow Diya🔥 fix(userStatus): Fixed User Lifecycle Issues
|
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.



Includes: Rithika taking over for Aditya-feat: Add New Bar Chart Card to the Lessons Learned Section on the Total Construction Summary Page 4959+#2093, Sundar: 🔥 fix cors issue due to header policies #2209, Diya 🔥 fix(userStatus): Fixed User Lifecycle Issues 5264+#2212, Siri Sudheeksha Vavila: Feature/siri phase4 hours logging 5226+#2197, Sai Sandeep taking over for Kristin: Phase 4 - Support Team Backend (Permissions + Daily Log Access) #1898, Sayali: 🔥 change promotion-eligibility endpoint from GET to POST to resolve req.body.requestor undefined issue in production #2201, Abhinav kitchen inventory management create database models and backend api endpoints for transplanting and harvesting events #2097, Abhinav kitchen inventory management planting trimming culling events #2109, Abhinav kitchen inventory management create backend api endpoints to get events to the calendar #2082, Abhinav - Kitchen Inventory Management - Create Backend API endpoints to add and retrieve Processing projects #2025,