Skip to content

Vie privée : anonymiser les candidats avec un PASS échu depuis plus de 2 ans [GEN-2481] - #6182

Merged
vincentporte merged 5 commits into
masterfrom
vp/GEN-2481_archive_jobseeker_with_old_approval
Jul 24, 2025
Merged

vincentporte merged 5 commits into
masterfrom
vp/GEN-2481_archive_jobseeker_with_old_approval

Conversation

@vincentporte

@vincentporte vincentporte commented May 22, 2025 •

Copy link
Copy Markdown

🤔 Pourquoi ?

Stocker de manière anonymisée, les données de Approval, EligibilityDiagnosis et GEIQEligibilityDiagnosis des candidats avec un PASS échu depuis plus de 2 ans.

⚠️ Cette PR ne traite que la partie anonymisation et suppression. La PR #6551 prend en charge la notification de ces candidats

🍰 Comment ?

  • ajout du modèle AnonymizedApproval
  • ajout des modèles AnonymizedSIAEEligibilityDiagnosis et AnonymizedGEIQEligibilityDiagnosis

PRE-REQUIS #6573

@notion-workspace

Copy link
Copy Markdown

@vincentporte vincentporte self-assigned this May 22, 2025
@vincentporte vincentporte added the ajouté Ajouté dans le changelog. label May 22, 2025
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch 2 times, most recently from 1bba7cf to a861b90 Compare June 17, 2025 08:45
@vincentporte vincentporte changed the title Vie privée : notifier et archiver les candidats avec un PASS échu depuis plus de 2 ans [GEN-2481] Vie privée : archiver les candidats avec un PASS échu depuis plus de 2 ans [GEN-2481] Jun 17, 2025
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch from a861b90 to 2a08e5f Compare June 17, 2025 09:10
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch 2 times, most recently from 83af484 to 5a7a937 Compare June 17, 2025 13:30
@vincentporte vincentporte changed the title Vie privée : archiver les candidats avec un PASS échu depuis plus de 2 ans [GEN-2481] Vie privée : anonymiser les candidats avec un PASS échu depuis plus de 2 ans [GEN-2481] Jun 17, 2025

@tonial tonial 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.

J'ai fait une revue rapide parce que j'ai l'impression que tu es encore en train de travailler sur la PD

Comment thread itou/archive/models.py
Comment thread itou/archive/models.py
Comment thread itou/archive/models.py
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch from 5a7a937 to 7756e4f Compare July 1, 2025 15:18
Comment thread itou/archive/models.py
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch 13 times, most recently from 6a50ead to d6dde31 Compare July 8, 2025 17:06

@tonial tonial 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.

Ça me semble bien.
Je pense ici aussi qu'on pourrait gagner en faciliter de relecture des tests en évitant des parametrize super long et en mettant tout dans un seul test, mais je me rends bien compte que c'est fortement subjectif :)

Comment thread itou/archive/management/commands/anonymize_jobseekers.py Outdated
Comment thread itou/archive/management/commands/anonymize_jobseekers.py Outdated
Comment thread tests/archive/tests_management_command.py Outdated
Comment thread tests/archive/tests_management_command.py Outdated
Comment thread itou/archive/models.py
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch 2 times, most recently from 97f16c3 to 0f79f99 Compare July 21, 2025 13:27
@vincentporte
vincentporte changed the base branch from master to vp/archive_remove_anonymized_at July 21, 2025 15:45
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch from 0f79f99 to 12fbe5e Compare July 21, 2025 15:51

@vincentporte vincentporte left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix it

Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
Comment thread itou/archive/models.py Outdated
@vincentporte
vincentporte force-pushed the vp/archive_remove_anonymized_at branch from eaf1082 to 6c14162 Compare July 21, 2025 16:15
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch from 12fbe5e to 51b36d8 Compare July 21, 2025 16:21
@rsebille

Copy link
Copy Markdown
Contributor

fix it

Je ne fait que passer, mais tu peux aussi faire ça : f"{datetime.datetime.now():%Y-%m}" 🦸 💨

@vincentporte
vincentporte force-pushed the vp/archive_remove_anonymized_at branch from cbad595 to 8acfd9e Compare July 22, 2025 04:53
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch from 51b36d8 to bbfdb0a Compare July 22, 2025 04:58
Comment thread tests/archive/factories.py Outdated
Comment thread tests/archive/tests_management_command.py Outdated
@vincentporte
vincentporte force-pushed the vp/archive_remove_anonymized_at branch from 8acfd9e to a90503d Compare July 24, 2025 09:39
Base automatically changed from vp/archive_remove_anonymized_at to master July 24, 2025 09:57
vincent porte added 4 commits July 24, 2025 15:01
…dels

Store non-personnal datas on Approval and non-personnal datas on Eligibility Diagnoses (IAE & GEIQ)
for long time stats purposes
Reword archive__xx vars into anonymized__xx in anonymized_jobseekers command
for more consistency
…nymizedApplication

Store data relating to job seeker and job application approvals.
This commit is dedicated to data enrichment of existing models.
store data relating to approval in a dedicated model
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch from bbfdb0a to 634995b Compare July 24, 2025 13:02
…eeker

Store data relating to job seeker eligibility diagnoses.
This commit is dedicated to data enrichment of existing models
@vincentporte
vincentporte force-pushed the vp/GEN-2481_archive_jobseeker_with_old_approval branch from 634995b to 27d4d12 Compare July 24, 2025 13:06
@vincentporte
vincentporte added this pull request to the merge queue Jul 24, 2025
Merged via the queue into master with commit 0e9ab95 Jul 24, 2025
@vincentporte
vincentporte deleted the vp/GEN-2481_archive_jobseeker_with_old_approval branch July 24, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ajouté Ajouté dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants