Skip to content
Snippets Groups Projects
Commit d4ea9aec authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Merge branch 'doc-auto-assign' into 'master'

Indicate more that review assignation will not delete already done reviews

See merge request !246
parents 639eecbe 0709414a
No related branches found
No related tags found
1 merge request!246Indicate more that review assignation will not delete already done reviews
Pipeline #150788 passed
...@@ -402,7 +402,10 @@ Assign reviewers, again ...@@ -402,7 +402,10 @@ Assign reviewers, again
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Link: https://strass-master.dev.pasteur.cloud/setup/review/overview/ Link: https://strass-master.dev.pasteur.cloud/setup/review/overview/
You can still assign and re-assign reviewers. A reviewer can be automatically unassigned if zhe was not manually assigned and have not started yet to provide a review .. note::
You can re-run reviewers assignation **without risk** of data loss.
You can still assign and re-assign reviewers. A reviewer can be automatically unassigned only if zhe was not manually assigned and have not started yet to provide a review. Reviews that have been already started are kept.
**Use case: new conflicts of interest** **Use case: new conflicts of interest**
......
...@@ -2844,6 +2844,15 @@ msgstr "" ...@@ -2844,6 +2844,15 @@ msgstr ""
"automatically assigned. Any review that is either manually assigned or " "automatically assigned. Any review that is either manually assigned or "
"already answered by the author will be kept." "already answered by the author will be kept."
msgid "ComputeAutoReviewView information about"
msgstr ""
"When re-running assignation data loss is prevented. Any review that is "
"either manually assigned or already answered by the author will be kept, i.e "
"a reviewer will not be unsigned if zhe have started to review.<br/>Re-"
"running the assignation is useful when new reviewers arrive or new conflicts "
"of interest declared, see <a href=\"/doc/configure_instance.html#assign-"
"reviewers-again\" target=\"_blank\">documentation</a> for more."
msgid "MassMailingWizard.Prepare.title" msgid "MassMailingWizard.Prepare.title"
msgstr "Preparing the mass mailing" msgstr "Preparing the mass mailing"
......
...@@ -2973,6 +2973,16 @@ msgstr "" ...@@ -2973,6 +2973,16 @@ msgstr ""
"vides et assignées automatiquement. Une review qui est donc soit " "vides et assignées automatiquement. Une review qui est donc soit "
"manuellement assignée, soit déjà remplie sera gardée." "manuellement assignée, soit déjà remplie sera gardée."
msgid "ComputeAutoReviewView information about"
msgstr ""
"Vous ne pouvez pas perdre de donnée en relançant l'assignation. Toutes les "
"reviews attribuées manuellement ou déjà commencées seront conservées. En "
"d'autre terme un(e) reviewer ne sera pas dé-assigné d'un candidat si iel à "
"commencé à écrire la review.<br/>Relancer l'assignation est utile en cas de "
"nouveau reviewer, ou de nouveau conflit d'intérêt, voir la <a href=\"/doc/"
"configure_instance.html#assign-reviewers-again\" "
"target=\"_blank\">documentation</a>."
msgid "MassMailingWizard.Prepare.title" msgid "MassMailingWizard.Prepare.title"
msgstr "Préparer le message" msgstr "Préparer le message"
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
data-target="#modalForm" data-target="#modalForm"
data-modal-title="{%trans 'Automatized allocation of reviewer'%}" data-modal-title="{%trans 'Automatized allocation of reviewer'%}"
data-modal-submit="{%trans 'Compute automatic allocation'%}" data-modal-submit="{%trans 'Compute automatic allocation'%}"
data-modal-css-class="modal-dialog modal-lg"
><i class="fa fa-cogs"></i> {%trans "Compute automatic allocation" %}...</a> ><i class="fa fa-cogs"></i> {%trans "Compute automatic allocation" %}...</a>
</div> </div>
{% endblock page_title_right%} {% endblock page_title_right%}
......
...@@ -2102,6 +2102,22 @@ class ReviewAllocationFormView(mixins.OnlyJuryManagerMixin, ModalFormMixin, Form ...@@ -2102,6 +2102,22 @@ class ReviewAllocationFormView(mixins.OnlyJuryManagerMixin, ModalFormMixin, Form
success_url = reverse_lazy('strass:review-allocation') success_url = reverse_lazy('strass:review-allocation')
form_class = forms.ReviewPerCandidateForm form_class = forms.ReviewPerCandidateForm
def get_form(self, form_class=None):
form = super().get_form()
helper = FormHelper()
helper.form_tag = False
helper.layout = layout.Layout(
layout.HTML('<p>' + gettext("ComputeAutoReviewView information about") + '</p>'),
'stage',
'count',
'match',
'reviewer_groups',
'candidate_groups',
'refused_candidate_groups',
)
form.helper = helper
return form
def form_valid(self, form): def form_valid(self, form):
review_allocation.compute_allocation( review_allocation.compute_allocation(
min_review_per_candidate=form.cleaned_data["count"], min_review_per_candidate=form.cleaned_data["count"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment