-
Notifications
You must be signed in to change notification settings - Fork 25
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
Tableau de bord: correction du message lié au délai de carence pour l'encart PASS IAE du candidat #4952
Conversation
If the user currently has a valid approval do not check for pe approval in waiting period.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
itou/users/models.py
Outdated
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): |
There was a problem hiding this comment.
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_*
def is_latest_common_approval_in_waiting_period(self): | |
def has_latest_common_approval_in_waiting_period(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oui, user has ...
53afee7
to
7961cab
Compare
To is_latest_common_approval_in_waiting_period which is closer to its behavior.
7961cab
to
fcfd644
Compare
🤔 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 ?
🚨 À vérifier
🏝️ Comment tester
💻 Captures d'écran