Skip to content

Take-Home Assignment Submission - Shivam Verma - #80

Open
shivamvermajss wants to merge 1 commit into
rohit-ups:mainfrom
shivamvermajss:shivam-assignment
Open

Take-Home Assignment Submission - Shivam Verma#80
shivamvermajss wants to merge 1 commit into
rohit-ups:mainfrom
shivamvermajss:shivam-assignment

Conversation

@shivamvermajss

Copy link
Copy Markdown

Take-Home Assignment Submission

Implemented the requested testing, bug investigation, bug fix, and API feature work.

Completed

  • Added unit tests for the task service
  • Added integration/API route tests using Supertest
  • Added BUG_REPORT.md documenting discovered bugs
  • Fixed the pagination bug in getPaginated()
  • Added PATCH /tasks/:id/assign
  • Added assignee validation
  • Added tests for valid assignment, missing/invalid assignee, non-existent task, and duplicate assignment

Selected Bug Fix

Fixed the pagination offset calculation from:

page * limit

to:

(page - 1) * limit

This makes pagination behave correctly for 1-indexed pages.

Test Status

56 tests are currently passing.

3 tests remain failing for bugs that were discovered and documented in BUG_REPORT.md but were intentionally not selected for the Part B fix.

Branch

shivam-assignment

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