datatracker/ietf/secr/drafts
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
..
fixtures Added 4 new fields to the meeting class, to hold draft submission cutoff information for the meeting. On request, changed the presentation of the cutoff times to show the last submission time, rather than the beginning of the cutoff time. Changed the cutoff hour format to support full timedelta information, not just a given hour (this was necessary in order to be able to set the requested 23:59:59 submission stop time). 2015-02-21 20:48:29 +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
email.py Changed several email alias references from tools.ietf.org to ietf.org. Fixes #1759. Commit ready for merge. 2015-07-30 22:13:59 +00:00
forms.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
notifications.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
report_id_activity.py Port secr/drafts/report_id_activity.py away from setup_environ too 2013-12-18 16:02:04 +00:00
report_progress_report.py Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE 2013-12-18 15:51:11 +00:00
tests_views.py Fix pyflakes errors in secr/drafts/tests_views.py. Commit ready for merge 2015-03-21 20:36:28 +00:00
urls.py Made ietf/secr/{drafts,roles,ipradmin} pyflakes-clean. 2014-03-15 22:06:48 +00:00
views.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00