Skip to content

Commit 010c208

Browse files
committed
When importing next reviewer, set it to the reviewer following the one
that the old tool was pointing to, as it was pointing to the last one having completed a review (despite being named next) - Legacy-Id: 12255
1 parent b16a829 commit 010c208

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ietf/review/import_from_review_tool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from ietf.person.models import Person, Email, Alias
2424
from ietf.doc.models import Document, DocAlias, ReviewRequestDocEvent, NewRevisionDocEvent, DocTypeName, State
2525
from ietf.utils.text import strip_prefix, xslugify
26+
from ietf.review.utils import possibly_advance_next_reviewer_for_team
2627
import argparse
2728
from unidecode import unidecode
2829

@@ -182,6 +183,7 @@ def parse_timestamp(t):
182183
if row.name == "next": # next reviewer
183184
NextReviewerInTeam.objects.filter(team=team).delete()
184185
NextReviewerInTeam.objects.create(team=team, next_reviewer=known_personnel[row.value].person)
186+
possibly_advance_next_reviewer_for_team(team, assigned_review_to_person_id=known_personnel[row.value].person.pk)
185187

186188
if row.name == "summary-list": # review results used in team
187189
summaries = [v.strip().lower() for v in row.value.split(";") if v.strip()]

0 commit comments

Comments
 (0)