-
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
Admin: Correction du formulaire des diagnostics d'éligibilité. #5485
Conversation
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.
Je me dis qu'on pourrait toujours rajouter un messages.warning
quand on affecte une organisation prescriptrice non habilitée (sans bloquer).
d39c05a
to
0a8cc76
Compare
When fixing past diagnosis, the organization may not be authorized anymore
0a8cc76
to
faaee4d
Compare
# Allow inactive membership as we may want to fix old diagnoses | ||
self.add_error("author_prescriber_organization", "L'auteur n'appartient pas à cette organisation.") | ||
if author_prescriber_organization and not author_prescriber_organization.is_authorized: | ||
logger.warning("L'organization prescriptrice n'est actuellement pas habilité.") |
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.
Je m'attendais à un messages.warning(request, ...)
: l'idée c'est que l'utilisateur voit le message 😅
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.
Je crois que les 2 nuits catastrophiques de suite n'aident pas mon cerveau....
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.
😬 je compatis
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.
Et j'ai oublié de bloquer retirer de la merge queue 😭
🤔 Pourquoi ?
Une organisation prescriptrice peut ne plus être habilitée au moment ou l'on modifie le diagnostic pour régulation.
🍰 Comment ?
🚨 À vérifier
🏝️ Comment tester ?
💻 Captures d'écran