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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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**
......
......@@ -2844,6 +2844,15 @@ msgstr ""
"automatically assigned. Any review that is either manually assigned or "
"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"
msgstr "Preparing the mass mailing"
......
......@@ -2973,6 +2973,16 @@ msgstr ""
"vides et assignées automatiquement. Une review qui est donc soit "
"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"
msgstr "Préparer le message"
......
......@@ -41,6 +41,7 @@
data-target="#modalForm"
data-modal-title="{%trans 'Automatized allocation of reviewer'%}"
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>
</div>
{% endblock page_title_right%}
......
......@@ -2102,6 +2102,22 @@ class ReviewAllocationFormView(mixins.OnlyJuryManagerMixin, ModalFormMixin, Form
success_url = reverse_lazy('strass:review-allocation')
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):
review_allocation.compute_allocation(
min_review_per_candidate=form.cleaned_data["count"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment