RealDevSquad / RealDevSquad/website-backend
Completed task shouldn't allow editing percentage.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
Actual behavior: The Task in Completed State is still allowing to change the percentage
Expected behavior: Once the task is marked as Completed. it should not allow the user to change the percentage.
Reproduction steps:
- Open POSTMAN
- Hit the PACTH call to /tasks/:taskId and mark as completed with percentage as 100
- Now again Hit a patch call to the same route with a new value of
percentCompleted
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior with the PATCH /tasks/:taskId request described in the issue, first marking a task completed with percentCompleted set to 100. Inspect the handler for that endpoint and verify that a later request cannot change the percentage once the task is completed; the task is done when this behavior is confirmed and covered by the relevant API check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs, postman
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100