Skip to content

Bugfix and assign endpoint - #76

Open
HeenaShaikh09 wants to merge 3 commits into
rohit-ups:mainfrom
HeenaShaikh09:bugfix-and-assign-endpoint
Open

Bugfix and assign endpoint#76
HeenaShaikh09 wants to merge 3 commits into
rohit-ups:mainfrom
HeenaShaikh09:bugfix-and-assign-endpoint

Conversation

@HeenaShaikh09

Copy link
Copy Markdown

Submission Notes

What I'd test next if I had more time:
Load/stress testing the pagination endpoint now that the offset bug is fixed. I'd also add tests for edge cases like limit=0, negative page numbers, and non-numeric page/limit query values.

What surprised me in the codebase:
The completeTask bug was the most interesting one — a deliberate-looking line (priority: 'medium') that silently overwrote a task's real priority every time it was marked done. Easy to miss just reading the code, but obvious once tested.

Questions I'd ask before shipping to production:

  1. Is the completeTask priority reset intentional, or a bug?
  2. Should getByStatus validate against the status enum instead of substring-matching?
  3. Is a GET /tasks/:id route needed before shipping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant