Added IESG document state to review request information. Fixes #3235. Commit ready for merge.
- Legacy-Id: 19081
This commit is contained in:
parent
bfad845662
commit
6ec7347f8d
|
@ -241,6 +241,8 @@ def review_request(request, name, request_id):
|
||||||
if review_req.doc.group:
|
if review_req.doc.group:
|
||||||
wg_chairs = [role.person for role in review_req.doc.group.role_set.filter(name__slug='chair')]
|
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 = list(review_req.history.all())
|
||||||
history += itertools.chain(*[list(r.history.all()) for r in review_req.reviewassignment_set.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)
|
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,
|
'can_edit_deadline': can_edit_deadline,
|
||||||
'assignments': assignments,
|
'assignments': assignments,
|
||||||
'wg_chairs': wg_chairs,
|
'wg_chairs': wg_chairs,
|
||||||
|
'iesg_state_summary': iesg_state_summary,
|
||||||
'history': history,
|
'history': history,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -93,6 +93,14 @@
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if iesg_state_summary %}
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th>IESG document state</th>
|
||||||
|
<td>{{ iesg_state_summary }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Completed reviews</th>
|
<th>Completed reviews</th>
|
||||||
|
|
Loading…
Reference in a new issue