Skip to content

Commit 2789554

Browse files
committed
Merged [6641] from bartosz.balazinski@interdigital.com:
Added the new version of the shepherd writeup as a comment when it's edited. The new version works like this: - Any shepherd writeups done before the document is submitted for publication are not disclosed in the history. - When the document is submitted for publication the available writeup (if available) is added to history. - Any further writeups after the document has been submitted for publication are disclosed in the history. - Legacy-Id: 6662 Note: SVN reference [6641] has been migrated to Git commit a0a4518
2 parents 58685d9 + a0a4518 commit 2789554

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

ietf/doc/views_draft.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,11 @@ def to_iesg(request,name):
578578
doc.notify = notify
579579
changes.append("State Change Notice email list changed to %s" % doc.notify)
580580

581+
# Get the last available writeup
582+
previous_writeup = doc.latest_event(WriteupDocEvent,type="changed_protocol_writeup")
583+
if previous_writeup != None:
584+
changes.append(previous_writeup.text)
585+
581586
for c in changes:
582587
e = DocEvent(doc=doc, by=login)
583588
e.desc = c
@@ -987,9 +992,15 @@ def edit_shepherd_writeup(request, name):
987992
writeup = from_file
988993
else:
989994
writeup = form.cleaned_data['content']
990-
991995
e = WriteupDocEvent(doc=doc, by=login, type="changed_protocol_writeup")
992-
e.desc = "Changed document writeup"
996+
997+
# Add the shepherd writeup to description if the document is in submitted for publication state
998+
state = doc.get_state("draft-stream-%s" % doc.stream_id)
999+
if (state.slug=='sub-pub'):
1000+
e.desc = writeup
1001+
else:
1002+
e.desc = "Changed document writeup"
1003+
9931004
e.text = writeup
9941005
e.save()
9951006

0 commit comments

Comments
 (0)