Skip to content

fix: clear email during user retirement - #3003

Merged
deborahgu merged 1 commit into
openedx:masterfrom
naincy128:upstream/LP-959
Aug 28, 2026
Merged

fix: clear email during user retirement#3003
deborahgu merged 1 commit into
openedx:masterfrom
naincy128:upstream/LP-959

Conversation

@naincy128

@naincy128 naincy128 commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Description

This PR fixes an issue where the Credentials service user retirement flow did not fully anonymize retired users email.

Changes

Clear the email field during the user retirement process.

Ticket

LP-959

@naincy128
naincy128 requested review from GlugovGrGlib, bmtcril and deborahgu and removed request for bmtcril August 28, 2026 08:49
@naincy128
naincy128 requested a review from bmtcril August 28, 2026 11:18
@bmtcril
bmtcril requested a review from jajjibhai008 August 28, 2026 13:18
return False
return True

def _replace_username_for_all_models(self, current_username, new_username, replacement_locations):

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.

nit: It would be good to rename this to more closely match what's happening in here

@bmtcril bmtcril left a comment

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.

Just one nit, otherwise looks good to me.

@deborahgu
deborahgu enabled auto-merge (squash) August 28, 2026 20:22
@deborahgu
deborahgu merged commit 0c9545c into openedx:master Aug 28, 2026
7 checks passed
naincy128 added a commit to edx/credentials that referenced this pull request Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants