-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(Admin des Besoins): Demande de modification ou clôture d'un besoin #1596
base: master
Are you sure you want to change the base?
Conversation
0fba46e
to
2a56a9c
Compare
2a56a9c
to
f174a7c
Compare
lemarche/tenders/migrations/0097_add_templatetransactional_tender_author_reject_message.py
Outdated
Show resolved
Hide resolved
dbc29a9
to
3e3e43c
Compare
3e3e43c
to
f988dcb
Compare
lemarche/tenders/management/commands/update_tender_status_to_rejected.py
Outdated
Show resolved
Hide resolved
lemarche/tenders/management/commands/update_tender_status_to_rejected.py
Outdated
Show resolved
Hide resolved
...ions/0018_add_templatetransactional_tender_author_modification_request_and_reject_message.py
Outdated
Show resolved
Hide resolved
f988dcb
to
d0adabc
Compare
d0adabc
to
9a3db2b
Compare
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.
Super fonctionnalité, bravo !
Je t'ai fait quelques retours ;)
d1fb8e2
to
050deb2
Compare
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.
Merci @Guilouf . J'ai ajouté le badge "Rejeté" sur le dashboard : J'ai aussi ajouté des tests. |
6392e03
to
43f6abd
Compare
43f6abd
to
6392e03
Compare
J'ai également corrigé le chevauchement sur le lien. Merci @Guilouf pour ta vigilance. Avant: Après: |
2a9321f
to
39c636b
Compare
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
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.
Ca me parait nickel, merci pour tes corrections !
Quoi ?
Permettre de demander des modifications sur un DDB ou de le clôturer si nécessaire.
Pourquoi ?
Actuellement, les admins sont contraints de mettre une mention "HS" sur le titre des besoins afin de les trier. Cela leur permettra de gagner du temps et d'améliorer le suivi des DDB.
Comment ?
1. Modèle
Tender
email_sent_for_modification
: un booléen à False par défautAjout de deux méthodes :
reset_modification_request
: réinitialise les champsemail_sent_for_modification
et/ouchanges_information
lorsque des modifications ont été apportées et que le statut du besoin passe de "brouillon" à "publié".set_modification_request
: sauvegarde les champsemail_sent_for_modification
,status
etlogs
après avoir cliqué sur le bouton d'envoi de modification dans l'admin.2. Modèle
Conversation
a. Ajout deux de
TemplateTransactional
dans une migration :TENDERS_AUTHOR_MODIFICATION_REQUEST
: template de mail de demande de modification d'un DDBTENDERS_AUTHOR_REJECT_MESSAGE
: template de mail de rejet du DDBCaptures d'écran (optionnel)
email_sent_for_modification
à TrueAutre (optionnel)