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

As a user I would like to be able to change my username #305

Closed
odrotbohm opened this issue Jan 20, 2020 · 0 comments
Closed

As a user I would like to be able to change my username #305

odrotbohm opened this issue Jan 20, 2020 · 0 comments
Assignees
Labels
module: user accounts User Accounts prio: 2 - medium Medium priority issues type: enhancement Improvements and new features
Milestone

Comments

@odrotbohm
Copy link
Member

The username is currently embedded in the UserAccountIdentifier, which makes it very hard to change it.

@odrotbohm odrotbohm added this to the 8.0 milestone Jan 20, 2020
@odrotbohm odrotbohm self-assigned this Jan 20, 2020
@odrotbohm odrotbohm added module: user accounts User Accounts prio: 2 - medium Medium priority issues type: enhancement Improvements and new features labels Sep 24, 2020
@odrotbohm odrotbohm modified the milestones: 7.3, 8.0 Sep 24, 2020
odrotbohm added a commit that referenced this issue Sep 26, 2023
We now use a simple UUID as backing value for the UserAccountIdentifier and additionally register a unique username as separate property. That allows code to freely change the username on a UserAccount assuming it stays unique within the application.

The UserAccount aggregate handling was changed to defensively detach all instances returned from UserAccountManagement. Without that, hanging a username on a managed entity effectively prevents proper application level error handling as issuing a query to potentially find conflicting other user accounts will prematurely flush the changed data, issue an update that in turn causes a DataIntegrityViolation exception.
odrotbohm added a commit that referenced this issue Sep 26, 2023
Mostly Javadoc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: user accounts User Accounts prio: 2 - medium Medium priority issues type: enhancement Improvements and new features
Projects
None yet
Development

No branches or pull requests

1 participant