[ckan-changes] [ckan/ckan] 3e819d: [#1879] Set DataStore to legacy mode when using Po...

GitHub noreply at github.com
Fri Oct 3 09:13:20 UTC 2014


  Branch: refs/heads/release-v2.0.5
  Home:   https://github.com/ckan/ckan
  Commit: 3e819dcc68ad23ed897a2716702dbb6dba3e8c5f
      https://github.com/ckan/ckan/commit/3e819dcc68ad23ed897a2716702dbb6dba3e8c5f
  Author: amercader <amercadero at gmail.com>
  Date:   2014-10-02 (Thu, 02 Oct 2014)

  Changed paths:
    M ckanext/datastore/plugin.py
    M ckanext/datastore/tests/test_unit.py
    M pip-requirements-test.txt

  Log Message:
  -----------
  [#1879] Set DataStore to legacy mode when using PostgreSQL < 9.x

Up until now the user had to actively set legacy mode when running PG
8.x, and if not you could end up with the full datastore running on an
old postgres version. Features like the SQL search are not properly
supported on these versions, so we need to explicitly disable them when
running on PG 8.x, by setting `legacy_mode` to True.

The current behaviour is that legacy mode will be activated if
`ckan.datastore.read_url` is not present in the configuration and/or
postgres < 9.x.


  Commit: 0aed5db4f34d6723a6f1fbdcb66aa79f81ea5686
      https://github.com/ckan/ckan/commit/0aed5db4f34d6723a6f1fbdcb66aa79f81ea5686
  Author: amercader <amercadero at gmail.com>
  Date:   2014-10-02 (Thu, 02 Oct 2014)

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

  Log Message:
  -----------
  [#1879] Fix tests

The travis setup explicitly removes the `ckan.datastore.read_url`
setting when running the tests, so we need to use a dummy one.

Also some refactoring


  Commit: f9d2df144de65c6f839d2c8156cab7fab271b5ba
      https://github.com/ckan/ckan/commit/f9d2df144de65c6f839d2c8156cab7fab271b5ba
  Author: amercader <amercadero at gmail.com>
  Date:   2014-10-03 (Fri, 03 Oct 2014)

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

  Log Message:
  -----------
  Disable datastore test as per #547


  Commit: c3f2533bc8d4510a406c802153f81aa2d51bc274
      https://github.com/ckan/ckan/commit/c3f2533bc8d4510a406c802153f81aa2d51bc274
  Author: kindly <kindly at gmail.com>
  Date:   2014-10-03 (Fri, 03 Oct 2014)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  [#1465] exclude more unlikely cominations

Conflicts:
	.travis.yml


Compare: https://github.com/ckan/ckan/compare/b9edcc5a3c0c...c3f2533bc8d4


More information about the ckan-changes mailing list