Skip to content

Commit 1cff618

Browse files
committed
Put status changes on the agenda, moderator, and package pages
- Legacy-Id: 5331
1 parent c676613 commit 1cff618

8 files changed

Lines changed: 118 additions & 210 deletions

ietf/iesg/views.py

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,21 +159,28 @@ def get_doc_sectionREDESIGN(doc):
159159
s = s + "1"
160160
elif doc.type_id == 'charter':
161161
s = get_wg_section(doc.group)
162+
elif doc.type_id == 'statchg':
163+
protocol_action = False
164+
for relation in doc.relateddocument_set.filter(relationship__slug__in=('tops','tois','tohist','toinf','tobcp','toexp')):
165+
if relation.relationship.slug in ('tops','tois') or relation.target.document.std_level.slug in ('std','ds','ps'):
166+
protocol_action = True
167+
if protocol_action:
168+
s="23"
169+
else:
170+
s="33"
171+
if doc.get_state_slug() not in ("iesgeval", "defer", "appr-pr", "appr-pend", "appr-sent"):
172+
s = s + "3"
173+
elif doc.returning_item():
174+
s = s + "2"
175+
else:
176+
s = s + "1"
162177
elif doc.type_id == 'conflrev':
163178
if doc.get_state('conflrev').slug not in ('adrev','iesgeval','appr-reqnopub-pend','appr-reqnopub-sent','appr-noprob-pend','appr-noprob-sent','defer'):
164-
s = "333"
179+
s = "343"
165180
elif doc.returning_item():
166-
s = "332"
181+
s = "342"
167182
else:
168-
s = "331"
169-
elif doc.type_id == 'statchg':
170-
# TODO This is WRONG
171-
s="211"
172-
#protocol_action = False
173-
#for relation in doc.relateddocument_set.filter(relationship__in="('tops','tois','tohist','toinf','tobcp,'toexp')"):
174-
# if relation.relationship.slug in ('tops','tois') or relation.target.document.std_level.slug in ('std','ds','ps'):
175-
# protocol_action = True
176-
#if protocol_action:
183+
s = "341"
177184

178185
return s
179186

@@ -233,6 +240,8 @@ def agenda_docs(date, next_agenda):
233240
docmatches.sort(key=lambda d: d.balloting_started)
234241

235242
res = dict(("s%s%s%s" % (i, j, k), []) for i in range(2, 5) for j in range (1, 4) for k in range(1, 4))
243+
for k in range(1,4):
244+
res['s34%d'%k]=[]
236245
for id in docmatches:
237246
section_key = "s"+get_doc_section(id)
238247
if section_key not in res:
@@ -287,16 +296,22 @@ def _agenda_json(request, date=None):
287296
data['sections']['2.2'] = {'title':"Individual Submissions"}
288297
data['sections']['2.2.1'] = {'title':"New Items", 'docs':[]}
289298
data['sections']['2.2.2'] = {'title':"Returning Items", 'docs':[]}
299+
data['sections']['2.3'] = {'title':"Individual Submissions"}
300+
data['sections']['2.3.1'] = {'title':"New Items", 'docs':[]}
301+
data['sections']['2.3.2'] = {'title':"Returning Items", 'docs':[]}
290302
data['sections']['3'] = {'title':"Document Actions"}
291303
data['sections']['3.1'] = {'title':"WG Submissions"}
292304
data['sections']['3.1.1'] = {'title':"New Items", 'docs':[]}
293305
data['sections']['3.1.2'] = {'title':"Returning Items", 'docs':[]}
294306
data['sections']['3.2'] = {'title':"Individual Submissions Via AD"}
295307
data['sections']['3.2.1'] = {'title':"New Items", 'docs':[]}
296308
data['sections']['3.2.2'] = {'title':"Returning Items", 'docs':[]}
297-
data['sections']['3.3'] = {'title':"IRTF and Independent Submission Stream Documents"}
309+
data['sections']['3.3'] = {'title':"Status Changes"}
298310
data['sections']['3.3.1'] = {'title':"New Items", 'docs':[]}
299311
data['sections']['3.3.2'] = {'title':"Returning Items", 'docs':[]}
312+
data['sections']['3.4'] = {'title':"IRTF and Independent Submission Stream Documents"}
313+
data['sections']['3.4.1'] = {'title':"New Items", 'docs':[]}
314+
data['sections']['3.4.2'] = {'title':"Returning Items", 'docs':[]}
300315
data['sections']['4'] = {'title':"Working Group Actions"}
301316
data['sections']['4.1'] = {'title':"WG Creation"}
302317
data['sections']['4.1.1'] = {'title':"Proposed for IETF Review", 'wgs':[]}

ietf/templates/iesg/agenda_conflict_doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{% if title2_first %}{% if title1_first %}<h2>{{ title1 }}</h2>
4040
{% endif %}
4141
<h3>{{ title2 }}</h3>
42-
{% if title2|startswith:"3.3" %}
42+
{% if title2|startswith:"3.4" %}
4343
<blockquote>
4444
The IESG will use RFC 5742 responses: 1) The IESG has concluded
4545
that there is no conflict between this document and IETF work; 2)

ietf/templates/iesg/agenda_documents.html

Lines changed: 0 additions & 143 deletions
This file was deleted.

