[ckan-changes] [ckan/ckan] ed7474: [#3194] Ensure that relative redirects use the hos...

GitHub noreply at github.com
Tue Aug 23 11:48:55 UTC 2016


  Branch: refs/heads/3196-common-requests-code
  Home:   https://github.com/ckan/ckan
  Commit: ed747496ee61eb1fdca2bf77fa28af600b8a4f58
      https://github.com/ckan/ckan/commit/ed747496ee61eb1fdca2bf77fa28af600b8a4f58
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-22 (Mon, 22 Aug 2016)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/tests/controllers/test_tags.py
    M ckan/tests/controllers/test_util.py

  Log Message:
  -----------
  [#3194] Ensure that relative redirects use the host on ckan.site_url

Conflicts:
	ckan/lib/helpers.py


  Commit: 53490115ce2c98e6e9bd0a45342e7943df4713dc
      https://github.com/ckan/ckan/commit/53490115ce2c98e6e9bd0a45342e7943df4713dc
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-22 (Mon, 22 Aug 2016)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  [#3194] Support both Flask and Pylons redirects


  Commit: bddd7b5298e2724114278b309333fcc5c0378cd8
      https://github.com/ckan/ckan/commit/bddd7b5298e2724114278b309333fcc5c0378cd8
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/controllers/api.py
    M ckan/lib/base.py
    M ckan/tests/controllers/test_package.py
    M ckan/views/__init__.py

  Log Message:
  -----------
  [#3196] Move user identify logic to a separate module

So it can be reused by Flask requests handlers and Pylons base
controllers


  Commit: ac207b1691d45976b2d637edecf84394219c76db
      https://github.com/ckan/ckan/commit/ac207b1691d45976b2d637edecf84394219c76db
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/config/middleware/flask_app.py
    M ckan/tests/config/test_middleware.py

  Log Message:
  -----------
  [#3194] Call indentify_user logic on all Flask requests

Using a Flask before_request handler. Added tests.

All credit goes to @brew


  Commit: 1683727fce578d05e0c581adbe0d22ea489673fd
      https://github.com/ckan/ckan/commit/1683727fce578d05e0c581adbe0d22ea489673fd
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/config/middleware/flask_app.py
    M ckan/lib/base.py
    M ckan/tests/lib/test_base.py
    M ckan/views/__init__.py

  Log Message:
  -----------
  [#3196] CORS headers added to Flask responses.

The method to set CORS headers moved to `views` module and CKAN core
refactored to import and use it.

Original commit by @brew (77a436eb)


  Commit: 15d16bc2b11c4eb0cbe459352f356d945b6f5077
      https://github.com/ckan/ckan/commit/15d16bc2b11c4eb0cbe459352f356d945b6f5077
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/config/middleware/flask_app.py

  Log Message:
  -----------
  [#3196] Add request timer for Flask requests

Times between before_request and after_request and outputs to log level
info


  Commit: 6cbe198f3f3333a9ef845b7e06ce1e3595b8ddf0
      https://github.com/ckan/ckan/commit/6cbe198f3f3333a9ef845b7e06ce1e3595b8ddf0
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/config/middleware/flask_app.py
    M ckan/lib/base.py
    M ckan/views/__init__.py

  Log Message:
  -----------
  [#3196] Move session cookie check to views module

Used by both base.py and Flask after_request handler.


  Commit: 889978b2d0f62523e673f881bc913baf115f7a31
      https://github.com/ckan/ckan/commit/889978b2d0f62523e673f881bc913baf115f7a31
  Author: amercader <amercadero at gmail.com>
  Date:   2016-08-23 (Tue, 23 Aug 2016)

  Changed paths:
    M ckan/config/middleware/flask_app.py

  Log Message:
  -----------
  [#3196] Ensure app_globals is up to date for each Flask request


Compare: https://github.com/ckan/ckan/compare/ed747496ee61^...889978b2d0f6


More information about the ckan-changes mailing list