[ckan-changes] [ckan/ckan] b2ce8e: Fixes #2210 - changing group_create and group_list...

GitHub noreply at github.com
Wed Jan 14 14:24:44 UTC 2015


  Branch: refs/heads/2210-use-group-show-not-group-dictize
  Home:   https://github.com/ckan/ckan
  Commit: b2ce8e403d70b6b3652110344a1f90e1a4e6f36f
      https://github.com/ckan/ckan/commit/b2ce8e403d70b6b3652110344a1f90e1a4e6f36f
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2015-01-14 (Wed, 14 Jan 2015)

  Changed paths:
    M ckan/lib/dictization/model_dictize.py
    M ckan/logic/action/create.py
    M ckan/logic/action/get.py
    M ckan/new_tests/lib/dictization/test_model_dictize.py
    M ckan/new_tests/logic/action/test_get.py
    M ckan/tests/functional/api/test_dashboard.py
    M ckan/tests/functional/test_group.py

  Log Message:
  -----------
  Fixes #2210 - changing group_create and group_list calls

Instead of calling group_dictize and returning the results at the end of
group_create this now returns group_show instead for consistency.  This
ensures the show schema is used to validate and process the result
returned to the user.  It should make it easier to call create, modify
the response and then post to update.

Instead of using group_list_dictize the group_list call now uses
group_show to return the relevant data.

The deprecated use of packages as either a list or a count has been
removed as package_count is already returned on each group_show call.

This is more than likely a breaking change and will need close checks to
make sure it is accurate.




More information about the ckan-changes mailing list