Skip to content
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

BAU: refactor account management request objects to records #5339

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alhcomer
Copy link
Contributor

@alhcomer alhcomer commented Oct 7, 2024

What

BAU: refactor account management request objects to records

How to review

  1. Code Review

@alhcomer alhcomer requested review from a team as code owners October 7, 2024 11:16
@alhcomer alhcomer marked this pull request as draft October 7, 2024 11:16
@alhcomer alhcomer force-pushed the AUT-2874/manually-hit-update-email branch 5 times, most recently from ced1e94 to 7a5410c Compare October 9, 2024 12:04
@alhcomer alhcomer changed the title BAU: Refactor UpdateEmailRequest to be a record AUT-3786: Manually request update email API Oct 9, 2024
@alhcomer alhcomer marked this pull request as ready for review October 9, 2024 12:07
@alhcomer alhcomer force-pushed the AUT-2874/manually-hit-update-email branch 2 times, most recently from 6a9c331 to 090ca63 Compare October 9, 2024 13:40
@alhcomer alhcomer changed the title AUT-3786: Manually request update email API BAU: Refactored the UpdateEmailRequest to a record Oct 9, 2024
@alhcomer alhcomer changed the title BAU: Refactored the UpdateEmailRequest to a record BAU: refactor account management request objects to records Oct 9, 2024
Copy link

sonarcloud bot commented Oct 9, 2024

Copy link
Contributor

@BeckaL BeckaL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks generally good to me! lovely line count removal too :-D One question / comment in there, but otherwise LGTM. I think because the account management api isn't exercised in acceptance tests, we should probably do a cautious test of some account management stuff in staging before we let it go to prod, but I think should all be fine.

this.existingEmailAddress = existingEmailAddress.toLowerCase();
this.replacementEmailAddress = replacementEmailAddress.toLowerCase();
this.existingEmailAddress =
existingEmailAddress != null ? existingEmailAddress.toLowerCase() : null;
Copy link
Contributor

@BeckaL BeckaL Oct 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any particular reason we added this null check in here? (Thoughts being I'd rather not have assumptions that things could be null, and if we didn't need it before I'd be anti adding it in now. I'd rather use optionals in all nullable cases)

@alhcomer alhcomer force-pushed the AUT-2874/manually-hit-update-email branch from 26efbd0 to cff3e85 Compare October 17, 2024 15:01
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