Repository navigation
MSPCA-2: get volunteer by id and update volunteer by id #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
shreeyaadhikari
merged 28 commits into
main
from
sa/mspca-2-get-volunteer-by-id-and-update-volunteer-by-id
Oct 8, 2026
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
2bed4ed
Delete .github/dependabot.yml
dburkhart07 91a46b2
created update volunteer dto
shreeyaadhikari abb1c10
add service logic for get/update volunteer
shreeyaadhikari c8a565b
added not found exception for coordinator not found
shreeyaadhikari 833a402
added controller logic
shreeyaadhikari 0a2009f
service tests
shreeyaadhikari c548f81
service and controller tests
shreeyaadhikari 9f773f2
..
shreeyaadhikari e229d8b
reverted changes meant for another branch
shreeyaadhikari e93101f
Merge branch 'main' of https://github.com/Code-4-Community/mspca into…
shreeyaadhikari 26a1740
fixed prettier checks
shreeyaadhikari 58956c5
Merge branch 'main' of https://github.com/Code-4-Community/mspca into…
shreeyaadhikari ba4b369
resolved dto comments
shreeyaadhikari 1a7b55d
service.ts resolved
shreeyaadhikari fc1fcb1
controller + specs
shreeyaadhikari 2f25424
removed yarn/yml files
shreeyaadhikari 0454032
dto fixes
shreeyaadhikari df9447a
volunteer controller fixes
shreeyaadhikari be0d504
specs
shreeyaadhikari dd3f822
Merge branch 'main' of https://github.com/Code-4-Community/mspca into…
shreeyaadhikari efc5f8b
controller fix
shreeyaadhikari 43f6006
fixes
shreeyaadhikari ba68448
plural naming strat
shreeyaadhikari d073472
added docstrings
shreeyaadhikari 87bb1ce
Merge branch 'main' of https://github.com/Code-4-Community/mspca into…
shreeyaadhikari a1bd218
fixes
shreeyaadhikari 5507313
Merge branch 'main' of https://github.com/Code-4-Community/mspca into…
shreeyaadhikari 079fb85
used findByIdOrFail in volunteer get/update and update tests
shreeyaadhikari File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
|
shreeyaadhikari marked this conversation as resolved.
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| import { Homebase } from '../../types'; | ||
| import { FosterType } from '../volunteers.types'; | ||
| import { | ||
| IsOptional, | ||
| IsString, | ||
| IsEnum, | ||
| IsNotEmpty, | ||
| MaxLength, | ||
| IsPhoneNumber, | ||
| IsEmail, | ||
| } from 'class-validator'; | ||
|
|
||
| export class UpdateVolunteerDto { | ||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| @MaxLength(255) | ||
| firstName?: string; | ||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| @MaxLength(255) | ||
| lastName?: string; | ||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| @IsPhoneNumber('US') | ||
| phone?: string; | ||
|
shreeyaadhikari marked this conversation as resolved.
|
||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| @IsPhoneNumber('US') | ||
| secondaryPhone?: string; | ||
|
shreeyaadhikari marked this conversation as resolved.
shreeyaadhikari marked this conversation as resolved.
|
||
|
|
||
| @IsOptional() | ||
| @IsNotEmpty() | ||
| @MaxLength(255) | ||
| @IsEmail() | ||
| email?: string; | ||
|
shreeyaadhikari marked this conversation as resolved.
|
||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| @MaxLength(255) | ||
| address?: string; | ||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| @MaxLength(255) | ||
| city?: string; | ||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| @MaxLength(10) | ||
| zipcode?: string; | ||
|
|
||
| @IsOptional() | ||
| @IsEnum(Homebase) | ||
| homebase?: Homebase; | ||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| residentAnimals?: string; | ||
|
|
||
| @IsOptional() | ||
| @IsString() | ||
| @IsNotEmpty() | ||
| notes?: string; | ||
|
|
||
| @IsOptional() | ||
| @IsEnum(FosterType) | ||
| fosterType?: FosterType; | ||
| } | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.