[ckan-changes] [ckan/ckan] 4531af: PackageExtra is no longer revisioned

David Read noreply at github.com
Fri Mar 15 18:16:55 UTC 2019


  Branch: refs/heads/integrate-vdm-stateful
  Home:   https://github.com/ckan/ckan
  Commit: 4531af0ca21ca479ca0eb303e5782c24188cce32
      https://github.com/ckan/ckan/commit/4531af0ca21ca479ca0eb303e5782c24188cce32
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-15 (Fri, 15 Mar 2019)

  Changed paths:
    M ckan/model/__init__.py
    M ckan/model/package.py
    M ckan/model/package_extra.py
    M ckan/tests/legacy/models/test_package.py

  Log Message:
  -----------
  PackageExtra is no longer revisioned

* We keep the PackageExtraRevision objects BUT they don't have a foreign key constraint/property to PackageExtra any more (achieved by removing vdm.sqlalchemy.modify_base_object_mapper)
* Changes to PackageExtra are no longer written to package_extra_revision table (because we removed vdm.sqlalchemy.Revisioner(extra_revision_table))
* PackageExtra no longer has revision methods like .get_as_of() and .all_revisions (because we no longer inherit from RevisionedObjectMixin)




More information about the ckan-changes mailing list