datatracker/ietf/templates/doc
Ole Laursen e1f0917659 Summary: Add new document saving API, Document.save_with_history(events).
The new API requires at least one event and will automatically save a
snapshot of the document and related state. Document.save() will now
throw an exception if called directly, as the new API is intended to
ensure that documents are saved with both an appropriate snapsnot and
relevant history log, both of which are easily defeated by just
calling .save() directly.

To simplify things, the snapshot is generated after the changes to a
document have been made (in anticipation of coming changes), instead
of before as was usual.

While revising the existing code to work with this API, a couple of
missing events was discovered:

- In draft expiry, a "Document has expired" event was only generated
  in case an IESG process had started on the document - now it's
  always generated, as the document changes its state in any case

- Synchronization updates like title and abstract amendmends from the
  RFC Editor were silently (except for RFC publication) applied and
  not accompanied by a descriptive event - they now are

- do_replace in the Secretariat tools now adds an event

- Proceedings post_process in the Secretariat tools now adds an event

- do_withdraw in the Secretariat tools now adds an event

A migration is needed for snapshotting all documents, takes a while to
run. It turns out that a single document had a bad foreign key so the
migration fixes that too.
 - Legacy-Id: 10101
2015-09-28 14:01:03 +00:00
..
ballot Added a missing {% load bootstrap3 %} in a template. 2015-07-22 09:31:45 +00:00
charter Merged in [9766] from lars@netapp.com: 2015-07-18 12:42:38 +00:00
conflict_review Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
draft Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
mail Manually moved the concepts forward. Reworked some presentation. Working enough to bring testers in at Sprint93 2015-07-13 21:09:39 +00:00
material Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
search Merged in [9855] from lars@netapp.com: 2015-07-23 08:54:46 +00:00
status_change Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
add_comment.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
ballot_popup.html Merged in [9969] from lars@netapp.com: 2015-08-18 14:36:27 +00:00
bibxml.xml Updated a bunch of links from http: to https: based on a patch from lars@netapp.com. 2015-04-24 21:45:04 +00:00
change_ad.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
change_shepherd.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
change_shepherd_email.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
change_state.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
change_title.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
document_ballot.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
document_ballot_content.html Merged in [9809] from lars@netapp.com: 2015-07-20 12:43:26 +00:00
document_charter.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
document_conflict_review.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
document_draft.html Merged in an update from trunk@9942. 2015-08-03 14:12:38 +00:00
document_history.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
document_material.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
document_referenced_by.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
document_references.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
document_status_change.html Merged in [9856] from lars@netapp.com: 2015-07-23 09:55:56 +00:00
document_top.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
document_writeup.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
drafts_for_ad.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
drafts_in_iesg_process.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
drafts_in_last_call.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
edit_notify.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
edit_telechat_date.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
email_aliases.html Restore color bands to the email-alias page. Commit ready for merge. 2015-08-07 20:35:43 +00:00
eval_email.txt Merge forward complete 2013-01-24 21:28:27 +00:00
frontpage.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
index_active_drafts.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
index_all_drafts.html Updated a bunch of links from http: to https: based on a patch from lars@netapp.com. 2015-04-24 21:45:04 +00:00
relationship_help.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
revisions_list.html Added copyright lines and template origin to the html templates. Fixed a number of instances of html that didn't validate. 2015-04-24 20:40:01 +00:00
shepherd_writeup.html Merged in [9663] from rjsparks@nostrum.com: 2015-06-22 20:37:07 +00:00
shepherd_writeup.txt Merged in [9803] from lars@netapp.com: 2015-07-19 19:46:42 +00:00
state_help.html Updated templates to use the static template tag for static files. 2015-08-01 14:53:59 +00:00
submit_to_iesg.html Merged in [9733] from lars@netapp.com: 2015-07-18 08:55:30 +00:00
submit_to_iesg_email.txt Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00