Feature/update project deadline #95
Merged
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.
Update Project Deadline & Validation Improvements
Description
This PR introduces a mechanism to modify the deadline of an existing Project. Since the "Start Project" workflow strictly enforces time constraints based on the Project Type (#94 ), this feature allows Professors to correct or adjust the deadline within the Project context to meet those requirements, unblocking the lifecycle progression.
Key Changes
1. Project Management API
PATCH /project/:uuid/deadline(Web and Mobile).2. Domain Logic & Validation
validateProjectDeadlinelogic. It now calculates and returns the exact Minimum and Maximum Valid Dates in error messages, making it much easier for clients to understand exactly what date range is required.minEstimatedMonthsandmaxEstimatedMonthsof the associated Project Type before allowing the update.3. Infrastructure
Documentation