Skip to content

Candidature: Protection contre les candidatures multiples (<24h) [GEN-2275] - #6077

Merged
tonial merged 1 commit into
masterfrom
alaurent/boost_apply_24h
May 5, 2025
Merged

tonial merged 1 commit into
masterfrom
alaurent/boost_apply_24h

Conversation

@tonial

@tonial tonial commented May 5, 2025

Copy link
Copy Markdown
Contributor

🤔 Pourquoi ?

Le mode opératoire pour reproduire le bug est dans la carte notion

🍰 Comment ?

Décrivez en quelques mots la solution retenue et mise en oeuvre, les difficultés ou problèmes rencontrés. Attirez l'attention sur les décisions d'architecture ou de conception importantes.

🚨 À vérifier

  • Mettre à jour le CHANGELOG_breaking_changes.md ?
  • Ajouter l'étiquette « Bug » ?

🏝️ Comment tester ?

Les instructions pour reproduire le problème, les profils de test, le parcours spécifique à utiliser, etc. Si vous disposez d'une recette jetable, mettre l'URL pour tester dans cette partie.

💻 Captures d'écran

@tonial
tonial requested review from EwenKorr and francoisfreitag May 5, 2025 12:09
@tonial tonial self-assigned this May 5, 2025
@tonial tonial added 1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC modifié Modifié dans le changelog. labels May 5, 2025
@notion-workspace

Copy link
Copy Markdown

Comment thread itou/www/apply/views/submit_views.py Outdated
msg = "Vous avez déjà postulé chez cet employeur durant les dernières 24 heures."
else:
msg = "Ce candidat a déjà postulé chez cet employeur durant les dernières 24 heures."
self.apply_session.delete() # Don't allow to re-use the session in another step to skip this check

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.

Mais du coup si tu fais le step précédent puis le step suivant sans jamais faire de requête sur la vue CheckPreviousApplications, tu peux toujours éviter la limite non ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Damn... oui

@tonial tonial May 5, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

C'est bon, j'ai bougé le check dans le mixin de permissions

J'ai hésité à ne le mettre que dans ApplicationBaseView (vu que ce n'est pas nécessaire dans StartView no dans les vues qui héritent de ApplyStepForSenderBaseView mais ça me semblait quand même plus simple à relire de tout mettre au meme endroit.

@github-actions

github-actions Bot commented May 5, 2025

Copy link
Copy Markdown

🥁 La recette jetable est prête ! 👉 Je veux tester cette PR !

@tonial
tonial force-pushed the alaurent/boost_apply_24h branch 2 times, most recently from d797cdd to 73f9f09 Compare May 5, 2025 12:31
Comment thread itou/www/apply/views/submit_views.py Outdated
Comment thread itou/www/apply/views/submit_views.py
@tonial
tonial force-pushed the alaurent/boost_apply_24h branch from 73f9f09 to 48e71a5 Compare May 5, 2025 12:53
Comment thread itou/www/apply/views/submit_views.py
Comment thread tests/www/apply/test_submit.py Outdated
@tonial
tonial force-pushed the alaurent/boost_apply_24h branch from 48e71a5 to 325f721 Compare May 5, 2025 13:30
@tonial
tonial requested a review from xavfernandez May 5, 2025 13:30
@tonial
tonial added this pull request to the merge queue May 5, 2025
Merged via the queue into master with commit bb5eb30 May 5, 2025
@tonial
tonial deleted the alaurent/boost_apply_24h branch May 5, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1-recette-jetable [Payé à l’heure] Crée une recette jetable sur CC modifié Modifié dans le changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants