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

Ensure deleted user slug is pseudonymized too (fix #2016) #2049

Merged
merged 1 commit into from Feb 26, 2019
Merged

Ensure deleted user slug is pseudonymized too (fix #2016) #2049

merged 1 commit into from Feb 26, 2019

Conversation

noirbizarre
Copy link
Contributor

@noirbizarre noirbizarre commented Feb 25, 2019

This PR fixes #2016 by pseudonymizing the slug too on deletion (will be deleted-XXX where XXX is sequential)

Possible alternatives:

  • use a hash instead of deleted
  • user the user ID instead of deleted
  • add a hash as suffix of deleted (ie. deleted-ae7f89)
  • add a timestamp as suffix (ie. deleted-2019-02-25 but collision are still handled by SlugField so in case of multiple deletion it will be deleted-2019-02-25-1, deleted-2019-02-25-2....)

@noirbizarre noirbizarre added this to the 1.6.5 milestone Feb 25, 2019
@noirbizarre noirbizarre requested a review from a team February 25, 2019 19:39
@noirbizarre noirbizarre merged commit 36f61f6 into opendatateam:master Feb 26, 2019
@noirbizarre noirbizarre deleted the deleted-user-slug branch February 26, 2019 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting a user leaves its slug accessible
1 participant