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

Adrià Mercader noreply at github.com
Mon Jul 1 11:36:27 UTC 2019


  Branch: refs/heads/dev-v2.7
  Home:   https://github.com/ckan/ckan
  Commit: 9fcce8213f46db75f20f2429234eb1ece092e802
      https://github.com/ckan/ckan/commit/9fcce8213f46db75f20f2429234eb1ece092e802
  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: a43bbca4e8121003e084f817c4de9131f0a5aefb
      https://github.com/ckan/ckan/commit/a43bbca4e8121003e084f817c4de9131f0a5aefb
  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: ed9bfc9ad3f9d1d48cb14ae5fba4ad04f720f8f3
      https://github.com/ckan/ckan/commit/ed9bfc9ad3f9d1d48cb14ae5fba4ad04f720f8f3
  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: 4adbdbdc79652e640a901f455a0d6322e6fb7224
      https://github.com/ckan/ckan/commit/4adbdbdc79652e640a901f455a0d6322e6fb7224
  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: d119258623750b36331038715853db36246f0a68
      https://github.com/ckan/ckan/commit/d119258623750b36331038715853db36246f0a68
  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: e6a2e564be7a2d72911521a3cd6c463dc3afec4a
      https://github.com/ckan/ckan/commit/e6a2e564be7a2d72911521a3cd6c463dc3afec4a
  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: 6e101f3741a23927555ff511611a39bd1a83ec0e
      https://github.com/ckan/ckan/commit/6e101f3741a23927555ff511611a39bd1a83ec0e
  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: 7e8a47849a8aaf9f2aed6501b0ef063b74894a17
      https://github.com/ckan/ckan/commit/7e8a47849a8aaf9f2aed6501b0ef063b74894a17
  Author: amercader <amercadero at gmail.com>
  Date:   2019-07-01 (Mon, 01 Jul 2019)

  Changed paths:
    M doc/maintaining/configuration.rst

  Log Message:
  -----------
  [#4878] [#4878] Fix docs heading


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

  Changed paths:
    M ckan/public/base/css/fuchsia.css
    M ckan/public/base/css/fuchsia.min.css
    M ckan/public/base/css/green.css
    M ckan/public/base/css/green.min.css
    M ckan/public/base/css/main.css
    M ckan/public/base/css/main.min.css
    M ckan/public/base/css/maroon.css
    M ckan/public/base/css/maroon.min.css
    M ckan/public/base/css/red.css
    M ckan/public/base/css/red.min.css
    M ckanext/reclineview/theme/public/recline_view.min.js

  Log Message:
  -----------
  Compile frontend


Compare: https://github.com/ckan/ckan/compare/4df686034040...65ea71220ca6


More information about the ckan-changes mailing list