Skip to content

Commit 724067a

Browse files
committed
Sort documents on agenda on when an IESG process was started on them
- Legacy-Id: 3930
1 parent 1ee160d commit 724067a

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ietf/iesg/views.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,17 @@ def agenda_docs(date, next_agenda):
223223
for m in matches:
224224
if m.latest_event(TelechatDocEvent, type="scheduled_for_telechat").telechat_date != date:
225225
continue
226-
226+
227+
e = m.latest_event(type="started_iesg_process")
228+
m.balloting_started = e.time if e else datetime.datetime.min
229+
227230
if m.docalias_set.filter(name__startswith="rfc"):
228231
rfcmatches.append(m)
229232
else:
230233
idmatches.append(m)
231234

232-
idmatches.sort(key=lambda d: d.start_date or datetime.date.min)
233-
rfcmatches.sort(key=lambda d: d.start_date or datetime.date.min)
235+
idmatches.sort(key=lambda d: d.balloting_started)
236+
rfcmatches.sort(key=lambda d: d.balloting_started)
234237
else:
235238
if next_agenda:
236239
matches = IDInternal.objects.filter(telechat_date=date, primary_flag=1, agenda=1)

0 commit comments

Comments
 (0)