-
Notifications
You must be signed in to change notification settings - Fork 27
PASS IAE: Mise en conformité des règles de prolongations [GEN-270] #4329
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
Conversation
|
🥁 La recette jetable est prête ! 👉 Je veux tester cette PR ! |
48d3509 to
9d492ac
Compare
29d5f9c to
1c483ce
Compare
b4fc872 to
4834620
Compare
francoisfreitag
left a comment
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.
Les deux premiers commits : « faire et défaire, c’est toujours travailler ». 🙈
C’est très solide, et je m’attendais à un diff plus gros. Les petits encarts d’explication aident bien à comprendre 👍
| enums.ProlongationReason.HEALTH_CONTEXT: { | ||
| "max_duration": datetime.timedelta(days=365), | ||
| "max_cumulative_duration": datetime.timedelta(days=365), | ||
| "help_text": "NE PAS UTILISER", # This value shouldn't appear anywhere but just in case |
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.
😄
itou/templates/approvals/includes/prolongation_declaration_form.html
Outdated
Show resolved
Hide resolved
tonial
left a comment
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.
Rien à ajouter par rapport à la relecture de @francoisfreitag si ce n'est que le 1er commit de la PR ne me semble pas super utile, vu que tu remets une valeur d'enum sous forme de dict dans le 2nd commit, et tu remets un label dans le 3e ^^
2a7c948 to
bf390ea
Compare
label isn't used anywhere
Before this change you could sum the different cumulative duration ( 3 years RQTH + 5 years SENIOR for a total of 8 years): now it won't be possible to request a RQTH prolongation if there was already 3+ years of prolongation for other reason Hence, bump the max_cumulative_duration for COMPLETE_TRAINING to 10 years (since it is not supposed to have a maximum duration).
Those reasons don't have any cumulative duration limit.
- prevent the selection of unusable reason & add info - add info on max date when lower than the expected duration
c2207b2 to
32c484a
Compare
🤔 Pourquoi ?
Empêcher de saisir certains motifs de prolongations s'il y a déjà un certain nombre de prolongations.
🍰 Comment ?
🚨 À vérifier
🏝️ Comment tester
Créer des PASS avec suffisamment de prolongations dans le passé et essayer de les prolonger.
J'essaierai de générer des PASS intéressant demain.
💻 Captures d'écran