[ckan-changes] [ckan/ckan] fac4f2: Update version number for 2.5.2b

GitHub noreply at github.com
Thu Mar 31 13:19:00 UTC 2016


  Branch: refs/heads/release-v2.5-latest
  Home:   https://github.com/ckan/ckan
  Commit: fac4f28bc6a88181132fc99d8589f2faf07a44be
      https://github.com/ckan/ckan/commit/fac4f28bc6a88181132fc99d8589f2faf07a44be
  Author: amercader <amercadero at gmail.com>
  Date:   2016-01-20 (Wed, 20 Jan 2016)

  Changed paths:
    M ckan/__init__.py

  Log Message:
  -----------
  Update version number for 2.5.2b


  Commit: f1e641ca78ba838a5a6a2bff5fff69fba4bbfa35
      https://github.com/ckan/ckan/commit/f1e641ca78ba838a5a6a2bff5fff69fba4bbfa35
  Author: Laurent Goderre <laurent.goderre at gmail.com>
  Date:   2016-01-20 (Wed, 20 Jan 2016)

  Changed paths:
    M ckan/templates/snippets/organization_item.html

  Log Message:
  -----------
  Fixed the url for the organization_item template

Fixes #2827


  Commit: af3fdd15153be014d9b10e4ddf7bb06f0f2cb6c7
      https://github.com/ckan/ckan/commit/af3fdd15153be014d9b10e4ddf7bb06f0f2cb6c7
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2016-02-09 (Tue, 09 Feb 2016)

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

  Log Message:
  -----------
  Fix exception in log.error a few lines later than this change. https://github.com/ckan/ckan/commit/34e1e3f05f52b9ec5b2c2ff79af9822e6d01dd0a#commitcomment-15781370


  Commit: 25028217f3aef4356d7f782ca41e88dd93de1c1b
      https://github.com/ckan/ckan/commit/25028217f3aef4356d7f782ca41e88dd93de1c1b
  Author: Michail Alexakis <alexakis at imis.athena-innovation.gr>
  Date:   2016-02-09 (Tue, 09 Feb 2016)

  Changed paths:
    M ckanext/datastore/helpers.py
    M ckanext/datastore/tests/test_helpers.py

  Log Message:
  -----------
  Encode EXPLAIN SQL before sending to datastore


  Commit: c98b511a13c46c54190e3141da4312ae26892df5
      https://github.com/ckan/ckan/commit/c98b511a13c46c54190e3141da4312ae26892df5
  Author: Michail Alexakis <alexakis at imis.athena-innovation.gr>
  Date:   2016-02-09 (Tue, 09 Feb 2016)

  Changed paths:
    M ckanext/datastore/tests/test_helpers.py

  Log Message:
  -----------
  Provide unicode CREATE TABLE statements (datastore tests)


  Commit: 8c6cbe68e27996ca238385db6f2f5a4157598c7f
      https://github.com/ckan/ckan/commit/8c6cbe68e27996ca238385db6f2f5a4157598c7f
  Author: Michail Alexakis <alexakis at imis.athena-innovation.gr>
  Date:   2016-02-09 (Tue, 09 Feb 2016)

  Changed paths:
    M ckanext/datastore/tests/test_helpers.py

  Log Message:
  -----------
  Provide unicode queries for testing `get_table_names_from_sql` (datastore tests)


  Commit: 2cc1be59c37e0c79409cf55212e35a14dd17e512
      https://github.com/ckan/ckan/commit/2cc1be59c37e0c79409cf55212e35a14dd17e512
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-16 (Wed, 16 Mar 2016)

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

  Log Message:
  -----------
  [#2848] Avoid package_search exception when using use_default_schema

The parameter needs to be removed before sending the query to Solr

Also improved the boolean checking and fixed the docs.


  Commit: 1d5d12046739955ec0a6d4e5a41f5e712d930518
      https://github.com/ckan/ckan/commit/1d5d12046739955ec0a6d4e5a41f5e712d930518
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-16 (Wed, 16 Mar 2016)

  Changed paths:
    M ckanext/datastore/logic/action.py
    M ckanext/datastore/tests/test_delete.py

  Log Message:
  -----------
  [#2885] Fix datastore_delete erasing the db when filters is blank

Orignally submitted by @TkTech:

https://github.com/ckan/ckan/pull/2885


  Commit: 39ac9a6c48445d701521d93c5726c453a0637189
      https://github.com/ckan/ckan/commit/39ac9a6c48445d701521d93c5726c453a0637189
  Author: Jan Dvořák <mordae at anilinux.org>
  Date:   2016-03-16 (Wed, 16 Mar 2016)

  Changed paths:
    M ckanext/datastore/db.py

  Log Message:
  -----------
  datastore: Prevent unicode/ascii conversion errors

Some error messages were causing the errors due to format conversion
of unicode fields into str templates.

Signed-off-by: Jan Dvořák <mordae at anilinux.org>


  Commit: 906e716bc5c3ed9ad9ec17e2d642a54682677d07
      https://github.com/ckan/ckan/commit/906e716bc5c3ed9ad9ec17e2d642a54682677d07
  Author: Jan Dvořák <mordae at anilinux.org>
  Date:   2016-03-16 (Wed, 16 Mar 2016)

  Changed paths:
    M ckanext/datastore/db.py

  Log Message:
  -----------
  datastore: use repr() for log message ascii-safety

Logging statements had a potential to crash on unicode inputs.
Make sure they are always escaped.

Signed-off-by: Jan Dvořák <mordae at anilinux.org>


  Commit: 440a6d2f993985b3d91995db7cf6564b25d03ba5
      https://github.com/ckan/ckan/commit/440a6d2f993985b3d91995db7cf6564b25d03ba5
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-03-17 (Thu, 17 Mar 2016)

  Changed paths:
    M ckan/model/domain_object.py
    M ckan/tests/model/test_resource.py

  Log Message:
  -----------
  [#2919] Fix DomainObject.count() to return count


  Commit: d5dc61b8ccf100e203f4aa1bdd267446cee21ef7
      https://github.com/ckan/ckan/commit/d5dc61b8ccf100e203f4aa1bdd267446cee21ef7
  Author: Motornyuk Sergey <tonnydexter at gmail.com>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M ckan/templates/package/snippets/resource_view.html

  Log Message:
  -----------
  [#2873] Use `resource.url` as raw_resource_url

`resource_view` template uses raw_resouce_url in order to create
download link if resource can't be displayed, but this variable is not
passed into snippet. To make that simpler, use resource.url property
for download button.


  Commit: 6fbe24e4adc56e6c322fe96f3e78429eab51eacb
      https://github.com/ckan/ckan/commit/6fbe24e4adc56e6c322fe96f3e78429eab51eacb
  Author: Florian Brucker <florian.brucker at mb.karlsruhe.de>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M ckan/lib/plugins.py

  Log Message:
  -----------
  Fix #2895: Problems with translations in plugins (part 1)

`ckan.lib.plugin.DefaultTranslation` relies on the extension package's
`__file__` attribute which is not available for namespace packages.

The fix is to use `ckanext.my_extension.plugin.__file__` instead. Note
that the existing code already assumes the existance of the `plugin`
module.


  Commit: 39a890119e2d7863d7dff73a5925c00efa9b46c1
      https://github.com/ckan/ckan/commit/39a890119e2d7863d7dff73a5925c00efa9b46c1
  Author: Florian Brucker <florian.brucker at mb.karlsruhe.de>
  Date:   2016-03-29 (Tue, 29 Mar 2016)

  Changed paths:
    M ckan/pastertemplates/template/MANIFEST.in_tmpl

  Log Message:
  -----------
  Fix #2895: Problems with translations in plugins (part 2)

In extensions created using the current templates `*.mo` files (compiled
translations) are not picked up during packaging.

The fix is to include these files via the `MANIFEST.in` file and to
update the template accordingly.


  Commit: 8a7b0d299a7d72d978cc300e535fe126ecd877cf
      https://github.com/ckan/ckan/commit/8a7b0d299a7d72d978cc300e535fe126ecd877cf
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datapusher/plugin.py

  Log Message:
  -----------
  [#2856] Avoid submitting resources to the DataPusher multiple times

The datapusher plugin uses the notify extension point to check if a
resource was created or updated. `datapusher_submit` will create a new
task with status pending when first called and `datapusher_hook` will
mark it as complete when necessary. We can use that to avoid resending
jobs unnecessarily.


  Commit: d4fc959b8fa38e942c8067299a4b6cf82415a731
      https://github.com/ckan/ckan/commit/d4fc959b8fa38e942c8067299a4b6cf82415a731
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datastore/logic/action.py

  Log Message:
  -----------
  [#2856] Only set datastore_active when necessary

Rather than updating the resource always, just do it when is actually
needed, ie:

* On datastore_create, when the resource doesn't already has a
  datastore_active=True extra

* On datastore_delete, only if the resource has datastore_active=False


  Commit: b295b91791a2f9a4d98c19bd20d989ea6d32e354
      https://github.com/ckan/ckan/commit/b295b91791a2f9a4d98c19bd20d989ea6d32e354
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datastore/tests/test_create.py

  Log Message:
  -----------
  [#2856] Add some tests


  Commit: 17d1f86ed7d196ee450a07afe62c29ba56449f1b
      https://github.com/ckan/ckan/commit/17d1f86ed7d196ee450a07afe62c29ba56449f1b
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datastore/logic/action.py

  Log Message:
  -----------
  [#2856] Better True check


  Commit: 329ff2051fa8f1c2949b67202734f5d42b4c9560
      https://github.com/ckan/ckan/commit/329ff2051fa8f1c2949b67202734f5d42b4c9560
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datapusher/logic/action.py

  Log Message:
  -----------
  [#2856] Resubmit to DataPusher if file is reuploaded or URL changes

Previous commits prevent new DataPusher jobs from being created if there
is an ongoing one. There are cases though where we actually want to
resubmit, basically if the data source has changed since the first
DataPusher job started. This can be because a new file was uploaded or
because the URL was changed.

* For file uploads we check the `last_modified` resource property, which
  is set after an upload against the task creation date.
* For URLs we check if the original URL is different from the current
  one.

 We store both the task creation date and the original URL in the
 metadata sent to (and returned from) the DataPusher.


  Commit: 42f96c29b67ccf2c28e0f3e2db30a60074554066
      https://github.com/ckan/ckan/commit/42f96c29b67ccf2c28e0f3e2db30a60074554066
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datapusher/logic/action.py

  Log Message:
  -----------
  [#2856] Move variable to correct scope


  Commit: e67192536f1f962be131c1495ecf80f778815635
      https://github.com/ckan/ckan/commit/e67192536f1f962be131c1495ecf80f778815635
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datapusher/logic/action.py

  Log Message:
  -----------
  [#2856] PEP8]


  Commit: b5a0aca9b294215aacbcdbe13a8d8813e9b2a70b
      https://github.com/ckan/ckan/commit/b5a0aca9b294215aacbcdbe13a8d8813e9b2a70b
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckanext/datapusher/logic/action.py

  Log Message:
  -----------
  [#2856] Tweaks after review


  Commit: ee3fb807b68e5368878adfea0b740486c55e4c34
      https://github.com/ckan/ckan/commit/ee3fb807b68e5368878adfea0b740486c55e4c34
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    M ckan/tests/helpers.py

  Log Message:
  -----------
  [#2856] Add decorator to mock a CKAN action in tests

Because of the way actions are accessed via `get_action`, it is a pain to mock
them. This decorator adds a mock object for the provided action as a parameter
to the test function. The mock is discarded at the end of the function, even
if there is an exception raised.

This mocks the action both when it's called directly via
`ckan.logic.get_action` and via `ckan.plugins.toolkit.get_action`


  Commit: ffc46cf48f467a32e72d03a94ab0ed41cba986e3
      https://github.com/ckan/ckan/commit/ffc46cf48f467a32e72d03a94ab0ed41cba986e3
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-30 (Wed, 30 Mar 2016)

  Changed paths:
    A ckanext/datapusher/tests/test_action.py

  Log Message:
  -----------
  [#2856] Added tests for DataPusher submissions

Test basic behaviour and resubmissions if updates are performed during
an ongoing job.


  Commit: 1596665d9e3741d2470e0774a9da95fc9c639596
      https://github.com/ckan/ckan/commit/1596665d9e3741d2470e0774a9da95fc9c639596
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-31 (Thu, 31 Mar 2016)

  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/es_AR/LC_MESSAGES/ckan.mo
    M ckan/i18n/fa_IR/LC_MESSAGES/ckan.mo
    M ckan/i18n/fi/LC_MESSAGES/ckan.mo
    M ckan/i18n/fi/LC_MESSAGES/ckan.po
    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/is/LC_MESSAGES/ckan.po
    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
    A ckan/i18n/ne/LC_MESSAGES/ckan.mo
    A ckan/i18n/ne/LC_MESSAGES/ckan.po
    M ckan/i18n/nl/LC_MESSAGES/ckan.mo
    M ckan/i18n/nl/LC_MESSAGES/ckan.po
    M ckan/i18n/no/LC_MESSAGES/ckan.mo
    M ckan/i18n/no/LC_MESSAGES/ckan.po
    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/pt_PT/LC_MESSAGES/ckan.po
    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
    A ckan/i18n/tl/LC_MESSAGES/ckan.mo
    A ckan/i18n/tl/LC_MESSAGES/ckan.po
    M ckan/i18n/tr/LC_MESSAGES/ckan.mo
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.mo
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.po
    M ckan/i18n/vi/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.po
    M ckan/i18n/zh_TW/LC_MESSAGES/ckan.mo

  Log Message:
  -----------
  Update translations


  Commit: 919201e886fa95c8f26b9d970cb9ef7bbb916ca9
      https://github.com/ckan/ckan/commit/919201e886fa95c8f26b9d970cb9ef7bbb916ca9
  Author: amercader <amercadero at gmail.com>
  Date:   2016-03-31 (Thu, 31 Mar 2016)

  Changed paths:
    M CHANGELOG.rst
    M ckan/__init__.py

  Log Message:
  -----------
  Update version number and CHANGELOG before 2.5.2 release


Compare: https://github.com/ckan/ckan/compare/63fff8618d57...919201e886fa


More information about the ckan-changes mailing list