datatracker/ietf/group
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 Fixed references (relative to absolute) in template ietf/templates/group/active_areas.html, fixed build failure on unused import in file 0006_auto_20150718_0509.py, commit ready for merge 2015-07-18 15:32:57 +00:00
__init__.py Move new schema models from redesign/ to ietf/ 2012-01-24 17:17:24 +00:00
admin.py Removed the obsolete field Group._ad, and added a migration for the change. 2015-03-04 17:50:18 +00:00
ajax.py Added a max-age to the cache control of /group/groupmenu.ajax, in order to improve local caching. 2015-08-01 14:57:29 +00:00
colors.py Merged in [9652] from rjsparks@nostrum.com: 2015-06-22 19:41:47 +00:00
edit.py Summary: Add new document saving API, Document.save_with_history(events). 2015-09-28 14:01:03 +00:00
features.py Adds views of active areas, area groups, teams, and directorates. 2015-07-30 21:51:38 +00:00
feeds.py Fix a bunch of mistakes found by PyFlakes in the new materials code 2014-06-03 11:28:27 +00:00
info.py Merged in [9924] from rjsparks@nostrum.com: 2015-08-01 10:12:40 +00:00
mails.py Merged in [9812] from suresh.krishnan@ericsson.com: 2015-07-20 12:54:13 +00:00
milestones.py Summary: Resolve person/email/document multiselect issue by importing 2014-11-25 16:47:48 +00:00
models.py Merged in trunk@9440, containing the changes for version 5.13.1; and updated tests which look at HTML content to work with the facelift changes. 2015-04-11 18:24:20 +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_info.py Adds views of active areas, area groups, teams, and directorates. 2015-07-30 21:51:38 +00:00
urls.py Adds views of active areas, area groups, teams, and directorates. 2015-07-30 21:51:38 +00:00
urls_info.py Adds views of active areas, area groups, teams, and directorates. 2015-07-30 21:51:38 +00:00
urls_info_details.py Adds views of active areas, area groups, teams, and directorates. 2015-07-30 21:51:38 +00:00
urls_stream.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
utils.py 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
views_stream.py Summary: Resolve person/email/document multiselect issue by importing 2014-11-25 16:47:48 +00:00