Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tableau de bord: correction du message lié au délai de carence pour l'encart PASS IAE du candidat #4952

Merged

Conversation

xavfernandez
Copy link
Contributor

@xavfernandez xavfernandez commented Oct 18, 2024

🤔 Pourquoi ?

Sinon, même avec un PASS IAE valide, un candidat voyait le message "Un prescripteur habilité a réalisé un diagnostic d'éligibilité. Vous pouvez commencer un nouveau parcours." s'il avait un précédent agrément PE dans le délai de carence.

🍰 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

If the user currently has a valid approval do not check for pe approval
in waiting period.
@xavfernandez xavfernandez self-assigned this Oct 18, 2024
@xavfernandez xavfernandez changed the title PASS IAE: correction de la détermination du délai de carence Tableau de bord: correction du message lié au délai de carence pour l'encart PASS IAE du candidat Oct 18, 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.

LGTM

return (self.latest_approval and not self.latest_approval.is_valid()) or (
self.latest_pe_approval and not self.latest_pe_approval.is_valid()
)
def is_latest_common_approval_in_waiting_period(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: j'aurais laissé du has_*

Suggested change
def is_latest_common_approval_in_waiting_period(self):
def has_latest_common_approval_in_waiting_period(self):

Copy link
Contributor

Choose a reason for hiding this comment

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

Oui, user has ...

@francoisfreitag francoisfreitag force-pushed the xfernandez/fix_has_common_approval_in_waiting_period branch from 53afee7 to 7961cab Compare October 21, 2024 12:43
To is_latest_common_approval_in_waiting_period which is closer to its
behavior.
@francoisfreitag francoisfreitag force-pushed the xfernandez/fix_has_common_approval_in_waiting_period branch from 7961cab to fcfd644 Compare October 21, 2024 13:02
@francoisfreitag francoisfreitag added this pull request to the merge queue Oct 21, 2024
Merged via the queue into master with commit 1d4d8a6 Oct 21, 2024
9 checks passed
@francoisfreitag francoisfreitag deleted the xfernandez/fix_has_common_approval_in_waiting_period branch October 21, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants