[ckan-changes] [ckan/ckan] 5d96bc: [#1792] Add "datapusher submit" paster command to ...

GitHub noreply at github.com
Mon Aug 11 22:30:07 UTC 2014


  Branch: refs/heads/1792-filterable-resource-views
  Home:   https://github.com/ckan/ckan
  Commit: 5d96bc508f2ea9fa51a1d58d6b86a47618851be3
      https://github.com/ckan/ckan/commit/5d96bc508f2ea9fa51a1d58d6b86a47618851be3
  Author: Vitor Baptista <vitor at vitorbaptista.com>
  Date:   2014-08-11 (Mon, 11 Aug 2014)

  Changed paths:
    A ckanext/datapusher/cli.py
    M ckanext/datapusher/logic/action.py
    M ckanext/datapusher/logic/schema.py
    M ckanext/datapusher/tests/test.py
    M ckanext/datastore/db.py
    M ckanext/datastore/tests/test_db.py
    M setup.py

  Log Message:
  -----------
  [#1792] Add "datapusher submit" paster command to migrate data

I've changed how we create the datastore resources in this issue, both adding
indexes and changing how the "_full_text" column is created. This means that we
have to migrate existing data when this is merged.

The best way I found to do so was creating a new "paster datapusher submit"
command, which reloads every resource in the datastore, ignoring if the file
haven't changed. This is equivalent to deleting every datastore table and
reloading the resource.

The disadvantage of this is that it'll only work if the source data is still
available, and it'll remove any data that isn't on the source data (that was,
for example, added through the API).




More information about the ckan-changes mailing list