Skip to content

claude-ship-a-change-end-to-end - #22

Closed
tuitioner wants to merge 4 commits into
mate-academy:mainfrom
tuitioner:main
Closed

claude-ship-a-change-end-to-end#22
tuitioner wants to merge 4 commits into
mate-academy:mainfrom
tuitioner:main

Conversation

@tuitioner

Copy link
Copy Markdown

Two commits for the feature, plus this notes file:

  1. db/store.js — add the updateUser helper (data layer).
  2. routes/users.js — add the PUT /:id route that validates input and
    wires up the helper (API layer).

Splitting store from route keeps each commit reviewable on its own — the
data-access change and the HTTP/validation change are different concerns,
and this mirrors how createUser/POST and getUserById/GET :id are
already split across the two files.

tuitioner and others added 4 commits July 6, 2026 14:57
Finds a user by id and overwrites name/email in place, returning
undefined if the user doesn't exist so callers can 404.
Validates that name and email are present (400 otherwise), updates
the user via store.updateUser, and returns 404 when the id doesn't
exist. Mirrors the validation and not-found pattern already used by
the POST and GET /:id routes.
Documents the plan, model choice, commit split, and self-review for
the update-user endpoint.
Add PUT /users/:id (update user) endpoint
@tuitioner tuitioner closed this by deleting the head repository Jul 7, 2026
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