[ckan-changes] [ckan/ckan] 7cac4e: Fix #2953: Strange facet item order.

GitHub noreply at github.com
Thu May 12 10:42:11 UTC 2016


  Branch: refs/heads/poc-flask-views
  Home:   https://github.com/ckan/ckan
  Commit: 7cac4e16fafbd91e4299902f1706b9eb2191edd6
      https://github.com/ckan/ckan/commit/7cac4e16fafbd91e4299902f1706b9eb2191edd6
  Author: Florian Brucker <florian.brucker at mb.karlsruhe.de>
  Date:   2016-04-12 (Tue, 12 Apr 2016)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  Fix #2953: Strange facet item order.

Previously, facet items (e.g. tags) were first sorted descendingly by
number of matching datasets and then descendingly by case-sensitive
display name. The latter is unexpected and makes browsing the facets
unnecessarily difficult.

With this commit, facets are first sorted descendingly by dataset count
(as before) and then ascendingly by case-insensitive display name.


  Commit: 6a7babdd7a86c1e292cbdcaccbd63be4afa594c9
      https://github.com/ckan/ckan/commit/6a7babdd7a86c1e292cbdcaccbd63be4afa594c9
  Author: Ian Ward <ian at excess.org>
  Date:   2016-04-27 (Wed, 27 Apr 2016)

  Changed paths:
    M ckan/controllers/api.py
    R ckan/lib/lazyjson.py
    M ckan/logic/action/get.py
    M ckan/tests/logic/action/test_get.py

  Log Message:
  -----------
  [#2983] remove LazyJSONObject


  Commit: 44a6783ca2b47e6f6a28345ed097b0877f224231
      https://github.com/ckan/ckan/commit/44a6783ca2b47e6f6a28345ed097b0877f224231
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-09 (Mon, 09 May 2016)

  Changed paths:
    M ckan/controllers/api.py
    M ckan/tests/controllers/test_api.py
    M ckan/tests/legacy/logic/test_action.py

  Log Message:
  -----------
  [#3002] Only allow JSONP callback on the action API for GET requests

Updated the tests from the legacy ones.


  Commit: 4ee76da6b05c9b34413d1f232369ac92d94bad49
      https://github.com/ckan/ckan/commit/4ee76da6b05c9b34413d1f232369ac92d94bad49
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-09 (Mon, 09 May 2016)

  Changed paths:
    M doc/api/index.rst

  Log Message:
  -----------
  [#3002] Mention in docs that only GET is supported


  Commit: 54aff38c9b99085fd2588e299e8b15b42aba5380
      https://github.com/ckan/ckan/commit/54aff38c9b99085fd2588e299e8b15b42aba5380
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-09 (Mon, 09 May 2016)

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

  Log Message:
  -----------
  [#3002] Fix PEP8


  Commit: 1a39062c3465b2529a44875e19786083e7fdc72e
      https://github.com/ckan/ckan/commit/1a39062c3465b2529a44875e19786083e7fdc72e
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-09 (Mon, 09 May 2016)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/lib/i18n.py
    M ckan/templates/snippets/language_selector.html
    M ckan/tests/controllers/test_home.py
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  [#3004] Upgrade Babel requirement, fix issues with language selector

The language selector did not work with Babel 2.3.4 because the URLs on
the option tags didn't contain the language code. This was caused
because we are passing the Babel `Locale` classes to the `url_for`
helper, which compares them against a list of string codes (eg `ca`).
On older Babel versions comparing eg `Locale('ca') == 'ca'` used to
work.

This includes the necessary changes both on the selector snippet and the
helper functions so we are comparing apples to apples.


  Commit: 3adb55195c85df56aa365392fe61e3bc64c46ef2
      https://github.com/ckan/ckan/commit/3adb55195c85df56aa365392fe61e3bc64c46ef2
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-09 (Mon, 09 May 2016)

  Changed paths:
    M ckan/lib/i18n.py
    M ckan/tests/legacy/test_coding_standards.py

  Log Message:
  -----------
  [#3004] PEP8 lib/i18n.py


  Commit: c1ff9e8c2aabf9c491ca6d7a8210db304e525541
      https://github.com/ckan/ckan/commit/c1ff9e8c2aabf9c491ca6d7a8210db304e525541
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  [#3004] Upgrade pytz requirement


  Commit: 2836860c93db100f7661372fd3f60645e1cc7324
      https://github.com/ckan/ckan/commit/2836860c93db100f7661372fd3f60645e1cc7324
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  [#3004] Don't try to localize True/False as numbers

Not enought thorough checks meant that True/False were passed to Babel
to localize, which causes a crash on modern Babel versions.


  Commit: 02668cb8b24c29c94e12cc2629631fbc07312e5e
      https://github.com/ckan/ckan/commit/02668cb8b24c29c94e12cc2629631fbc07312e5e
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

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

  Log Message:
  -----------
  [#3002] Smarter nose import

cc @TkTech


  Commit: a8cfc57ad4215a012c63b716e63e870f95be8872
      https://github.com/ckan/ckan/commit/a8cfc57ad4215a012c63b716e63e870f95be8872
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

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

  Log Message:
  -----------
  [#3004] Smarter nose import


  Commit: fde833156b4b7327d8d3dfaa8b226f589a19ddf3
      https://github.com/ckan/ckan/commit/fde833156b4b7327d8d3dfaa8b226f589a19ddf3
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M ckan/controllers/api.py
    R ckan/lib/lazyjson.py
    M ckan/logic/action/get.py
    M ckan/tests/logic/action/test_get.py

  Log Message:
  -----------
  Merge branch '2983-remove-lazyjson'


  Commit: 667cd997c8371242185a5ec4014843fed93f7538
      https://github.com/ckan/ckan/commit/667cd997c8371242185a5ec4014843fed93f7538
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  Merge branch '2953-strange-facet-item-order' of https://github.com/torfsen/ckan into torfsen-2953-strange-facet-item-order


  Commit: 2914ed3b65ef00e68ac2f258555f99c42ca8428c
      https://github.com/ckan/ckan/commit/2914ed3b65ef00e68ac2f258555f99c42ca8428c
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  Merge branch 'torfsen-2953-strange-facet-item-order'


  Commit: f588413b160ecfbbdd92a12e4a91e34b66304132
      https://github.com/ckan/ckan/commit/f588413b160ecfbbdd92a12e4a91e34b66304132
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-10 (Tue, 10 May 2016)

  Changed paths:
    M ckan/lib/jinja_extensions.py
    M ckan/tests/controllers/test_package.py
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  [#3005] Update Jinja2 to 2.8, fix i18n extension

The main issue is an API change on Jinja2 Internationalization extension
that makes our own `CkanInternationalizationExtension` crash when rendering
eg resource_list.html:

https://github.com/pallets/jinja/commit/79c8475f80257be4999a20d1432ff6a8e3f38815#diff-fc43b0d0748bc433885163912839f823L297


  Commit: ce30b3f4068bb656104bbed2a1c89b3feb59bcd0
      https://github.com/ckan/ckan/commit/ce30b3f4068bb656104bbed2a1c89b3feb59bcd0
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-11 (Wed, 11 May 2016)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/lib/i18n.py
    M ckan/templates/snippets/language_selector.html
    M ckan/tests/controllers/test_home.py
    M ckan/tests/legacy/test_coding_standards.py
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  Merge branch '3004-upgrade-babel' into poc-flask-views


  Commit: 4e9e9c70554f694224a3577806beab788beef681
      https://github.com/ckan/ckan/commit/4e9e9c70554f694224a3577806beab788beef681
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-11 (Wed, 11 May 2016)

  Changed paths:
    M ckan/controllers/api.py
    M ckan/lib/helpers.py
    R ckan/lib/lazyjson.py
    M ckan/logic/action/get.py
    M ckan/tests/logic/action/test_get.py

  Log Message:
  -----------
  Merge branch 'master' into poc-flask-views


  Commit: 28e4fac9de655dcb1fae4b73c62439339ba6ec69
      https://github.com/ckan/ckan/commit/28e4fac9de655dcb1fae4b73c62439339ba6ec69
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-11 (Wed, 11 May 2016)

  Changed paths:
    M ckan/lib/jinja_extensions.py
    M ckan/tests/controllers/test_package.py
    M requirements.in
    M requirements.txt

  Log Message:
  -----------
  Merge branch '3005-update-jinja2' into poc-flask-views

Conflicts:
	requirements.in


  Commit: 9b109f2c4748897f3077a92865fc23d0fe9b7bf1
      https://github.com/ckan/ckan/commit/9b109f2c4748897f3077a92865fc23d0fe9b7bf1
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-12 (Thu, 12 May 2016)

  Changed paths:
    M ckan/tests/legacy/logic/test_action.py
    M ckan/tests/legacy/logic/test_auth.py
    M ckan/views/api.py
    M ckanext/multilingual/tests/test_multilingual_plugin.py

  Log Message:
  -----------
  Fix more API related tests and dodgy legacy ones


  Commit: c828534edf9cc3a04535469074e7f87d087b0f8d
      https://github.com/ckan/ckan/commit/c828534edf9cc3a04535469074e7f87d087b0f8d
  Author: amercader <amercadero at gmail.com>
  Date:   2016-05-12 (Thu, 12 May 2016)

  Changed paths:
    M ckan/controllers/api.py
    M ckan/tests/controllers/test_api.py
    M ckan/tests/legacy/logic/test_action.py
    M doc/api/index.rst

  Log Message:
  -----------
  Merge branch '3002-jsonp-get' into poc-flask-views


Compare: https://github.com/ckan/ckan/compare/e203efda4abc...c828534edf9c


More information about the ckan-changes mailing list