datatracker/ietf
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
..
api 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
bin Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
community 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
cookies Added preference editing support for the left_menu preference setting, and refactored the preference handling code substantially. Related to issues #1659 and #1663. 2015-06-22 18:47:28 +00:00
database-notes
dbtemplate 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
doc Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
externals/static 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
group Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
help Added simple tests for help and release pages. 2015-04-05 20:59:51 +00:00
idindex Changed the handling of some test directory creation and removal code, to be more consistent. Fixed a problem where a test didn't create and remove a test directory it used. 2015-03-15 16:01:15 +00:00
iesg Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
ietfauth let the IAB see the new pages 2015-05-04 15:10:34 +00:00
ipr 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
liaisons 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
mailinglists 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
meeting Merged in [10062] from olau@iola.dk: 2015-08-30 09:32:18 +00:00
message 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
name 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
nomcom Added a migration for the Nomination.share_nominator field. 2015-08-23 09:15:20 +00:00
person 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
redirects 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
release Removed an unused import. 2015-08-23 19:31:28 +00:00
secr Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
static Merged in [9996] from olau@iola.dk: 2015-08-18 16:01:16 +00:00
submit Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
sync Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
templates Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
utils Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
.gitignore
__init__.py Set version info and settings back to development mode 2015-08-23 19:41:36 +00:00
bower.json Changed the location of the datatracker's bower.json file 2015-07-28 13:03:52 +00:00
checks.py It's only an error not to have STATIC_ROOT available in production mode. 2015-08-01 21:14:49 +00:00
context_processors.py Added a check for the existence of the CDN static path using the new (Django 1.7) checks framework. Split the release version and patch string in order to not move the expected CDN static files location when adding a patch indicator to the version number. 2015-07-28 10:25:58 +00:00
feed_urls.py Move chartering groups to /group/chartering/ (with a redirect from the old location), list RGs there too, and amend the previous fix to the chartering process for non-WGs so they have internal and external review states instead of just approved. Also move the code in wginfo/ to group/ as it is no longer just about info for WGs. 2014-04-01 11:59:08 +00:00
legacy_router.py
LICENSE Merged in the port from Django 1.2 to Django 1.6 from olau@iola.dk: branch/iola/djangoport@7121, and fixed some merge issues. 2014-01-18 21:02:40 +00:00
manage.py Merged in the port from Django 1.2 to Django 1.6 from olau@iola.dk: branch/iola/djangoport@7121, and fixed some merge issues. 2014-01-18 21:02:40 +00:00
middleware.py Summary: Get rid of FillInRemoteUserIfLoggedInMiddleware, we are not 2015-02-12 15:16:29 +00:00
README-BOWER.rst Updated several README files. 2015-07-28 13:20:39 +00:00
settings.py Set version info and settings back to development mode 2015-08-23 19:41:36 +00:00
settings_releasetest.py Updated release data and mkrelease support, which calculates the release coverage snapshot without invoking tests that developers won't ordinarily be able to run on their laptops/work machines. 2015-03-25 20:06:12 +00:00
settings_sqlitetest.py Removed dead code 2015-08-01 15:00:14 +00:00
settings_testcrawl.py Merged in [8970] from olau@iola.dk: 2015-02-04 23:17:58 +00:00
urls.py Merged in an update from trunk@9942. 2015-08-03 14:12:38 +00:00
wsgi.py Added virtualenv support to wsgi.py 2015-04-12 19:43:03 +00:00