datatracker/ietf/secr/proceedings
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
..
migrations Merged in personal/henrik/django-1.7@9020 which upgrades Django from 1.6.0 to 1.7.4 and applies the needed changes to the datatracker code to work with release 1.7.x. 2015-02-08 21:16:44 +00:00
templatetags Updates and bugfixes to the agenda editing features 2014-04-01 22:17:18 +00:00
__init__.py Merged in branch/amsl/trunkmerge@5449 from rcross@amsl.com, with some tweaks. This provides the secretariat apps. 2013-03-05 22:43:31 +00:00
forms.py Allow upload of bluesheets via materials upload interface 2015-01-09 21:29:57 +00:00
models.py Merged in personal/henrik/django-1.7@9020 which upgrades Django from 1.6.0 to 1.7.4 and applies the needed changes to the datatracker code to work with release 1.7.x. 2015-02-08 21:16:44 +00:00
new_tables.sql Merged in branch/amsl/trunkmerge@5449 from rcross@amsl.com, with some tweaks. This provides the secretariat apps. 2013-03-05 22:43:31 +00:00
proc_utils.py Fix matching audio file names with rooms. Commit ready for merge. 2015-07-27 18:57:38 +00:00
report_progress_report.py Made ietf/secr/proceedings pyflakes-clean. 2014-03-15 23:31:09 +00:00
tests.py checkpoint. Model changes done and UI tweaked to match. 2015-04-30 15:57:48 +00:00
urls.py Merged in [9005] from rcross@amsl.com: 2015-02-06 15:25:28 +00:00
views.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00