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
This commit is contained in:
Robert Sparks 2020-03-21 22:11:33 +00:00
parent f2b106cf8c
commit db5d11ea32
4 changed files with 0 additions and 4 deletions

View file

@ -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

View file

@ -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 ""

View file

@ -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')):

View file

@ -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)