From 6c8df95ee6714ff2c5d75ed3d6f84ec4c2d7852d Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Tue, 12 Jul 2016 16:20:42 +0000 Subject: [PATCH] Close imported review requests that are past IESG approval automatically as overtaken by events - Legacy-Id: 11637 --- ietf/review/import_from_review_tool.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ietf/review/import_from_review_tool.py b/ietf/review/import_from_review_tool.py index 52a5dee33..244a5f092 100755 --- a/ietf/review/import_from_review_tool.py +++ b/ietf/review/import_from_review_tool.py @@ -233,6 +233,8 @@ with db_con.cursor() as c: # FIXME: add log entries # FIXME: add review from reviewurl + # FIXME: do something about missing result + # adcomments IGNORED # lccomments IGNORED # nits IGNORED @@ -240,4 +242,8 @@ with db_con.cursor() as c: #print meta and meta[0], telechat, lcend, req.type - print "imported review", row.reviewid, "as", req.pk, req.time, req.deadline, req.type, req.doc_id + if req.state_id == "requested" and req.doc.get_state_slug("draft-iesg") in ["approved", "ann", "rfcqueue", "pub"]: + req.state = states["overtaken"] + req.save() + + print "imported review", row.reviewid, "as", req.pk, req.time, req.deadline, req.type, req.doc_id, req.state, req.doc.get_state_slug("draft-iesg")