datatracker/ietf/bin
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
..
.gitignore Moving ietf to trunk/ietf 2007-05-04 12:37:28 +00:00
announce-header-change Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
create-break-sessions checkpoint. Model changes done and UI tweaked to match. 2015-04-30 15:57:48 +00:00
create-charter-newrevisiondocevents Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
dump-draft-info Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
email-sync-discrepancies Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
expire-ids Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
expire-last-calls Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
expire-submissions Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
find-submission-confirmation-email-in-postfix-log Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
generate-draft-aliases Add pre-ads to .ad aliases. Keep draft aliases for drafts that have become RFCs for some time. Commit ready to merge. 2015-03-21 20:23:09 +00:00
generate-wg-aliases Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
graphall Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
iana-changes-updates Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
iana-protocols-updates Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
iana-review-email Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
merge-person-records Merged in [9715] from rcross@amsl.com: 2015-07-15 11:14:15 +00:00
notify-expirations Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
pretty-xml-dump Merged r840 from branch/2.00 to trunk, and updated version information in ietf/__init__.py 2007-07-04 21:17:57 +00:00
redirect-dump Merged from log:branch/2.00@2363: Current release branch head to trunk. 2010-07-21 12:48:05 +00:00
rfc-editor-index-updates Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
rfc-editor-queue-updates Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
run-real-data-tests Put a proper command-line interface on the test crawler, spit out number of errors (if any), also add wrapper script for running the test-crawler and idindex generation scripts, in the future other (safe, non-mutating) scripts operating on real data can be added too 2014-01-12 16:55:42 +00:00
send-milestone-reminders Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00
send-scheduled-mail Added django.setup() to some additional scripts, as required under Django 1.7. 2015-02-11 06:52:07 +00:00