feat: use shared behavior class for updating email and username #333
+147
−21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Refactor the current username update flow to use a shared behavior class and base updater view and serializer. This enables supporting email updates separately via a different endpoint.
Testing instructions
{{domain}}/eox-core/api/v1/user/with the following payload:I'll implement integration tests once the pipeline is fixed cause I tried running it locally but failed doing so.
Additional information
A client requested the ability to update a user's email address immediately after it is changed in their single sign-on (SSO) identity provider. This is required to maintain GDPR compliance, as communications must always be delivered to the correct and current email recipient. Currently, although the email can be updated via SSO, the change is not applied in the platform until the user logs in. This creates a risk where emails are sent to an outdated address if the user does not log in immediately, potentially resulting in non-compliance with GDPR data management standards.
Checklist for Merge