[ckan-changes] [ckan/ckan] 6f910f: [#2554] Don't request all extra fields on group_li...

GitHub noreply at github.com
Wed Sep 2 11:08:11 UTC 2015


  Branch: refs/heads/release-v2.4.1
  Home:   https://github.com/ckan/ckan
  Commit: 6f910ff06d273ce8cc443ad7b46a02ea0ec1e774
      https://github.com/ckan/ckan/commit/6f910ff06d273ce8cc443ad7b46a02ea0ec1e774
  Author: amercader <amercadero at gmail.com>
  Date:   2015-08-27 (Thu, 27 Aug 2015)

  Changed paths:
    M ckan/logic/action/get.py
    M ckan/tests/logic/action/test_get.py

  Log Message:
  -----------
  [#2554] Don't request all extra fields on group_list

 #2214 replaced the organization/group_list call to group_list_dictize
by a organization/group_show call for each group, but didn't pass the
include_extras, include_users, etc params set to False, so now on each
call of this extra calls are performed by default on all groups.

Updated docstrings to include all params


  Commit: 6e1005b88aab2163d52be9c6695795e218e707ff
      https://github.com/ckan/ckan/commit/6e1005b88aab2163d52be9c6695795e218e707ff
  Author: amercader <amercadero at gmail.com>
  Date:   2015-08-27 (Thu, 27 Aug 2015)

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

  Log Message:
  -----------
  [#2554] Refactor group_list to only query necessary fields

Refactor organization/group_list to only query the necessary fields by default
(id, name, title, package_count) depending on the required sort. This massively
speeds up the default query without all_fields. In part this is because then we
no longer need to get all fields in all groups on all cases to do the sorting.
There is a minor drawback in that then we can't take private datasets into
account when sorting by number of datasets. The actual number displayed will
take private datasets into account, as this comes from the dictization, but
there might be inconsistencies (note that the "order by datasets option" is
not offered by default on the UI)


  Commit: 734e01344a2b3f74bb9d7fd03509a381030c11ea
      https://github.com/ckan/ckan/commit/734e01344a2b3f74bb9d7fd03509a381030c11ea
  Author: amercader <amercadero at gmail.com>
  Date:   2015-08-27 (Thu, 27 Aug 2015)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/logic/action/get.py
    M ckan/tests/controllers/test_group.py
    M ckan/tests/logic/action/test_get.py

  Log Message:
  -----------
  [#2554] Add limit/offset support to group_list

So on the Organizations and Groups page we just dictize the groups on
the page (we need two calls to group_list in the controller, one
with all groups to account for the query, ordering, count, etc
and one with `all_fields` with just the ones to be displayed on
the listing).

Conflicts:
	ckan/tests/controllers/test_group.py


  Commit: 2bca2f9c7a209e6de961873dd8f0607afa15deb4
      https://github.com/ckan/ckan/commit/2bca2f9c7a209e6de961873dd8f0607afa15deb4
  Author: amercader <amercadero at gmail.com>
  Date:   2015-08-27 (Thu, 27 Aug 2015)

  Changed paths:
    M ckan/controllers/home.py

  Log Message:
  -----------
  [#2554] Remove unused code from home controller

This was probably used on an old variant of the homepage, but it isn't
anymore. It removes the `c.groups` and `c.group_package_stuff` context
vars.


  Commit: c9dffa5822266857d9b04ca951430006c1b37139
      https://github.com/ckan/ckan/commit/c9dffa5822266857d9b04ca951430006c1b37139
  Author: amercader <amercadero at gmail.com>
  Date:   2015-08-27 (Thu, 27 Aug 2015)

  Changed paths:
    M ckan/controllers/home.py

  Log Message:
  -----------
  [#2554] Remove unused 'dirty' var


  Commit: cc3d6521cf08d7fa53b58e54f2892f7575fece8f
      https://github.com/ckan/ckan/commit/cc3d6521cf08d7fa53b58e54f2892f7575fece8f
  Author: amercader <amercadero at gmail.com>
  Date:   2015-08-27 (Thu, 27 Aug 2015)

  Changed paths:
    M ckan/tests/controllers/test_group.py

  Log Message:
  -----------
  [#2554] Fix ranges in group list tests


  Commit: 4afd924f94000812d5896e3eb2e1931cb844983f
      https://github.com/ckan/ckan/commit/4afd924f94000812d5896e3eb2e1931cb844983f
  Author: Ian Ward <ian at excess.org>
  Date:   2015-09-02 (Wed, 02 Sep 2015)

  Changed paths:
    M ckanext/datastore/helpers.py
    M ckanext/datastore/plugin.py

  Log Message:
  -----------
  format next to format strings, _literal_string helper


  Commit: 9d7295b360484fbbff060406771c551093c0b602
      https://github.com/ckan/ckan/commit/9d7295b360484fbbff060406771c551093c0b602
  Author: Ian Ward <ian at excess.org>
  Date:   2015-09-02 (Wed, 02 Sep 2015)

  Changed paths:
    M ckanext/datastore/plugin.py

  Log Message:
  -----------
  just use unicode in _parse_sort_clause


  Commit: 09600a84374dfa56052846dfaaac60e6b502257d
      https://github.com/ckan/ckan/commit/09600a84374dfa56052846dfaaac60e6b502257d
  Author: Ian Ward <ian at excess.org>
  Date:   2015-09-02 (Wed, 02 Sep 2015)

  Changed paths:
    M ckanext/datastore/helpers.py
    M ckanext/datastore/plugin.py

  Log Message:
  -----------
  support quoted sort args for backwards compat


  Commit: 0a8729673a1c008df85ba4d79910b5f7bec7f88e
      https://github.com/ckan/ckan/commit/0a8729673a1c008df85ba4d79910b5f7bec7f88e
  Author: amercader <amercadero at gmail.com>
  Date:   2015-09-02 (Wed, 02 Sep 2015)

  Changed paths:
    M ckan/i18n/ar/LC_MESSAGES/ckan.po
    M ckan/i18n/bg/LC_MESSAGES/ckan.po
    M ckan/i18n/ca/LC_MESSAGES/ckan.po
    M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.po
    M ckan/i18n/da_DK/LC_MESSAGES/ckan.po
    M ckan/i18n/de/LC_MESSAGES/ckan.po
    M ckan/i18n/el/LC_MESSAGES/ckan.po
    M ckan/i18n/en_AU/LC_MESSAGES/ckan.po
    M ckan/i18n/en_GB/LC_MESSAGES/ckan.po
    M ckan/i18n/es/LC_MESSAGES/ckan.po
    M ckan/i18n/fa_IR/LC_MESSAGES/ckan.po
    M ckan/i18n/fi/LC_MESSAGES/ckan.po
    M ckan/i18n/fr/LC_MESSAGES/ckan.po
    M ckan/i18n/he/LC_MESSAGES/ckan.po
    M ckan/i18n/hr/LC_MESSAGES/ckan.po
    M ckan/i18n/hu/LC_MESSAGES/ckan.po
    M ckan/i18n/id/LC_MESSAGES/ckan.po
    M ckan/i18n/is/LC_MESSAGES/ckan.po
    M ckan/i18n/it/LC_MESSAGES/ckan.po
    M ckan/i18n/ja/LC_MESSAGES/ckan.po
    M ckan/i18n/km/LC_MESSAGES/ckan.po
    M ckan/i18n/ko_KR/LC_MESSAGES/ckan.po
    M ckan/i18n/lt/LC_MESSAGES/ckan.po
    M ckan/i18n/lv/LC_MESSAGES/ckan.po
    M ckan/i18n/mn_MN/LC_MESSAGES/ckan.po
    M ckan/i18n/ne/LC_MESSAGES/ckan.po
    M ckan/i18n/nl/LC_MESSAGES/ckan.po
    M ckan/i18n/no/LC_MESSAGES/ckan.po
    M ckan/i18n/pl/LC_MESSAGES/ckan.po
    M ckan/i18n/pt_BR/LC_MESSAGES/ckan.po
    M ckan/i18n/pt_PT/LC_MESSAGES/ckan.po
    M ckan/i18n/ro/LC_MESSAGES/ckan.po
    M ckan/i18n/ru/LC_MESSAGES/ckan.po
    M ckan/i18n/sk/LC_MESSAGES/ckan.po
    M ckan/i18n/sl/LC_MESSAGES/ckan.po
    M ckan/i18n/sq/LC_MESSAGES/ckan.po
    M ckan/i18n/sr/LC_MESSAGES/ckan.po
    M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.po
    M ckan/i18n/sv/LC_MESSAGES/ckan.po
    M ckan/i18n/th/LC_MESSAGES/ckan.po
    M ckan/i18n/tr/LC_MESSAGES/ckan.po
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.po
    M ckan/i18n/vi/LC_MESSAGES/ckan.po
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.po
    M ckan/i18n/zh_TW/LC_MESSAGES/ckan.po

  Log Message:
  -----------
  Update po files from Transifex


  Commit: 0da81caae7d2baf5bb9c0111255a94edd6e71ae8
      https://github.com/ckan/ckan/commit/0da81caae7d2baf5bb9c0111255a94edd6e71ae8
  Author: amercader <amercadero at gmail.com>
  Date:   2015-09-02 (Wed, 02 Sep 2015)

  Changed paths:
    M ckan/i18n/ar/LC_MESSAGES/ckan.mo
    M ckan/i18n/bg/LC_MESSAGES/ckan.mo
    M ckan/i18n/ca/LC_MESSAGES/ckan.mo
    M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.mo
    M ckan/i18n/da_DK/LC_MESSAGES/ckan.mo
    M ckan/i18n/de/LC_MESSAGES/ckan.mo
    M ckan/i18n/el/LC_MESSAGES/ckan.mo
    M ckan/i18n/en_AU/LC_MESSAGES/ckan.mo
    M ckan/i18n/en_GB/LC_MESSAGES/ckan.mo
    M ckan/i18n/es/LC_MESSAGES/ckan.mo
    M ckan/i18n/fa_IR/LC_MESSAGES/ckan.mo
    M ckan/i18n/fi/LC_MESSAGES/ckan.mo
    M ckan/i18n/fr/LC_MESSAGES/ckan.mo
    M ckan/i18n/he/LC_MESSAGES/ckan.mo
    M ckan/i18n/hr/LC_MESSAGES/ckan.mo
    M ckan/i18n/hu/LC_MESSAGES/ckan.mo
    M ckan/i18n/id/LC_MESSAGES/ckan.mo
    M ckan/i18n/is/LC_MESSAGES/ckan.mo
    M ckan/i18n/it/LC_MESSAGES/ckan.mo
    M ckan/i18n/ja/LC_MESSAGES/ckan.mo
    M ckan/i18n/km/LC_MESSAGES/ckan.mo
    M ckan/i18n/ko_KR/LC_MESSAGES/ckan.mo
    M ckan/i18n/lt/LC_MESSAGES/ckan.mo
    M ckan/i18n/lv/LC_MESSAGES/ckan.mo
    M ckan/i18n/mn_MN/LC_MESSAGES/ckan.mo
    M ckan/i18n/ne/LC_MESSAGES/ckan.mo
    M ckan/i18n/nl/LC_MESSAGES/ckan.mo
    M ckan/i18n/no/LC_MESSAGES/ckan.mo
    M ckan/i18n/pl/LC_MESSAGES/ckan.mo
    M ckan/i18n/pt_BR/LC_MESSAGES/ckan.mo
    M ckan/i18n/pt_PT/LC_MESSAGES/ckan.mo
    M ckan/i18n/ro/LC_MESSAGES/ckan.mo
    M ckan/i18n/ru/LC_MESSAGES/ckan.mo
    M ckan/i18n/sk/LC_MESSAGES/ckan.mo
    M ckan/i18n/sl/LC_MESSAGES/ckan.mo
    M ckan/i18n/sq/LC_MESSAGES/ckan.mo
    M ckan/i18n/sr/LC_MESSAGES/ckan.mo
    M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.mo
    M ckan/i18n/sv/LC_MESSAGES/ckan.mo
    M ckan/i18n/th/LC_MESSAGES/ckan.mo
    M ckan/i18n/tr/LC_MESSAGES/ckan.mo
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.mo
    M ckan/i18n/vi/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_TW/LC_MESSAGES/ckan.mo

  Log Message:
  -----------
  Compile new translations


  Commit: 4d97a450252d659350a95522a1c32bdc55330fa2
      https://github.com/ckan/ckan/commit/4d97a450252d659350a95522a1c32bdc55330fa2
  Author: amercader <amercadero at gmail.com>
  Date:   2015-09-02 (Wed, 02 Sep 2015)

  Changed paths:
    M CHANGELOG.rst

  Log Message:
  -----------
  Update changelog ahead of 2.4.1 release


  Commit: 8994fabc3414288f3574ed4397e56f28f455065f
      https://github.com/ckan/ckan/commit/8994fabc3414288f3574ed4397e56f28f455065f
  Author: amercader <amercadero at gmail.com>
  Date:   2015-09-02 (Wed, 02 Sep 2015)

  Changed paths:
    M ckan/__init__.py

  Log Message:
  -----------
  Update version number for release 2.4.1


Compare: https://github.com/ckan/ckan/compare/69f995ffe1a6...8994fabc3414


More information about the ckan-changes mailing list