[ckan-changes] [ckan/ckan] b6ff06: [#4827] More robust auth functions for resource_vi...

Adrià Mercader noreply at github.com
Mon Jul 1 11:30:03 UTC 2019


  Branch: refs/heads/dev-v2.8
  Home:   https://github.com/ckan/ckan
  Commit: b6ff066ff75c1195a920a0d74f34c63f56e2f808
      https://github.com/ckan/ckan/commit/b6ff066ff75c1195a920a0d74f34c63f56e2f808
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

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

  Log Message:
  -----------
  [#4827] More robust auth functions for resource_view_show

Fixes #4827.

Right now they rely on resource objects being present in the context.
You should be able to call the auth function with the same parameters
 as the action (ie just the resource view id). This is not an issue
 in core but it can be problematic when extending auth from extensions.


  Commit: 5ca0f2092f1536ff02672cdd79cb4a47a85c7bfb
      https://github.com/ckan/ckan/commit/5ca0f2092f1536ff02672cdd79cb4a47a85c7bfb
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

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

  Log Message:
  -----------
  [#4827] No need to update resource_view_list


  Commit: 13c4e26425aeee8ed26a56006e9822307cff19fe
      https://github.com/ckan/ckan/commit/13c4e26425aeee8ed26a56006e9822307cff19fe
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

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

  Log Message:
  -----------
  [#4827] Don't rely at all on resource object in context


  Commit: 456870824c207ea40c028ace8474a569e25e8601
      https://github.com/ckan/ckan/commit/456870824c207ea40c028ace8474a569e25e8601
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/tests/lib/test_helpers.py

  Log Message:
  -----------
  [#4872] Remove _external query param on Pylons generated URLs

Fixes #4872

The url_for wrapper for Pylons requests correctly handles Flask's
`_external` parameter to generate fully qualified URLs, but fails
to remove it, resulting in an extraneous param added to the URL,
 eg: http://example.com/dataset/test?_external=True


  Commit: b73a6ba179f3f457f1d065cb9e8ab66ca83a3d91
      https://github.com/ckan/ckan/commit/b73a6ba179f3f457f1d065cb9e8ab66ca83a3d91
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M ckan/tests/lib/test_helpers.py

  Log Message:
  -----------
  [#4872] [#4872] Pep8


  Commit: 3cbeb6c38f425ce72380ce8fcb89e2dbe88eb21e
      https://github.com/ckan/ckan/commit/3cbeb6c38f425ce72380ce8fcb89e2dbe88eb21e
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M ckanext/reclineview/plugin.py
    M ckanext/reclineview/theme/public/recline_view.js
    M ckanext/reclineview/theme/templates/recline_view.html

  Log Message:
  -----------
  [#4874] Allow to provide a custom DataProxy URL

Adds support for providing a custom DataProxy URL via config option.
This will pave the way for deprecating it and completely removing it in
the near future. If someone really wants to use it they can host it
themselves and update the URL that Recline uses.


  Commit: fe8a1f745e2034ff8dd10883cff4b0864e31144e
      https://github.com/ckan/ckan/commit/fe8a1f745e2034ff8dd10883cff4b0864e31144e
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M ckanext/reclineview/plugin.py

  Log Message:
  -----------
  [#4874] [#4874] Pep8


  Commit: 779381794514c33f3eda47f951a3546dc69c1fd5
      https://github.com/ckan/ckan/commit/779381794514c33f3eda47f951a3546dc69c1fd5
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M doc/maintaining/configuration.rst

  Log Message:
  -----------
  [#4874] Add config option docs


  Commit: 09d2f3bb9d6eec436b40be4447aff8c9f3db9786
      https://github.com/ckan/ckan/commit/09d2f3bb9d6eec436b40be4447aff8c9f3db9786
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M ckanext/datapusher/logic/action.py
    M doc/maintaining/configuration.rst

  Log Message:
  -----------
  [#4878] Allow custom CKAN callback URL for the DataPusher

The DataPusher pings back CKAN when performing or finishing
a job (calling the datapusher_hook action), and it does so
via an HTTP request to the host defined in ckan.site_url.

There are a number of scenarios where this does not work, eg:

* CKAN and DataPusher sitting behind a Firewall that doesn't
  allow external requests
* Standard Docker compose setup for development where the
  ckan.site_url is http://localhost:5000 or similar

This change adds a new config option that allows to define an
alternative internal URL that DataPusher can reach.


  Commit: f9aaf910ae3c35579b17abab6d2bf44d9b859839
      https://github.com/ckan/ckan/commit/f9aaf910ae3c35579b17abab6d2bf44d9b859839
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M ckanext/datastore/backend/postgres.py

  Log Message:
  -----------
  [#4841] Change statement to support psycopg2 2.8.x

Some users might find libssl issues (see #4837) for which an upgrade in
psycopg2 is required. While we are not porting the requirement upgrade
to 2.8, we make this change which is backwards compatible with psycopg2
2.7.3.2 (CKAN 2.8 pinned version) in case someone needs to upgrade the
requirement in their environment.

Just in case we fall back to the old syntax if there is an
AttributeError.


Compare: https://github.com/ckan/ckan/compare/488dc6024f00...f9aaf910ae3c


More information about the ckan-changes mailing list