ietf/templates/iesg/agenda_documents_redesign.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ <h1>Documents on Future IESG Telechat Agendas</h1>
105105
{% if t.docs.s223 %}<tr class="header"><td colspan="6">2.2.3 For Action</td></tr>{% endif %}
106106
{% for doc in t.docs.s223 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
107107

108+
<tr class="header"><td colspan="6">2.3 Status Changes</td></tr>
109+
110+
{% for doc in t.docs.s231 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
111+
{% if t.docs.s222 %}<tr class="header"><td colspan="6">2.3.2 Returning Item</td></tr>{% endif %}
112+
{% for doc in t.docs.s232 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
113+
{% if t.docs.s223 %}<tr class="header"><td colspan="6">2.3.3 For Action</td></tr>{% endif %}
114+
{% for doc in t.docs.s233 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
115+
108116
<tr class="header"><td colspan="6">3. Document Actions</td></tr>
109117

110118
<tr class="header"><td colspan="6">3.1 WG Submissions</td></tr>
@@ -123,14 +131,22 @@ <h1>Documents on Future IESG Telechat Agendas</h1>
123131
{% if t.docs.s323 %}<tr class="header"><td colspan="6">3.2.3 For Action</td></tr>{% endif %}
124132
{% for doc in t.docs.s323 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
125133

126-
<tr class="header"><td colspan="6">3.3 IRTF and Independent Submission Stream Documents</td></tr>
134+
<tr class="header"><td colspan="6">3.3 Status Changes</td></tr>
127135

128136
{% for doc in t.docs.s331 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
129137
{% if t.docs.s332 %}<tr class="header"><td colspan="6">3.3.2 Returning Item</td></tr>{% endif %}
130138
{% for doc in t.docs.s332 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
131139
{% if t.docs.s333 %}<tr class="header"><td colspan="6">3.3.3 For Action</td></tr>{% endif %}
132140
{% for doc in t.docs.s333 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
133141

142+
<tr class="header"><td colspan="6">3.4 IRTF and Independent Submission Stream Documents</td></tr>
143+
144+
{% for doc in t.docs.s341 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
145+
{% if t.docs.s342 %}<tr class="header"><td colspan="6">3.4.2 Returning Item</td></tr>{% endif %}
146+
{% for doc in t.docs.s342 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
147+
{% if t.docs.s343 %}<tr class="header"><td colspan="6">3.4.3 For Action</td></tr>{% endif %}
148+
{% for doc in t.docs.s343 %}{% include "iesg/agenda_documents_row_redesign.html" %}{%endfor%}
149+
134150
<tr class="header"><td colspan="6">4. Working Group Actions</td></tr>
135151

136152
{% if t.docs.s411 or t.docs.s412%}<tr class="header"><td colspan="6">4.1 WG Creation</td></tr>{% endif %}

ietf/templates/iesg/agenda_outline_23.html

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,29 @@
7373

7474
{% endwith %}{# title2 #}
7575

76+
{% with "2.3 Status Changes" as title2 %}
77+
{% with 1 as title2_first %}
78+
79+
{% with "2.3.1 New Items" as title3 %}
80+
{% with docs.s231 as section_docs %}{% include doc_template %}{% endwith %}
81+
{% endwith %}
82+
{% endwith %}{# title2_first #}
83+
84+
{% with "2.3.2 Returning Items" as title3 %}
85+
{% with docs.s232 as section_docs %}{% include doc_template %}{% endwith %}
86+
{% endwith %}
87+
88+
{% if docs.s233 %}
89+
{% with "2.3.3 For Action" as title3 %}
90+
{% with docs.s233 as section_docs %}{% include doc_template %}{% endwith %}
91+
{% endwith %}
92+
{% endif %}
93+
94+
{% endwith %}{# title2 #}
95+
7696
{% endwith %}{# title1 #}
7797

98+
7899
{% with "3. Document Actions" as title1 %}{% with 1 as title1_first %}
79100

80101
{% with "3.1 WG Submissions" as title2 %}
@@ -119,21 +140,41 @@
119140

120141
{% endwith %}{# title2 #}
121142

122-
{% with "3.3 IRTF and Independent Submission Stream Documents" as title2 %}
143+
{% with "3.3 Status Changes" as title2 %}
123144
{% with 1 as title2_first %}
124145

125146
{% with "3.3.1 New Items" as title3 %}
126-
{% with docs.s331 as section_docs %}{% include doc_conflict_template %}{% endwith %}
147+
{% with docs.s331 as section_docs %}{% include doc_template %}{% endwith %}
127148
{% endwith %}
128149
{% endwith %}{# title2_first #}
129150

130151
{% with "3.3.2 Returning Items" as title3 %}
131-
{% with docs.s332 as section_docs %}{% include doc_conflict_template %}{% endwith %}
152+
{% with docs.s332 as section_docs %}{% include doc_template %}{% endwith %}
132153
{% endwith %}
133154

134155
{% if docs.s333 %}
135156
{% with "3.3.3 For Action" as title3 %}
136-
{% with docs.s333 as section_docs %}{% include doc_conflict_template %}{% endwith %}
157+
{% with docs.s333 as section_docs %}{% include doc_template %}{% endwith %}
158+
{% endwith %}
159+
{% endif %}
160+
161+
{% endwith %} {# title2 #}
162+
163+
{% with "3.4 IRTF and Independent Submission Stream Documents" as title2 %}
164+
{% with 1 as title2_first %}
165+
166+
{% with "3.4.1 New Items" as title3 %}
167+
{% with docs.s341 as section_docs %}{% include doc_conflict_template %}{% endwith %}
168+
{% endwith %}
169+
{% endwith %}{# title2_first #}
170+
171+
{% with "3.4.2 Returning Items" as title3 %}
172+
{% with docs.s342 as section_docs %}{% include doc_conflict_template %}{% endwith %}
173+
{% endwith %}
174+
175+
{% if docs.s343 %}
176+
{% with "3.4.3 For Action" as title3 %}
177+
{% with docs.s343 as section_docs %}{% include doc_conflict_template %}{% endwith %}
137178
{% endwith %}
138179
{% endif %}
139180

0 commit comments

Comments
 (0)