[ckan-changes] [ckan/ckan] bcc470: [#2661] Add revision if owner-org updated.

GitHub noreply at github.com
Thu Jun 30 15:16:06 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: bcc47010f0ba4d4a2718ffb3ad510701fc70a060
      https://github.com/ckan/ckan/commit/bcc47010f0ba4d4a2718ffb3ad510701fc70a060
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-06-24 (Fri, 24 Jun 2016)

  Changed paths:
    M ckan/logic/action/update.py
    M ckan/tests/logic/action/test_update.py

  Log Message:
  -----------
  [#2661] Add revision if owner-org updated.

package_owner_org_update is called during a package_update to handle
updating the owner organization. A package revision is created during
this by package_update. If package_owner_org_update is called in
isolation, no revision is created and an error occurs in vdm. This
commit ensures a revision is created when package_owner_org_update is
called outside of a package_update.


  Commit: f240a8cf79e4a8d3a2a592f4cd3d6fa934a23ff7
      https://github.com/ckan/ckan/commit/f240a8cf79e4a8d3a2a592f4cd3d6fa934a23ff7
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-06-24 (Fri, 24 Jun 2016)

  Changed paths:
    M ckan/logic/action/create.py

  Log Message:
  -----------
  [#2661] Add 'add_revision' to ctx in pkg create.

package_create also calls package_owner_org_update, and requires the
'add_revision' property adding to the context to prevent
package_owner_org_update from creating an unecessary revision.


  Commit: 7173fbe055294f8a5bfd8cf1ceee702539cd385b
      https://github.com/ckan/ckan/commit/7173fbe055294f8a5bfd8cf1ceee702539cd385b
  Author: Adrià Mercader <amercadero at gmail.com>
  Date:   2016-06-30 (Thu, 30 Jun 2016)

  Changed paths:
    M ckan/logic/action/create.py
    M ckan/logic/action/update.py
    M ckan/tests/logic/action/test_update.py

  Log Message:
  -----------
  Merge pull request #3133 from ckan/2661-owner-org-update

Allow package_owner_org_update action to be called stand-alone


Compare: https://github.com/ckan/ckan/compare/59d1043ec10b...7173fbe05529


More information about the ckan-changes mailing list