Feat/159/update a sprint#160
Conversation
|
This pull request introduces functionality to update a sprint in the project management system. It includes the addition of a new controller method, input validation, and route handling for the update operation. New Feature: Update Sprint
Routing
|
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new feature to update an existing sprint by providing a new PUT endpoint and an associated controller to handle sprint updates. Key changes include:
- Adding a PUT route for sprint updates in the routes file.
- Introducing an updateSprint controller function in the sprint controller.
- Importing and utilizing new updateSprintValidation in the controller.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/routes/sprint.routes.js | Added a PUT route for updating a sprint, though it currently uses the createSprint handler. |
| src/controllers/sprint.controller.js | Added a new updateSprint controller with validations and update logic. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
PR Checklist (required)
Please check if your PR fulfills the following requirements:
The commit message follows our guidelines.
Tests for the changes have been added (for bug fixes / features)
PR Type
What kind of change does this PR introduce?
Related Issue
Closes #159