datatracker/ietf/doc
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
..
management Made doc/ pyflakes-clean. 2014-03-15 16:09:47 +00:00
migrations Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
templatetags Merged in [9924] from rjsparks@nostrum.com: 2015-08-01 10:12:40 +00:00
__init__.py Move new schema models from redesign/ to ietf/ 2012-01-24 17:17:24 +00:00
admin.py Fixed a problem with the admin interface for the ietf.doc.DocHistory class. 2014-11-14 00:21:54 +00:00
expire.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
feeds.py Made doc/ pyflakes-clean. 2014-03-15 16:09:47 +00:00
fields.py Manually moved the concepts forward. Reworked some presentation. Working enough to bring testers in at Sprint93 2015-07-13 21:09:39 +00:00
forms.py Make new branch from trunk (r9007) and merge facelift-r8876 into it, fixing a few merge conflicts 2015-02-06 14:08:34 +00:00
lastcall.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
mails.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
models.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
redirect_drafts_urls.py Updated a bunch of links from http: to https: based on a patch from lars@netapp.com. 2015-04-24 21:47:12 +00:00
redirect_idtracker_urls.py Updated a bunch of links from http: to https: based on a patch from lars@netapp.com. 2015-04-24 21:47:12 +00:00
resources.py Added a very simple html version of the json API, to make it easier to explore the api manually. 2015-08-09 16:28:55 +00:00
tests.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
tests_ballot.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
tests_charter.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
tests_conflict_review.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
tests_draft.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
tests_material.py checkpoint. Model changes done and UI tweaked to match. 2015-04-30 15:57:48 +00:00
tests_status_change.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
urls.py Manually moved the concepts forward. Reworked some presentation. Working enough to bring testers in at Sprint93 2015-07-13 21:09:39 +00:00
urls_charter.py Allow changing the title of a charter document 2014-11-09 00:46:28 +00:00
urls_conflict_review.py Merged in [8293] from rjsparks@nostrum.com:\n XXX: Should what is now captured in the list of STATUSCHANGE_RELATIONS instead be captured in the database in name_docrelationshipname? 2014-10-12 17:32:11 +00:00
urls_material.py Cleaned up issues with date and weekday variants of the session views 2014-11-24 21:06:58 +00:00
urls_status_change.py Merged in [8293] from rjsparks@nostrum.com:\n XXX: Should what is now captured in the list of STATUSCHANGE_RELATIONS instead be captured in the database in name_docrelationshipname? 2014-10-12 17:32:11 +00:00
utils.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
utils_charter.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views_ballot.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views_charter.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views_conflict_review.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views_doc.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views_draft.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views_help.py Merged in [9782] from lars@netapp.com: 2015-07-18 15:29:12 +00:00
views_material.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views_search.py Factored out the doc_is_tracked logic, for use on group document list pages. 2015-04-03 13:27:29 +00:00
views_status_change.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00