Repository navigation
MSPCA-56 Add pets and household details to foster volunteers - #34
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s when hasChildren is turned off Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion comments Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dburkhart07
requested changes
Nov 16, 2026
dburkhart07
left a comment
Collaborator
There was a problem hiding this comment.
a lot of small things but looks amazing so far. such a clean PR for so many edge cases. tests are all well-written as well. 10x dev fr
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Move PetDto to pets/dtos, document params on the children-rule helpers, and type the pet fixtures in specs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
dburkhart07
approved these changes
Nov 18, 2026
dburkhart07
left a comment
Collaborator
There was a problem hiding this comment.
super clean PR, rest of the comments are small. thank you Justin!!!! 🐟
…-pets # Conflicts: # apps/backend/src/volunteers/volunteers.entity.ts # apps/backend/src/volunteers/volunteers.service.spec.ts # apps/backend/src/volunteers/volunteers.service.ts
Combine the create() InternalServerErrorException @throws, use real coordinator and pet data in the findByIdOrFail test, cast the pet fixtures, drop the livelyNeighborhood update test, and assert the old pet is left out of the saved list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dburkhart07
requested review from
psmolyan
and removed request for
Yurika-Kan
November 22, 2026 20:26
psmolyan
approved these changes
Nov 22, 2026
psmolyan
left a comment
There was a problem hiding this comment.
looks great, had some concerns abt hasChildren but i snooped through ur old replies to comments and makes sense!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ℹ️ Issue
Closes MSPCA-56
📝 Description
residentAnimalswas free text, so coordinators couldn't tell which animals already live in a volunteer's home. Volunteers now have a structured list of pets, plus whether they have children (and their ages) and whether they have a separate room for a foster animal.petstable: age in years and months (0–11), species (FosterType) and breed, linked to the volunteer withON DELETE CASCADE. No controller, service or module.has_childrenandhas_separate_foster_room(both required) andchildren_ages int[].resident_animalsis dropped.hasChildren: trueneeds at least one age, andfalseneeds none. A databaseCHECKenforces it, and the service checks it first so a bad request gets a 400 instead of a 500.POST /volunteers,PATCH /volunteers/:idandcoordinator-update-profileaccept the new fields. On create,childrenAgesandpetsdefault to[]. Sendingpetsreplaces the whole list, and leaving it out keeps the current pets. Every volunteer endpoint returnspets.✔️ Verification
ValidationPipeto check nested pets survivewhitelist. All 441 backend tests pass, and lint and typecheck are clean.up→down→upagainst local Postgres. Existing rows getfalseand{}.age_month = 12are rejected, deleting a volunteer removes their pets, and saving one pet over two leaves exactly one row.🏕️ (Optional) Future Work / Notes
Volunteertype in Pk/mspca 46 animal availability frontend endpoint #30 (which now includes MSPCA-51 Add navbar to the app layout #31) still hasresidentAnimals. Whichever PR merges second should update it.🤖 Generated with Claude Code