[ckan-changes] [okfn/ckan] 29bd17: [#2854] Enable allow_partial_update for group upda...

GitHub noreply at github.com
Mon Aug 20 14:27:17 UTC 2012


  Branch: refs/heads/release-v1.8
  Home:   https://github.com/okfn/ckan
  Commit: 29bd17bd8305bd12cec49ce4b5e5739890c3f02e
      https://github.com/okfn/ckan/commit/29bd17bd8305bd12cec49ce4b5e5739890c3f02e
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-15 (Wed, 15 Aug 2012)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/lib/dictization/model_save.py

  Log Message:
  -----------
  [#2854] Enable allow_partial_update for group update

Listen to allow_partial_update in the context when saving a group, and
use it in the group controller. This fixes issue #2854 where all an
organizations datasets were being removed on updating an organization
(with the organizations plugins enabled)


  Commit: b17ea57856187ed2789e81fcacf5f6731d11da2d
      https://github.com/okfn/ckan/commit/b17ea57856187ed2789e81fcacf5f6731d11da2d
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-18 (Sat, 18 Aug 2012)

  Changed paths:
    M ckan/controllers/feed.py
    M ckan/controllers/package.py
    M ckan/controllers/related.py
    M ckan/controllers/storage.py
    M ckan/lib/create_test_data.py
    M ckan/lib/mailer.py
    M ckan/model/license.py
    M ckan/public/scripts/application.js
    M ckan/public/scripts/vendor/recline/recline.js
    M ckan/tests/functional/test_group.py
    M ckan/tests/functional/test_user.py
    M ckanext/multilingual/tests/test_multilingual_plugin.py

  Log Message:
  -----------
  Merge branch 'release-v1.8' of github.com:okfn/ckan into 2845-bug-editing-organization-removes-datasets


  Commit: e3a67936f5dea6ec07187c5acd8393e7f60c729a
      https://github.com/okfn/ckan/commit/e3a67936f5dea6ec07187c5acd8393e7f60c729a
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-18 (Sat, 18 Aug 2012)

  Changed paths:
    M ckan/lib/dictization/model_save.py

  Log Message:
  -----------
  [#2845] Apply allow_partial_update to all group fields

Make 'allow_partial_update': True in the context apply to multiple group
fields: packages, users, groups, tags and extras, when updating a group,
so you can pass a group dict with e.g. no 'packages' key and this will
update the group but will not change the group's packages.  Previously
allow_partial_update only affected packages and extras.


  Commit: 6f7fa8b41f1d08005328afa9e24bb2fbffcf8e85
      https://github.com/okfn/ckan/commit/6f7fa8b41f1d08005328afa9e24bb2fbffcf8e85
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-08-18 (Sat, 18 Aug 2012)

  Changed paths:
    M ckan/lib/dictization/model_save.py

  Log Message:
  -----------
  [#2845] Allow passing empty lists to group_update

If, for example, a group dict with a 'packages' key with an empty list
as the value is passed to group_update, then set the group's packages to
an empty list (i.e. remove any packages from the group), even if
'allow_partial_update': True was specified in the context (previously
such an empty list would be ignored and the group's packages would not
change). Also applies to other group fields e.g. tags, users, groups, etc.


  Commit: 49fca25a4321b2af34dc9bed9d3c3fa6cbe6d0da
      https://github.com/okfn/ckan/commit/49fca25a4321b2af34dc9bed9d3c3fa6cbe6d0da
  Author: amercader <amercadero at gmail.com>
  Date:   2012-08-20 (Mon, 20 Aug 2012)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/lib/dictization/model_save.py

  Log Message:
  -----------
  Merge branch '2845-bug-editing-organization-removes-datasets' into release-v1.8


Compare: https://github.com/okfn/ckan/compare/e7e4a0216eee...49fca25a4321


More information about the ckan-changes mailing list