Skip to content

PO-3438: Update the UserEntity to reflect changes to the DB schema Users table.#443

Open
RustyHMCTS wants to merge 1 commit intomasterfrom
PO-3438-update-users
Open

PO-3438: Update the UserEntity to reflect changes to the DB schema Users table.#443
RustyHMCTS wants to merge 1 commit intomasterfrom
PO-3438-update-users

Conversation

@RustyHMCTS
Copy link
Copy Markdown
Contributor

Does this PR introduce a breaking change?** (check one with "x")

[ ] Yes
[x] Hopefully No
[ ] No

…for User Management Tactical

PO-3438: Update the UserEntity to reflect changes to the DB schema Users table.
Copy link
Copy Markdown

@thanhdat-nguyen-hmcts thanhdat-nguyen-hmcts left a comment

Choose a reason for hiding this comment

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

LGTM

.saveAndFlush(UserEntity.builder()
.username(claimSet.getClaim(PREFERRED_USERNAME_CLAIM).toString())
.status(UserStatus.CREATED)
.createdDate(LocalDateTime.now())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be nicer to wire in a Clock to this service, and use LocalDateTime.now(clock).
Then we can assert on the time in the unit test

Copy link
Copy Markdown
Contributor

@Sean-Reed-CGI Sean-Reed-CGI left a comment

Choose a reason for hiding this comment

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

adding comments..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants