-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Background Want to provider ways to have `nickname`, so I would like to offer an endpoint to change the nickname. ## What's done successful nickname change (i.e `my-nickname`): <img width="1059" alt="image" src="https://github.com/user-attachments/assets/34da97a2-2e07-49df-b182-5e9be915aff9"> if setting nickname is already set by yours: <img width="760" alt="image" src="https://github.com/user-attachments/assets/ac4e5b1e-a98b-4b8e-9a1c-bc33fd8b317d"> If nickname already exists: <img width="602" alt="image" src="https://github.com/user-attachments/assets/3635b85e-9b39-4c0a-b7ed-396e6a4f2fbb"> Returns the following if body is empty: <img width="479" alt="image" src="https://github.com/user-attachments/assets/9233aa8f-262e-4068-a8da-7c562a2b7938"> ## Checklist Before PR Review - [x] The following has been handled: - `Draft` is set for this PR - `Title` is checked - `Background` is filled - `Assignee` is set - `Labels` are set - `development` is linked if related issue exists ## Checklist (Right Before PR Review Request) - [x] The following has been handled: - Final Operation Check is done - Mobile View Operation Check is done - Make this PR as an open PR ## Checklist (Reviewers) - [x] Check if there are any other missing TODOs that are not yet listed - [x] Review Code - [x] Every item on the checklist has been addressed accordingly - [x] If `development` is associated to this PR, you must check if every TODOs are handled
- Loading branch information
Showing
9 changed files
with
91 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 |
---|---|---|
|
@@ -29,6 +29,7 @@ export class UserDomain { | |
return new UserDomain({ | ||
id: 'abc', | ||
federalID: 'abc', | ||
nickname: 'mlajkim', | ||
givenName: 'AJ', | ||
familyName: 'Kim', | ||
email: '[email protected]', | ||
|
@@ -89,6 +90,7 @@ export class UserDomain { | |
return new UserDomain({ | ||
id: props.id, | ||
federalID: props.federalID, | ||
nickname: props.nickname, | ||
givenName: props.firstName, | ||
familyName: props.lastName, | ||
email: props.email, | ||
|
This file contains 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,6 @@ | ||
import { IsOptional } from 'class-validator' | ||
|
||
export class PatchUserDTO { | ||
@IsOptional() | ||
nickname: string | ||
} |
This file contains 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,9 @@ | ||
import { InternalServerError } from './index.error' | ||
|
||
/** Thrown when things should never happen. | ||
*/ | ||
export class CriticalError extends InternalServerError { | ||
constructor(reasonWhyCritical: string) { | ||
super(`CRITICAL_ERROR: ${reasonWhyCritical}`) // i.e) User email is not present | ||
} | ||
} |
This file contains 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 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