Skip to content

Vie privée : accélerer la sélection des candidats à archiver - #6609

Merged
vincentporte merged 8 commits into
masterfrom
vp/GEN-2633_remove_job_seekers_with_last_activity
Jul 28, 2025
Merged

vincentporte merged 8 commits into
masterfrom
vp/GEN-2633_remove_job_seekers_with_last_activity

Conversation

@vincentporte

@vincentporte vincentporte commented Jul 25, 2025 •

Copy link
Copy Markdown

🤔 Pourquoi ?

  • regrouper la logic de sélection à un seul endroit
  • réduire le temps necessaire à la requete (estimation en local : 23 secondes à 0,8 secondes)
  • rendre réutilisable cette logique

🍰 Comment ?

  • suppression des annotations ⚠️ la variable last_activity n'est plus disponible
  • utilisation de ~Exists() uniquement
  • mise en cohérence des dates dans les tests
  • suppression de la méthode job_seekers_with_last_activity() du modèle User

@notion-workspace

Copy link
Copy Markdown

@vincentporte
vincentporte marked this pull request as draft July 25, 2025 12:04
@vincentporte vincentporte self-assigned this Jul 25, 2025
@vincentporte vincentporte added the modifié Modifié dans le changelog. label Jul 25, 2025
@vincentporte
vincentporte requested a review from tonial July 25, 2025 12:04
@vincentporte
vincentporte force-pushed the vp/GEN-2633_remove_job_seekers_with_last_activity branch 2 times, most recently from d1447f2 to fc7e8ed Compare July 25, 2025 14:27
@vincentporte vincentporte changed the title Vie privée : refactor de la requete de selection des candidats à archiver Vie privée : accélerer la requete de selection des candidats à archiver Jul 25, 2025
@vincentporte
vincentporte marked this pull request as ready for review July 25, 2025 14:31
@vincentporte
vincentporte marked this pull request as draft July 25, 2025 14:33
@vincentporte vincentporte changed the title Vie privée : accélerer la requete de selection des candidats à archiver Vie privée : accélerer la sélection des candidats à archiver Jul 25, 2025
@vincentporte
vincentporte force-pushed the vp/GEN-2633_remove_job_seekers_with_last_activity branch from 25a9719 to 05ef96c Compare July 25, 2025 14:48
@vincentporte
vincentporte marked this pull request as ready for review July 25, 2025 14:49
@vincentporte
vincentporte force-pushed the vp/GEN-2633_remove_job_seekers_with_last_activity branch from 05ef96c to 1bd46ac Compare July 25, 2025 14:52
Comment thread itou/archive/utils.py Resolved
Comment thread itou/archive/utils.py Resolved

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

Malin, on comprend que la DB apprécie 👍

Comment thread itou/archive/utils.py Resolved
Comment thread itou/archive/utils.py Resolved
@vincentporte
vincentporte force-pushed the vp/GEN-2633_remove_job_seekers_with_last_activity branch from 1bd46ac to f941c63 Compare July 28, 2025 09:30
@vincentporte
vincentporte added this pull request to the merge queue Jul 28, 2025
Merged via the queue into master with commit 2833f9b Jul 28, 2025
@vincentporte
vincentporte deleted the vp/GEN-2633_remove_job_seekers_with_last_activity branch July 28, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants