Skip to content

PASS IAE: suppression lors de l'annulation de la dernière candidature acceptée [GEN-2032]#4902

Merged
xavfernandez merged 1 commit intomasterfrom
xfernandez/cancel_pass_on_last_application
Oct 8, 2024
Merged

PASS IAE: suppression lors de l'annulation de la dernière candidature acceptée [GEN-2032]#4902
xavfernandez merged 1 commit intomasterfrom
xfernandez/cancel_pass_on_last_application

Conversation

@xavfernandez
Copy link
Contributor

🤔 Pourquoi ?

Car c'est ce qu'on souhaite.

🍰 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 ?

🏝️ 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

Only consider accepted job applications
@xavfernandez xavfernandez added the modifié Modifié dans le changelog. label Oct 8, 2024
@xavfernandez xavfernandez self-assigned this Oct 8, 2024
Copy link
Contributor

@tonial tonial left a comment

Choose a reason for hiding this comment

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

Si le principe, oui, c'est mieux, mais ça ne corrige pas la faille de sécurité (cf le commentaire que j'ai ajouté à la carte notion)

@xavfernandez
Copy link
Contributor Author

Oui on est d'accord, ça corrige le code pour qu'il fasse ce qui est attendu par le métier mais oui il y a toujours l'autre faille (qui n'a pour le moment pas de solution métier)

@xavfernandez xavfernandez added this pull request to the merge queue Oct 8, 2024
Merged via the queue into master with commit 1394eff Oct 8, 2024
@xavfernandez xavfernandez deleted the xfernandez/cancel_pass_on_last_application branch October 8, 2024 12:21
JobApplication = self.jobapplication_set.model
try:
return self.jobapplication_set.get().state == job_application_enums.JobApplicationState.ACCEPTED
return self.jobapplication_set.filter(state=job_application_enums.JobApplicationState.ACCEPTED).get()
Copy link
Member

@francoisfreitag francoisfreitag Oct 8, 2024

Choose a reason for hiding this comment

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

Quitte à changer, on aurait pu faire self.jobapplication_set.get(state=job_application_enums.JobApplicationState.ACCEPTED)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 mais c'est déjà mergé 😬 👀

Copy link
Member

Choose a reason for hiding this comment

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

Il n’y avait pas une règle d’attendre 24h-48h avant de merger, pour laisser à tout le monde le temps d’intervenir dans la discussion ? 😇

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah oui, cela me dit vaguement quelque chose maintenant que tu le mentionnes 👼

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