datatracker/ietf/submit
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
..
migrations Manually moved the concepts forward. Reworked some presentation. Working enough to bring testers in at Sprint93 2015-07-13 21:09:39 +00:00
parsers Improved the verification of submitted file extensions and mimetype. 2015-08-07 12:10:26 +00:00
templatetags Merged in [9766] from lars@netapp.com: 2015-07-18 12:42:38 +00:00
.gitignore Ignore *.pyc files under ietf/submit, as elsewhere. 2011-04-12 15:57:35 +00:00
__init__.py Remove backtrace email code from submit __init__.py, after the submit revamp I think I am responsible for all remaining bugs and not esanchez@yaco.es, and the code sometimes annoyingly interferes (through a bug in admin) with loading the submit module in the shell 2013-11-19 16:14:27 +00:00
admin.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
forms.py Made some submission form validation errors apply to all uploads, not only to .txt uploads. Tweaked som validation error wordings. 2015-09-10 08:39:56 +00:00
mail.py Copy the RFC Editor on new version messages for drafts in any stream if the RFC Editor is already working on the draft. Fixes bug #1700. Commit ready for merge. 2015-05-12 02:08:32 +00:00
models.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
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
test_submission.bad Improved the verification of submitted file extensions and mimetype. 2015-08-07 12:10:26 +00:00
test_submission.pdf Added support of xml-source only drafts submissions. 2015-07-22 21:35:44 +00:00
test_submission.ps Added support of xml-source only drafts submissions. 2015-07-22 21:35:44 +00:00
test_submission.txt Added support of xml-source only drafts submissions. 2015-07-22 21:35:44 +00:00
test_submission.xml Added support of xml-source only drafts submissions. 2015-07-22 21:35:44 +00:00
tests.py Improved the verification of submitted file extensions and mimetype. 2015-08-07 12:10:26 +00:00
urls.py Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django 2013-12-11 16:36:09 +00:00
utils.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
views.py Log and re-raise the initial exception, rather than raising one later because submission is undefined. 2015-09-03 15:14:44 +00:00