[ckan-changes] [ckan/ckan] 62dc5b: [#2204] First implementation of the create views c...

GitHub noreply at github.com
Tue Feb 17 09:57:11 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 62dc5be5ff0446bf81ce59a2d125b722cec368c2
      https://github.com/ckan/ckan/commit/62dc5be5ff0446bf81ce59a2d125b722cec368c2
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-18 (Sun, 18 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] First implementation of the create views command

Uses the search to retrieve the dataset dicts and passes them to the
function that adds default views to datasets.

User is prompt with the total count of datasets and the view plugins
which will be checked so she can abort if needed.


  Commit: 28ecbdfd42b0f0ed244d7730c52e3e660ea8f73c
      https://github.com/ckan/ckan/commit/28ecbdfd42b0f0ed244d7730c52e3e660ea8f73c
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/lib/datapreview.py
    M ckan/new_tests/lib/test_datapreview.py

  Log Message:
  -----------
  [#2204] Refactor view creation fuctions

To allow creating specific view types on resources rather than all the
default ones. Basically there are a pair of `add_view_` and
`add_default_view` functions for datasets and resources. Added some more
tests.


  Commit: 654d4cf23c87b4b862e6e412693dc6dbd1da3cc7
      https://github.com/ckan/ckan/commit/654d4cf23c87b4b862e6e412693dc6dbd1da3cc7
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/lib/datapreview.py

  Log Message:
  -----------
  [#2204] Add clarification to docstrings


  Commit: 997400c0152a27fabb94b66f00eb74e440fe8b2a
      https://github.com/ckan/ckan/commit/997400c0152a27fabb94b66f00eb74e440fe8b2a
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Refactor create views command to allow explicit types

You can now pass specific view types on the command line to limit the
view types that will be created, eg:

    paster views create image_view recline_view my_custom_view

If the relevant plugins are not loaded on your ini file the command will
stop.

Improved usage docs, PEP8.


  Commit: 810f76459944504c88ba85adad3e44dcc82323d8
      https://github.com/ckan/ckan/commit/810f76459944504c88ba85adad3e44dcc82323d8
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M MANIFEST.in
    M ckan/__init__.py
    M ckan/i18n/ar/LC_MESSAGES/ckan.mo
    M ckan/i18n/ar/LC_MESSAGES/ckan.po
    M ckan/i18n/bg/LC_MESSAGES/ckan.mo
    M ckan/i18n/bg/LC_MESSAGES/ckan.po
    M ckan/i18n/ca/LC_MESSAGES/ckan.mo
    M ckan/i18n/ca/LC_MESSAGES/ckan.po
    M ckan/i18n/ckan.pot
    M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.mo
    M ckan/i18n/cs_CZ/LC_MESSAGES/ckan.po
    M ckan/i18n/da_DK/LC_MESSAGES/ckan.mo
    M ckan/i18n/da_DK/LC_MESSAGES/ckan.po
    M ckan/i18n/de/LC_MESSAGES/ckan.mo
    M ckan/i18n/de/LC_MESSAGES/ckan.po
    M ckan/i18n/dv/LC_MESSAGES/ckan.mo
    M ckan/i18n/dv/LC_MESSAGES/ckan.po
    M ckan/i18n/el/LC_MESSAGES/ckan.mo
    M ckan/i18n/el/LC_MESSAGES/ckan.po
    M ckan/i18n/en_AU/LC_MESSAGES/ckan.mo
    M ckan/i18n/en_AU/LC_MESSAGES/ckan.po
    A ckan/i18n/en_CA/LC_MESSAGES/ckan.mo
    A ckan/i18n/en_CA/LC_MESSAGES/ckan.po
    M ckan/i18n/en_GB/LC_MESSAGES/ckan.mo
    M ckan/i18n/en_GB/LC_MESSAGES/ckan.po
    M ckan/i18n/es/LC_MESSAGES/ckan.mo
    M ckan/i18n/es/LC_MESSAGES/ckan.po
    M ckan/i18n/es_AR/LC_MESSAGES/ckan.mo
    M ckan/i18n/es_AR/LC_MESSAGES/ckan.po
    A ckan/i18n/es_MX/LC_MESSAGES/ckan.mo
    A ckan/i18n/es_MX/LC_MESSAGES/ckan.po
    A ckan/i18n/eu/LC_MESSAGES/ckan.mo
    A ckan/i18n/eu/LC_MESSAGES/ckan.po
    M ckan/i18n/fa_IR/LC_MESSAGES/ckan.mo
    M ckan/i18n/fa_IR/LC_MESSAGES/ckan.po
    M ckan/i18n/fi/LC_MESSAGES/ckan.mo
    M ckan/i18n/fi/LC_MESSAGES/ckan.po
    M ckan/i18n/fr/LC_MESSAGES/ckan.mo
    M ckan/i18n/fr/LC_MESSAGES/ckan.po
    M ckan/i18n/he/LC_MESSAGES/ckan.mo
    M ckan/i18n/he/LC_MESSAGES/ckan.po
    A ckan/i18n/hr/LC_MESSAGES/ckan.mo
    A ckan/i18n/hr/LC_MESSAGES/ckan.po
    M ckan/i18n/hu/LC_MESSAGES/ckan.mo
    M ckan/i18n/hu/LC_MESSAGES/ckan.po
    M ckan/i18n/id/LC_MESSAGES/ckan.mo
    M ckan/i18n/id/LC_MESSAGES/ckan.po
    M ckan/i18n/is/LC_MESSAGES/ckan.mo
    M ckan/i18n/is/LC_MESSAGES/ckan.po
    M ckan/i18n/it/LC_MESSAGES/ckan.mo
    M ckan/i18n/it/LC_MESSAGES/ckan.po
    M ckan/i18n/ja/LC_MESSAGES/ckan.mo
    M ckan/i18n/ja/LC_MESSAGES/ckan.po
    M ckan/i18n/km/LC_MESSAGES/ckan.mo
    M ckan/i18n/km/LC_MESSAGES/ckan.po
    M ckan/i18n/ko_KR/LC_MESSAGES/ckan.mo
    M ckan/i18n/ko_KR/LC_MESSAGES/ckan.po
    A ckan/i18n/lo/LC_MESSAGES/ckan.mo
    A ckan/i18n/lo/LC_MESSAGES/ckan.po
    M ckan/i18n/lt/LC_MESSAGES/ckan.mo
    M ckan/i18n/lt/LC_MESSAGES/ckan.po
    M ckan/i18n/lv/LC_MESSAGES/ckan.mo
    M ckan/i18n/lv/LC_MESSAGES/ckan.po
    A ckan/i18n/mn_MN/LC_MESSAGES/ckan.mo
    A ckan/i18n/mn_MN/LC_MESSAGES/ckan.po
    A ckan/i18n/my/LC_MESSAGES/ckan.mo
    A ckan/i18n/my/LC_MESSAGES/ckan.po
    M ckan/i18n/my_MM/LC_MESSAGES/ckan.mo
    M ckan/i18n/my_MM/LC_MESSAGES/ckan.po
    M ckan/i18n/nl/LC_MESSAGES/ckan.mo
    M ckan/i18n/nl/LC_MESSAGES/ckan.po
    M ckan/i18n/no/LC_MESSAGES/ckan.mo
    M ckan/i18n/no/LC_MESSAGES/ckan.po
    M ckan/i18n/pl/LC_MESSAGES/ckan.mo
    M ckan/i18n/pl/LC_MESSAGES/ckan.po
    M ckan/i18n/pt_BR/LC_MESSAGES/ckan.mo
    M ckan/i18n/pt_BR/LC_MESSAGES/ckan.po
    A ckan/i18n/pt_PT/LC_MESSAGES/ckan.mo
    A ckan/i18n/pt_PT/LC_MESSAGES/ckan.po
    M ckan/i18n/ro/LC_MESSAGES/ckan.mo
    M ckan/i18n/ro/LC_MESSAGES/ckan.po
    M ckan/i18n/ru/LC_MESSAGES/ckan.mo
    M ckan/i18n/ru/LC_MESSAGES/ckan.po
    M ckan/i18n/sk/LC_MESSAGES/ckan.mo
    M ckan/i18n/sk/LC_MESSAGES/ckan.po
    M ckan/i18n/sl/LC_MESSAGES/ckan.mo
    M ckan/i18n/sl/LC_MESSAGES/ckan.po
    M ckan/i18n/sq/LC_MESSAGES/ckan.mo
    M ckan/i18n/sq/LC_MESSAGES/ckan.po
    M ckan/i18n/sr/LC_MESSAGES/ckan.mo
    M ckan/i18n/sr/LC_MESSAGES/ckan.po
    M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.mo
    M ckan/i18n/sr_Latn/LC_MESSAGES/ckan.po
    M ckan/i18n/sv/LC_MESSAGES/ckan.mo
    M ckan/i18n/sv/LC_MESSAGES/ckan.po
    A ckan/i18n/sw/LC_MESSAGES/ckan.mo
    A ckan/i18n/sw/LC_MESSAGES/ckan.po
    A ckan/i18n/th/LC_MESSAGES/ckan.mo
    A ckan/i18n/th/LC_MESSAGES/ckan.po
    M ckan/i18n/tr/LC_MESSAGES/ckan.mo
    M ckan/i18n/tr/LC_MESSAGES/ckan.po
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.mo
    M ckan/i18n/uk_UA/LC_MESSAGES/ckan.po
    M ckan/i18n/vi/LC_MESSAGES/ckan.mo
    M ckan/i18n/vi/LC_MESSAGES/ckan.po
    M ckan/i18n/vi_VN/LC_MESSAGES/ckan.mo
    M ckan/i18n/vi_VN/LC_MESSAGES/ckan.po
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_CN/LC_MESSAGES/ckan.po
    M ckan/i18n/zh_TW/LC_MESSAGES/ckan.mo
    M ckan/i18n/zh_TW/LC_MESSAGES/ckan.po
    M ckan/lib/search/index.py
    M ckan/logic/action/get.py
    M ckan/new_tests/lib/search/test_index.py
    M ckan/new_tests/logic/action/test_get.py
    M ckan/public/base/less/ckan.less
    M ckan/templates/package/resource_data.html
    M ckan/templates/package/snippets/additional_info.html
    M ckan/templates/package/snippets/resource_views_list_item.html
    M ckan/templates/package/snippets/resources_list.html
    M ckan/tests/logic/test_action.py
    M ckanext/datastore/db.py
    M ckanext/datastore/logic/action.py
    M ckanext/datastore/tests/test_create.py
    M ckanext/datastore/tests/test_db.py
    M ckanext/example_idatasetform/templates/package/snippets/package_metadata_fields.html
    A ckanext/example_idatasetform/tests/test_controllers.py
    M doc/maintaining/filestore.rst
    M doc/maintaining/installing/deployment.rst

  Log Message:
  -----------
  Merge branch 'master' into 2204-resource-views-cli


  Commit: 20b906cdb2441dba48db86db1ce5c9b74743c496
      https://github.com/ckan/ckan/commit/20b906cdb2441dba48db86db1ce5c9b74743c496
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-28 (Wed, 28 Jan 2015)

  Changed paths:
    M ckan/new_tests/lib/test_datapreview.py

  Log Message:
  -----------
  [#2204] PEP8


  Commit: a900c119119742665a270b9d46e0515789d8901d
      https://github.com/ckan/ckan/commit/a900c119119742665a270b9d46e0515789d8901d
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-29 (Thu, 29 Jan 2015)

  Changed paths:
    M ckanext/textview/plugin.py

  Log Message:
  -----------
  [#2204] Modify default formats for text preview

Do not render geojson and csv, tsv files on text view by default

Most users / publishers would expect to see a map or table respectivlely.

It can be reenabled by adding `csv tsv` to `ckan.preview.text_formats` and
`geojson` to `ckan.preview.json_formats` config options.

Also fix typo in rdf+xml.


  Commit: 632ccbe999036a002da4e349f4bd026cb0aeb9db
      https://github.com/ckan/ckan/commit/632ccbe999036a002da4e349f4bd026cb0aeb9db
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-29 (Thu, 29 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py
    M ckanext/textview/plugin.py

  Log Message:
  -----------
  [#2204] Add filters for more common view types

If the view types that need to be checked are some of the core ones we
can filter the dataset search to only return the relevant ones, which
will reduce the number of datasets to be checked.

Refactored the text view plugin to allow importing the formats used.


  Commit: 9eb88589166db62cb4f229b7a56ad5da6d5dcad9
      https://github.com/ckan/ckan/commit/9eb88589166db62cb4f229b7a56ad5da6d5dcad9
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Add option to turn default filters off

Default filters can be explicitly turned off, and they also won't be
applied if the user passes extra search parameters (still no
implemented)


  Commit: 2773faaed2ef9676ea478c32c09a609cf063c245
      https://github.com/ckan/ckan/commit/2773faaed2ef9676ea478c32c09a609cf063c245
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Allow users to modify the search parameters to get datasets

Users can pass the `-s` option to provide a JSON object with parameters
like the ones used in `package_search`. Supported parameters are `q`,
`fq` and `fq_list`.


  Commit: 774d765a27d0f725cbf4785d6d9edcff3900d023
      https://github.com/ckan/ckan/commit/774d765a27d0f725cbf4785d6d9edcff3900d023
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Add option to create views on particular datasets


  Commit: 8020238c080ca81ebd236592c213bf47d8e1ec4b
      https://github.com/ckan/ckan/commit/8020238c080ca81ebd236592c213bf47d8e1ec4b
  Author: amercader <amercadero at gmail.com>
  Date:   2015-01-30 (Fri, 30 Jan 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Stop if no more records


  Commit: 3ba9c3d529e02647e00a98f039795cb3ec6b5822
      https://github.com/ckan/ckan/commit/3ba9c3d529e02647e00a98f039795cb3ec6b5822
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-09 (Mon, 09 Feb 2015)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/lib/datapreview.py
    M ckan/lib/dictization/model_dictize.py
    M ckan/logic/action/delete.py
    M ckan/logic/action/get.py
    M ckan/logic/validators.py
    A ckan/migration/versions/076_rename_view_plugins_2.py
    M ckan/model/user.py
    M ckan/new_tests/controllers/test_package.py
    M ckan/new_tests/lib/test_datapreview.py
    M ckan/new_tests/logic/action/test_get.py
    M ckan/plugins/toolkit.py
    M ckan/templates/package/snippets/package_basic_fields.html
    M ckan/templates/package/snippets/resource_view.html
    M ckan/tests/logic/test_action.py
    M ckanext/datapusher/cli.py
    M ckanext/datapusher/plugin.py
    M ckanext/datastore/logic/action.py
    M ckanext/datastore/logic/auth.py
    M ckanext/datastore/plugin.py
    A ckanext/datastore/tests/test_info.py
    M ckanext/imageview/plugin.py
    M ckanext/pdfview/plugin.py
    M ckanext/pdfview/tests/test_view.py
    M ckanext/reclineview/plugin.py
    M ckanext/reclineview/theme/public/recline_view.js
    M ckanext/textview/plugin.py
    M ckanext/textview/tests/test_view.py
    M ckanext/webpageview/plugin.py
    M doc/extensions/adding-custom-fields.rst

  Log Message:
  -----------
  Merge branch 'master' into 2204-resource-views-cli

Conflicts:
	ckanext/textview/plugin.py


  Commit: d03e5211c075f7893f30fd81d02a6f33d470ca27
      https://github.com/ckan/ckan/commit/d03e5211c075f7893f30fd81d02a6f33d470ca27
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Refactor confusing block


  Commit: 688333801112faade500dd448c9ccadad4015811
      https://github.com/ckan/ckan/commit/688333801112faade500dd448c9ccadad4015811
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Delete old code


  Commit: acd5f5bc78bfc4b6813ffff96f532ffee3ac9a26
      https://github.com/ckan/ckan/commit/acd5f5bc78bfc4b6813ffff96f532ffee3ac9a26
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M ckan/logic/action/delete.py
    M ckan/logic/action/get.py
    M ckan/logic/auth/delete.py
    M ckan/model/resource_view.py
    M ckan/new_tests/logic/action/test_delete.py
    M ckan/new_tests/logic/auth/test_delete.py

  Log Message:
  -----------
  [#2204] Add actions for clearing all or certain types of views


  Commit: 16aa14fdcc01be052af4f1679e26866d434f90cb
      https://github.com/ckan/ckan/commit/16aa14fdcc01be052af4f1679e26866d434f90cb
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-12 (Thu, 12 Feb 2015)

  Changed paths:
    M ckan/lib/cli.py

  Log Message:
  -----------
  [#2204] Add clear command to paster views


  Commit: 3d73cb44f7a0c886ec91bfc2590fbe88d02bd33f
      https://github.com/ckan/ckan/commit/3d73cb44f7a0c886ec91bfc2590fbe88d02bd33f
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M CHANGELOG.rst
    M ckan/config/deployment.ini_tmpl
    M ckan/controllers/package.py
    M ckan/lib/search/index.py
    M ckan/logic/action/get.py
    M ckan/logic/schema.py
    M ckan/plugins/interfaces.py
    M ckan/public/base/css/fuchsia.css
    M ckan/public/base/css/green.css
    M ckan/public/base/css/main.css
    M ckan/public/base/css/maroon.css
    M ckan/public/base/css/red.css
    M ckan/public/base/less/layout.less
    M ckan/public/base/less/module.less
    M ckan/public/base/less/search.less
    M ckan/tests/functional/test_tracking.py
    M ckan/tests/logic/test_action.py
    M ckanext/datastore/db.py
    M ckanext/stats/stats.py
    M ckanext/stats/templates/ckanext/stats/index.html
    M ckanext/stats/tests/test_stats_lib.py
    A doc/images/image_view.png
    A doc/images/manage_views.png
    A doc/images/recline_graph_view.png
    A doc/images/recline_grid_view.png
    A doc/images/recline_map_view.png
    A doc/images/recline_view.png
    A doc/images/text_view.png
    A doc/images/views_overview.png
    A doc/images/webpage_view.png
    M doc/maintaining/background-tasks.rst
    M doc/maintaining/configuration.rst
    M doc/maintaining/data-viewer.rst

  Log Message:
  -----------
  Merge branch 'master' into 2204-resource-views-cli


  Commit: 7cb05d08c482fd19cd81738e21448836a8817cd4
      https://github.com/ckan/ckan/commit/7cb05d08c482fd19cd81738e21448836a8817cd4
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M ckan/lib/datapreview.py
    M ckan/logic/action/create.py
    M ckan/logic/action/update.py
    M ckan/logic/auth/create.py
    M ckan/new_tests/logic/action/test_create.py
    M ckan/new_tests/logic/auth/test_create.py
    M ckanext/datapusher/logic/action.py

  Log Message:
  -----------
  [#2204] Move default creation of views to actions

New actions `resource_create_default_resource_views` and
`package_create_default_resource_views` do what it says on the tin.
Docs + tests.


  Commit: 766a0b98006c8eb03becad4e69fd5b79119f1c6e
      https://github.com/ckan/ckan/commit/766a0b98006c8eb03becad4e69fd5b79119f1c6e
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M ckan/new_tests/logic/auth/test_create.py

  Log Message:
  -----------
  [#2204] Fix auth function name


  Commit: 0db8057b0d4e7fa03ca62b458a84eda9ddaad40a
      https://github.com/ckan/ckan/commit/0db8057b0d4e7fa03ca62b458a84eda9ddaad40a
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-13 (Fri, 13 Feb 2015)

  Changed paths:
    M ckan/new_tests/logic/auth/test_create.py

  Log Message:
  -----------
  [#2204] Fix auth function name (take 2)


  Commit: 9ab53fd540869570275547c9aa2741d013a8ae97
      https://github.com/ckan/ckan/commit/9ab53fd540869570275547c9aa2741d013a8ae97
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 2015)

  Changed paths:
    M ckan/controllers/package.py
    M ckan/lib/cli.py
    A ckan/new_tests/lib/test_cli.py
    M ckanext/multilingual/plugin.py
    M setup.py

  Log Message:
  -----------
  Merge branch 'master' into 2204-resource-views-cli

Conflicts:
	ckan/lib/cli.py


Compare: https://github.com/ckan/ckan/compare/50548bc12918...9ab53fd54086


More information about the ckan-changes mailing list