[ckan-changes] [ckan/ckan] 05375b: If a test app exists, reset it for each test

GitHub noreply at github.com
Thu May 26 16:19:42 UTC 2016


  Branch: refs/heads/poc-flask-views.session
  Home:   https://github.com/ckan/ckan
  Commit: 05375b57cb80f80f4510f47964eb457bb85758b1
      https://github.com/ckan/ckan/commit/05375b57cb80f80f4510f47964eb457bb85758b1
  Author: Louis des Landes <ldeslandes at swin.edu.au>
  Date:   2016-05-19 (Thu, 19 May 2016)

  Changed paths:
    M ckan/tests/helpers.py

  Log Message:
  -----------
  If a test app exists, reset it for each test


  Commit: 991c40c48dd9d9a853e98275618872b025c485f5
      https://github.com/ckan/ckan/commit/991c40c48dd9d9a853e98275618872b025c485f5
  Author: Louis des Landes <ldeslandes at swin.edu.au>
  Date:   2016-05-19 (Thu, 19 May 2016)

  Changed paths:
    M ckan/controllers/user.py
    M ckan/tests/controllers/test_user.py

  Log Message:
  -----------
  Fix user log out on username change

Fixes #2394


  Commit: 41039d48188fd058736eec03d10e0f6b2606ac35
      https://github.com/ckan/ckan/commit/41039d48188fd058736eec03d10e0f6b2606ac35
  Author: Knut Hühne <knut at k-nut.eu>
  Date:   2016-05-20 (Fri, 20 May 2016)

  Changed paths:
    M ckan/logic/action/get.py
    M ckan/tests/controllers/test_organization.py

  Log Message:
  -----------
  [#2990] Create 403 on organization_index if user has no permission


  Commit: 0fa410b710e8d06c2d1e698772237dfa937e5d54
      https://github.com/ckan/ckan/commit/0fa410b710e8d06c2d1e698772237dfa937e5d54
  Author: Knut Hühne <knut at k-nut.eu>
  Date:   2016-05-20 (Fri, 20 May 2016)

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

  Log Message:
  -----------
  [#2990] Add test for organization_list

- The test makes sure that the response is a 403
- Mosly this is to make sure that the view renders at all and that it
  does not throw an exception in the backend anymore like it used to


  Commit: bcc644f67dcc983a127f31ce9fc44d6b6924c711
      https://github.com/ckan/ckan/commit/bcc644f67dcc983a127f31ce9fc44d6b6924c711
  Author: Knut Hühne <knut at k-nut.eu>
  Date:   2016-05-20 (Fri, 20 May 2016)

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

  Log Message:
  -----------
  [#2990] Move check for permission to controller


  Commit: 3c802655579f2e94087626f55f3d09ed6531b20b
      https://github.com/ckan/ckan/commit/3c802655579f2e94087626f55f3d09ed6531b20b
  Author: Knut Hühne <knut at k-nut.eu>
  Date:   2016-05-20 (Fri, 20 May 2016)

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

  Log Message:
  -----------
  [#2990] remove stray import


  Commit: b1f9c75fedf9beadc16ae4a10eed73ac723cb336
      https://github.com/ckan/ckan/commit/b1f9c75fedf9beadc16ae4a10eed73ac723cb336
  Author: Knut Hühne <knut at k-nut.eu>
  Date:   2016-05-20 (Fri, 20 May 2016)

  Changed paths:
    M ckan/templates/group/index.html
    M ckan/tests/controllers/test_group.py

  Log Message:
  -----------
  [#2981] Preserve sort order in groups on pagination

- Uses the same code that was introuced in #2153 for organizations
- Changes the tests to sort descending so that they actually make sure
  that the sort order is not changed


  Commit: 4d64ec6c2b9e7d62ced5d2780df2b1f4da131546
      https://github.com/ckan/ckan/commit/4d64ec6c2b9e7d62ced5d2780df2b1f4da131546
  Author: Knut Hühne <knut at k-nut.eu>
  Date:   2016-05-23 (Mon, 23 May 2016)

  Changed paths:
    M ckan/tests/legacy/functional/test_pagination.py

  Log Message:
  -----------
  [#2981] add empty params to paginated url in tests


  Commit: b0f0cd2c46d55b46b2502782981c1c5dcfc1f99d
      https://github.com/ckan/ckan/commit/b0f0cd2c46d55b46b2502782981c1c5dcfc1f99d
  Author: Louis des Landes <ldeslandes at swin.edu.au>
  Date:   2016-05-24 (Tue, 24 May 2016)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/lib/plugins.py
    M ckanext/example_igroupform/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py
    M setup.py

  Log Message:
  -----------
  Add missing routes to IGroupForm

(And fix bulk process to check 'is_organization' instead of the group type)


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

  Changed paths:
    M ckan/controllers/user.py
    M ckan/tests/controllers/test_user.py
    M ckan/tests/helpers.py

  Log Message:
  -----------
  Merge branch 'bugfix/username-change-error' of https://github.com/Psykar/ckan into Psykar-bugfix/username-change-error


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

  Changed paths:
    M ckan/controllers/user.py
    M ckan/tests/controllers/test_user.py
    M ckan/tests/helpers.py

  Log Message:
  -----------
  Merge branch 'Psykar-bugfix/username-change-error'


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

  Changed paths:
    M ckan/controllers/group.py
    M ckan/tests/controllers/test_organization.py

  Log Message:
  -----------
  Merge branch '2990-server-error-for-organization_list' of https://github.com/k-nut/ckan into k-nut-2990-server-error-for-organization_list


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

  Changed paths:
    M ckan/controllers/group.py
    M ckan/tests/controllers/test_organization.py

  Log Message:
  -----------
  Merge branch 'k-nut-2990-server-error-for-organization_list'


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

  Changed paths:
    M ckan/controllers/group.py
    M ckan/lib/plugins.py
    M ckanext/example_igroupform/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py
    M setup.py

  Log Message:
  -----------
  Merge branch 'feature/IGroupForm-routes' of https://github.com/Psykar/ckan into Psykar-feature/IGroupForm-routes


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

  Changed paths:
    M ckan/controllers/group.py
    M ckan/lib/plugins.py
    M ckanext/example_igroupform/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py
    M setup.py

  Log Message:
  -----------
  Merge branch 'Psykar-feature/IGroupForm-routes'


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

  Changed paths:
    M ckan/templates/group/index.html
    M ckan/tests/controllers/test_group.py
    M ckan/tests/legacy/functional/test_pagination.py

  Log Message:
  -----------
  Merge branch '2981-preserve-group-sort-order-on-pagination' of https://github.com/k-nut/ckan


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

  Changed paths:
    M ckan/templates/group/index.html
    M ckan/tests/controllers/test_group.py
    M ckan/tests/legacy/functional/test_pagination.py

  Log Message:
  -----------
  Merge branch 'k-nut-2981-preserve-group-sort-order-on-pagination'


  Commit: c38b78ddfa000bb4b5ae92b31193ca19acaa9d17
      https://github.com/ckan/ckan/commit/c38b78ddfa000bb4b5ae92b31193ca19acaa9d17
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-24 (Tue, 24 May 2016)

  Changed paths:
    M ckan/pastertemplates/template/bin/travis-build.bash_tmpl

  Log Message:
  -----------
  [#2972] Overwrite path to solr core for Travis


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

  Changed paths:
    M ckan/controllers/group.py
    M ckan/controllers/user.py
    M ckan/lib/plugins.py
    M ckan/templates/group/index.html
    M ckan/tests/controllers/test_group.py
    M ckan/tests/controllers/test_organization.py
    M ckan/tests/controllers/test_user.py
    M ckan/tests/helpers.py
    M ckan/tests/legacy/functional/test_pagination.py
    M ckanext/example_igroupform/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py
    M setup.py

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


  Commit: 027c09ada64334d263f78b6b2042440531779780
      https://github.com/ckan/ckan/commit/027c09ada64334d263f78b6b2042440531779780
  Author: Ian Ward <ian at excess.org>
  Date:   2016-05-24 (Tue, 24 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 pull request #3005 from ckan/3005-update-jinja2

Update Jinja2 version


  Commit: 56ae1bd8f5e205db7731a11e728f826ef3b051b4
      https://github.com/ckan/ckan/commit/56ae1bd8f5e205db7731a11e728f826ef3b051b4
  Author: Ian Ward <ian at excess.org>
  Date:   2016-05-24 (Tue, 24 May 2016)

  Changed paths:
    M ckan/lib/helpers.py
    A ckan/templates/tests/broken_helper_as_attribute.html
    A ckan/templates/tests/broken_helper_as_item.html
    A ckan/templates/tests/helper_as_attribute.html
    A ckan/templates/tests/helper_as_item.html
    M ckan/tests/lib/test_helpers.py
    M ckan/tests/plugins/test_toolkit.py
    M setup.py

  Log Message:
  -----------
  Merge pull request #3042 from ckan/3041-helpererror

Raise HelperError exception when calling non-existing helper


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

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

  Log Message:
  -----------
  [#2856] Create DataPusher task timestamps using UTC

When an upload to the DataPusher finishes we check
`resource['last_modified']` (in UTC) against `task['last_updated']`
to check whether it changed during the previous upload and resubmit it.
As `task['last_updated']` was created using `datetime.now()` this could
lead to infinite upload loops.

Discussion is here:

https://github.com/ckan/ckan/issues/2856#issuecomment-220383735


  Commit: 46be8f619a22ed41063c5a1ca7cc0ccca7cca544
      https://github.com/ckan/ckan/commit/46be8f619a22ed41063c5a1ca7cc0ccca7cca544
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2016-05-25 (Wed, 25 May 2016)

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

  Log Message:
  -----------
  Merge pull request #3051 from ckan/2856-datapusher-tasks-utc

[#2856] Create DataPusher task timestamps using UTC


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

  Changed paths:
    R .travis.yml
    M Dockerfile
    M README.rst
    M ckan/controllers/api.py
    M ckan/controllers/feed.py
    M ckan/controllers/group.py
    M ckan/controllers/package.py
    M ckan/controllers/user.py
    M ckan/lib/helpers.py
    M ckan/lib/jinja_extensions.py
    R ckan/lib/lazyjson.py
    M ckan/lib/munge.py
    M ckan/lib/plugins.py
    M ckan/logic/action/create.py
    M ckan/logic/action/get.py
    M ckan/logic/action/update.py
    M ckan/plugins/toolkit.py
    M ckan/templates/group/index.html
    M ckan/templates/snippets/debug.html
    A ckan/templates/tests/broken_helper_as_attribute.html
    A ckan/templates/tests/broken_helper_as_item.html
    A ckan/templates/tests/helper_as_attribute.html
    A ckan/templates/tests/helper_as_item.html
    M ckan/tests/controllers/test_group.py
    M ckan/tests/controllers/test_organization.py
    M ckan/tests/controllers/test_package.py
    M ckan/tests/controllers/test_user.py
    M ckan/tests/factories.py
    M ckan/tests/helpers.py
    M ckan/tests/legacy/functional/test_pagination.py
    M ckan/tests/lib/test_helpers.py
    M ckan/tests/lib/test_munge.py
    M ckan/tests/logic/action/test_create.py
    M ckan/tests/logic/action/test_get.py
    M ckan/tests/logic/action/test_update.py
    M ckan/tests/plugins/test_toolkit.py
    M ckanext/datastore/db.py
    M ckanext/datastore/tests/test_upsert.py
    M ckanext/example_igroupform/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py
    A contrib/docker/docker-compose.yml
    M contrib/docker/my_init.d/50_configure
    M contrib/docker/postgresql/Dockerfile
    M contrib/docker/solr/Dockerfile
    R contrib/docker/solr/schema.xml
    M requirements.in
    M requirements.txt
    M setup.py

  Log Message:
  -----------
  Merge branch 'master' into 3004-upgrade-babel

Conflicts:
	requirements.in


  Commit: dc3bb9eb01e8e266b97cc9e10f74e263988fd9b7
      https://github.com/ckan/ckan/commit/dc3bb9eb01e8e266b97cc9e10f74e263988fd9b7
  Author: Ian Ward <ian at excess.org>
  Date:   2016-05-25 (Wed, 25 May 2016)

  Changed paths:
    M ckan/pastertemplates/template/bin/travis-build.bash_tmpl

  Log Message:
  -----------
  Merge pull request #3050 from ckan/2972-solr-travis

Overwrite path to solr core for Travis in paster templates


  Commit: f87cc6a2bdd4bb2154be16da66a06bb1c4ba9229
      https://github.com/ckan/ckan/commit/f87cc6a2bdd4bb2154be16da66a06bb1c4ba9229
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
    M ckan/tests/helpers.py
    M ckanext/example_flask_iroutes/tests/test_routes.py

  Log Message:
  -----------
  Move `find_flask_app` helper to test helpers.


  Commit: 28a95fd5d306453fbf6bf2bdea286a6ae23adfc3
      https://github.com/ckan/ckan/commit/28a95fd5d306453fbf6bf2bdea286a6ae23adfc3
  Author: Tyler Kennedy <tk at tkte.ch>
  Date:   2016-05-26 (Thu, 26 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 pull request #3004 from ckan/3004-upgrade-babel

Upgrade Babel version


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

  Changed paths:
    M ckan/pastertemplates/template/bin/travis-build.bash_tmpl
    M ckanext/datapusher/logic/action.py
    M ckanext/datapusher/tests/test_action.py

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


  Commit: d4367d43a0ac54677eb2493e150342000bff54ee
      https://github.com/ckan/ckan/commit/d4367d43a0ac54677eb2493e150342000bff54ee
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

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

  Log Message:
  -----------
  Use Beaker for Flask session interface


  Commit: fd3926e3af6776f5946cd5b57d0ad17c6f53c618
      https://github.com/ckan/ckan/commit/fd3926e3af6776f5946cd5b57d0ad17c6f53c618
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/controllers/user.py
    M ckan/lib/plugins.py
    M ckan/pastertemplates/template/bin/travis-build.bash_tmpl
    M ckan/templates/group/index.html
    M ckan/tests/controllers/test_group.py
    M ckan/tests/controllers/test_organization.py
    M ckan/tests/controllers/test_user.py
    M ckan/tests/helpers.py
    M ckan/tests/legacy/functional/test_pagination.py
    M ckanext/datapusher/logic/action.py
    M ckanext/datapusher/tests/test_action.py
    M ckanext/example_flask_iroutes/tests/test_routes.py
    M ckanext/example_igroupform/plugin.py
    M ckanext/example_igroupform/tests/test_controllers.py
    M setup.py

  Log Message:
  -----------
  Merge branch 'poc-flask-views' into poc-flask-views.session


  Commit: ac4ee7622de35fc296ae0280dc15725343bd58df
      https://github.com/ckan/ckan/commit/ac4ee7622de35fc296ae0280dc15725343bd58df
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
    M ckan/config/middleware.py

  Log Message:
  -----------
  Helper moved to test helpers


  Commit: 28bc9c4a340a040a31f3120f4c9e73f83ace6719
      https://github.com/ckan/ckan/commit/28bc9c4a340a040a31f3120f4c9e73f83ace6719
  Author: Brook Elgie <specialbrew at gmail.com>
  Date:   2016-05-26 (Thu, 26 May 2016)

  Changed paths:
    M ckan/config/middleware.py
    M ckan/templates/base.html
    A ckan/templates/tests/flash_messages.html
    A ckan/tests/config/test_sessions.py
    M ckanext/example_flask_iroutes/plugin.py
    A ckanext/example_flask_iroutes/templates/about_base.html
    M setup.py

  Log Message:
  -----------
  Proxy beaker session for universal support.

Both Flask and Pylons can share the same beaker session objects, with a
session proxy in common.py.

This commit includes tests for cross app session access:
- flask view populates flash message in session, rendered by flask view
- flask view populates flash message in session, rendered by pylons
  action
- pylons action populates flash message in session, rendered by flask
  view


Compare: https://github.com/ckan/ckan/compare/f7f27659ba4d...28bc9c4a340a


More information about the ckan-changes mailing list