datatracker/ietf/secr
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
..
announcement
areas
console
drafts Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
groups
lib
meetings
middleware
proceedings Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
roles
rolodex
sreq
static/secr Moved bower externals from static/lib to ietf/externals/static. Moved secretariat statics to ietf/secr/static. Moved ietf statics to ietf/static/. Removed static/, as all static files will be handled using 'manage.py collectstatic' at deployment time now. 2015-08-01 12:56:16 +00:00
telechat Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
templates Fix issue with select2-field.js path in templates. Commit ready for merge. 2015-08-18 17:10:12 +00:00
utils 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
__init__.py
context_processors.py Removed dead code. 2015-08-01 14:58:08 +00:00
urls.py