[ckan-changes] [okfn/ckan] 07420a: [#1208] Use search to get datasets on group_show

GitHub noreply at github.com
Fri Dec 6 17:33:32 UTC 2013


  Branch: refs/heads/1208-dictize-changes-2
  Home:   https://github.com/okfn/ckan
  Commit: 07420aef7a210ef09b93e4584e283abacc7a08a9
      https://github.com/okfn/ckan/commit/07420aef7a210ef09b93e4584e283abacc7a08a9
  Author: amercader <amercadero at gmail.com>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

  Changed paths:
    M ckan/lib/dictization/model_dictize.py
    M ckan/logic/action/get.py
    M ckan/tests/lib/test_dictization.py

  Log Message:
  -----------
  [#1208] Use search to get datasets on group_show

Use the search rather than query the db.

Instead of returning the whole package dict, pick the fields to match
the ones currently returned by the API.


  Commit: f6e5aa773cda8960788301ec051364479142a192
      https://github.com/okfn/ckan/commit/f6e5aa773cda8960788301ec051364479142a192
  Author: amercader <amercadero at gmail.com>
  Date:   2013-12-06 (Fri, 06 Dec 2013)

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

  Log Message:
  -----------
  [#1208] Do not query datasets on group_show from the controller

When dictizing the group as requested from the controller, don't query
Solr for datasets as they will be ignored and get requested on the
controller later on anyway


Compare: https://github.com/okfn/ckan/compare/07420aef7a21^...f6e5aa773cda


More information about the ckan-changes mailing list