datatracker/ietf/doc/migrations
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
..
0001_initial.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
0002_auto_20141222_1749.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
0003_auto_20150326_0728.py Add missing migration. Commit ready for merge 2015-04-03 19:28:06 +00:00
0004_auto_20150403_1235.py Put old style slides directly into archived. Migrate IETF92 materials to match. Commit ready for merge. 2015-04-03 20:53:13 +00:00
0005_auto_20150721_0230.py Added a migration to capture the new DocEvent types that came in with Ole's replaced_by code in [9829]. 2015-07-21 10:01:50 +00:00
0006_auto_20150924_0800.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
__init__.py Finish ballot support for charters (apart from non-generic ballot 2012-04-04 18:09:03 +00:00