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

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


  Branch: refs/heads/release-v2.3
  Home:   https://github.com/ckan/ckan
  Commit: 89ba1cb1a855a1c3612f0213af7db0aced55c08d
      https://github.com/ckan/ckan/commit/89ba1cb1a855a1c3612f0213af7db0aced55c08d
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 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: 32573001508cfbbc4d01125a4b95946d89b3ba44
      https://github.com/ckan/ckan/commit/32573001508cfbbc4d01125a4b95946d89b3ba44
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 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: 06031fde653e52d15df6654919ccd2d82401124b
      https://github.com/ckan/ckan/commit/06031fde653e52d15df6654919ccd2d82401124b
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 2015)

  Changed paths:
    M ckan/lib/datapreview.py

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


  Commit: 9b38264690c13cec8ec09cf6ff87aab8fcad2cb5
      https://github.com/ckan/ckan/commit/9b38264690c13cec8ec09cf6ff87aab8fcad2cb5
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 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: f7a23af0369e47b1af34ac2fcfe397bfde5d4f11
      https://github.com/ckan/ckan/commit/f7a23af0369e47b1af34ac2fcfe397bfde5d4f11
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 2015)

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

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


  Commit: 9ee6590fed2f728cc02ceb4037545eb3f4664dff
      https://github.com/ckan/ckan/commit/9ee6590fed2f728cc02ceb4037545eb3f4664dff
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 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.

Conflicts:
	ckanext/textview/plugin.py


  Commit: 7d2836f0e134f8d0c3ee9c96e7007b74ee225cd8
      https://github.com/ckan/ckan/commit/7d2836f0e134f8d0c3ee9c96e7007b74ee225cd8
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 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: bbc359c87b7a48967ede9e0b9a1536674c7e774a
      https://github.com/ckan/ckan/commit/bbc359c87b7a48967ede9e0b9a1536674c7e774a
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 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: 18cef33aa331a187ee1388c57b5bbbc53eae550d
      https://github.com/ckan/ckan/commit/18cef33aa331a187ee1388c57b5bbbc53eae550d
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 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: 855f6af4b7488ab856de8ccd8ca1b470d4c0e267
      https://github.com/ckan/ckan/commit/855f6af4b7488ab856de8ccd8ca1b470d4c0e267
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 2015)

  Changed paths:
    M ckan/lib/cli.py

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


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

  Changed paths:
    M ckan/lib/cli.py

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


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

  Changed paths:
    M ckan/lib/cli.py

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


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

  Changed paths:
    M ckan/lib/cli.py

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


  Commit: 6fd1ed69c5e6f8e879050d3d36a817e74ad3bd2a
      https://github.com/ckan/ckan/commit/6fd1ed69c5e6f8e879050d3d36a817e74ad3bd2a
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 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: 5f96c07dddb2282995085eae0b023e79c9de0613
      https://github.com/ckan/ckan/commit/5f96c07dddb2282995085eae0b023e79c9de0613
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 2015)

  Changed paths:
    M ckan/lib/cli.py

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


  Commit: f8d9b109edc4687cbc7547e7b2988187021b0426
      https://github.com/ckan/ckan/commit/f8d9b109edc4687cbc7547e7b2988187021b0426
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 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: 5edb845a49dac4301bc650734953a367e5d56342
      https://github.com/ckan/ckan/commit/5edb845a49dac4301bc650734953a367e5d56342
  Author: amercader <amercadero at gmail.com>
  Date:   2015-02-17 (Tue, 17 Feb 2015)

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

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


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

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

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


Compare: https://github.com/ckan/ckan/compare/9735e4229d8b...e83b6f0837eb


More information about the ckan-changes mailing list