Added IESG document state to review request information. Fixes #3235. Commit ready for merge.

- Legacy-Id: 19081
This commit is contained in:
Jim Fenton 2021-06-04 21:00:58 +00:00
parent bfad845662
commit 6ec7347f8d
2 changed files with 11 additions and 0 deletions

View file

@ -241,6 +241,8 @@ def review_request(request, name, request_id):
if review_req.doc.group:
wg_chairs = [role.person for role in review_req.doc.group.role_set.filter(name__slug='chair')]
iesg_state_summary = review_req.doc.friendly_state()
history = list(review_req.history.all())
history += itertools.chain(*[list(r.history.all()) for r in review_req.reviewassignment_set.all()])
history.sort(key=lambda h: h.history_date, reverse=True)
@ -254,6 +256,7 @@ def review_request(request, name, request_id):
'can_edit_deadline': can_edit_deadline,
'assignments': assignments,
'wg_chairs': wg_chairs,
'iesg_state_summary': iesg_state_summary,
'history': history,
})

View file

@ -93,6 +93,14 @@
</tr>
{% endif %}
{% if iesg_state_summary %}
<tr>
<th></th>
<th>IESG document state</th>
<td>{{ iesg_state_summary }}</td>
</tr>
{% endif %}
<tr>
<th></th>
<th>Completed reviews</th>