Skip to content

Bug/fix mentee reg#724

Merged
Sowmiya07 merged 3 commits into
Women-Coding-Community:mainfrom
Sowmiya07:bug/fix-mentee-reg
Jul 1, 2026
Merged

Bug/fix mentee reg#724
Sowmiya07 merged 3 commits into
Women-Coding-Community:mainfrom
Sowmiya07:bug/fix-mentee-reg

Conversation

@Sowmiya07

Copy link
Copy Markdown
Contributor

Fix: Preserve memberTypes and profileStatus on existing mentee update

When a mentee re-registers, the incoming request carries neither memberTypes nor profileStatus, causing a @notempty validation failure and a NullPointerException respectively.

MenteeService.handleMenteeWithId — capture the existing mentee from findById and merge its memberTypes before calling update.

PostgresMenteeRepository.update / create — resolve profileStatus once from the existing record if null in the incoming mentee, reusing the findById result already in scope to avoid redundant DB calls.

Add Endpoint for Cycle Status Update

image image

@Sowmiya07

Copy link
Copy Markdown
Contributor Author

Fix: Preserve memberTypes and profileStatus on existing mentee update
When a mentee re-registers, the incoming request carries neither memberTypes nor profileStatus, causing a @notempty validation failure and a NullPointerException respectively.

MenteeService.handleMenteeWithId — capture the existing mentee from findById and merge its memberTypes before calling update.

PostgresMenteeRepository.update / create — resolve profileStatus once from the existing record if null in the incoming mentee, reusing the findById result already in scope to avoid redundant DB calls.

@Sowmiya07 Sowmiya07 closed this Jul 1, 2026
@Sowmiya07 Sowmiya07 reopened this Jul 1, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jul 1, 2026

Copy link
Copy Markdown

@Sowmiya07 Sowmiya07 merged commit 059b8dd into Women-Coding-Community:main Jul 1, 2026
8 of 9 checks passed
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.

2 participants