Vie privée : anonymiser les professionnels non actifs depuis plus de deux ans#6366
Merged
Merged
Conversation
161de9e to
807a250
Compare
807a250 to
17be1a3
Compare
Contributor
|
Ça me semble très bien 👍 |
5d4dad3 to
9bcf1cc
Compare
17be1a3 to
12a53e2
Compare
9bcf1cc to
25a2beb
Compare
12a53e2 to
5535a9b
Compare
25a2beb to
0c88ea8
Compare
5535a9b to
b5af8af
Compare
0c88ea8 to
5db364f
Compare
b5af8af to
c13e297
Compare
c13e297 to
6b0d070
Compare
5db364f to
7049e2d
Compare
6b0d070 to
ead635a
Compare
7049e2d to
72e189a
Compare
80b0145 to
d1d5ad7
Compare
72e189a to
01158a8
Compare
d1d5ad7 to
9b1b79d
Compare
Base automatically changed from
vp/GEN-2421_reset_notified_professionals
to
master
June 30, 2025 09:30
46b68ac to
ee1c8f0
Compare
2f5890c to
caa0753
Compare
d6d162a to
7b24a36
Compare
xavfernandez
approved these changes
Jul 1, 2025
added 3 commits
July 1, 2025 21:35
…elated objects of User model 1. These related object are not deleted on cascade, anonymization will be different if some of them exist or not, 2. We use it to alert tech-of-the-future to check archive management command when adding new related object is added to User model
prepare reuse in anonymize_professionals command
7b24a36 to
a882fc6
Compare
added 2 commits
July 1, 2025 22:06
delete user and store anonymous datas in AnonymizedProfessional, or anonymize user data until no restricted nor protected related object remains link to the user.
remove snapshot in benefit of readable expected_message
a882fc6 to
09e2956
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
reprise de #6074 suite au split de la management commande dans #6332
prerequis #6370 (ajout & modification des modèles) et #6371 (déclaration de la management command)
🤔 Pourquoi ?
Anonymiser les comptes de prescripteurs, d'employeurs et d'inspecteurs du travail, inactifs depuis 24 mois
Si le compte n'est lié à aucun objet protégé ou restreint, l'utilisater est supprimé, un
AnonymizedProfessionnalest enregistré à la place.Si le compte est lié à des objets protégés ou restreints, l'utilisateur est conservé, les données personnelles sont effacées sauf le nom et le prénom. L'utilisateur et ses
membershipssont passés à l'étatis_active=False. Son password est rendu inutilisable🍰 Comment ?
🎲 A noter
Les tests de la classe
TestRelatedObjectsConsistencypermettent de s'assurer que la liste des relations avec le modèleUsern'évolue pas sans rappeler le besoin de mettre à jour, éventuellement, les commandes de notification et d'archivage