From db5d11ea32165ff45e680e46c1f3ade52ee6ae07 Mon Sep 17 00:00:00 2001 From: Robert Sparks Date: Sat, 21 Mar 2020 22:11:33 +0000 Subject: [PATCH] Remove the rest of the log.assertions checking that iesg_state existed in places we expected it to. Commit ready for merge. - Legacy-Id: 17496 --- ietf/doc/models.py | 1 - ietf/doc/templatetags/ballot_icon.py | 1 - ietf/doc/views_doc.py | 1 - ietf/idindex/index.py | 1 - 4 files changed, 4 deletions(-) diff --git a/ietf/doc/models.py b/ietf/doc/models.py index 222fbb1e3..3afd513ca 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -333,7 +333,6 @@ class DocumentInfo(models.Model): else: return "Replaced" elif state.slug == "active": - log.assertion('iesg_state') if iesg_state: if iesg_state.slug == "dead": # Many drafts in the draft-iesg "Dead" state are not dead diff --git a/ietf/doc/templatetags/ballot_icon.py b/ietf/doc/templatetags/ballot_icon.py index d914527aa..686c017a1 100644 --- a/ietf/doc/templatetags/ballot_icon.py +++ b/ietf/doc/templatetags/ballot_icon.py @@ -168,7 +168,6 @@ def state_age_colored(doc): # Don't show anything for expired/withdrawn/replaced drafts return "" iesg_state = doc.get_state_slug('draft-iesg') - log.assertion('iesg_state') if not iesg_state: return "" diff --git a/ietf/doc/views_doc.py b/ietf/doc/views_doc.py index 2082fec1e..559e77d1f 100644 --- a/ietf/doc/views_doc.py +++ b/ietf/doc/views_doc.py @@ -405,7 +405,6 @@ def document_main(request, name, rev=None): actions.append((label, urlreverse('ietf.doc.views_draft.request_publication', kwargs=dict(name=doc.name)))) if doc.get_state_slug() not in ["rfc", "expired"] and doc.stream_id in ("ietf",) and not snapshot: - log.assertion('iesg_state') if iesg_state.slug == 'idexists' and can_edit: actions.append(("Begin IESG Processing", urlreverse('ietf.doc.views_draft.edit_info', kwargs=dict(name=doc.name)) + "?new=1")) elif can_edit_stream_info and (iesg_state.slug in ('idexists','watching')): diff --git a/ietf/idindex/index.py b/ietf/idindex/index.py index 03d5f2b2d..bc3f061a0 100644 --- a/ietf/idindex/index.py +++ b/ietf/idindex/index.py @@ -157,7 +157,6 @@ def all_id2_txt(): # 3 if state == "active": s = "I-D Exists" - log.assertion('iesg_state') if iesg_state: s = iesg_state.name tags = d.tags.filter(slug__in=IESG_SUBSTATE_TAGS).values_list("name", flat=True)