[ckan-changes] [okfn/ckan] 9672aa: [#1258] add validator decorator to user_activity_l...

GitHub noreply at github.com
Tue Dec 10 21:00:25 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: 9672aa359667f7aea96734cb314319f3a9c371d2
      https://github.com/okfn/ckan/commit/9672aa359667f7aea96734cb314319f3a9c371d2
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-04 (Mon, 04 Nov 2013)

  Changed paths:
    M ckan/logic/__init__.py
    M ckan/logic/action/get.py
    M ckan/logic/schema.py
    A ckan/new_tests/logic/action/test_get.py

  Log Message:
  -----------
  [#1258] add validator decorator to user_activity_list

 * Add decorator that validates against a given schema
 * Add default_activity_list_schema
 * Refactor user_activity list to use validator decorator


  Commit: e1194397efc6793617f4870ddf940775134c9eec
      https://github.com/okfn/ckan/commit/e1194397efc6793617f4870ddf940775134c9eec
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

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

  Log Message:
  -----------
  [#1258] fix 500 errors on activity list action functions

change tests, no need to hit the database we only need to test that the
vaildators raise a ValidationError


  Commit: 8b62a87a05afd5d95b5321449c90e39858f83fd5
      https://github.com/okfn/ckan/commit/8b62a87a05afd5d95b5321449c90e39858f83fd5
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M ckan/logic/__init__.py

  Log Message:
  -----------
  [#1258] Allow context['schema'] and skip validate in validate decorator


  Commit: 2307e831fa85a8000034f58e980b08b45b8b46af
      https://github.com/okfn/ckan/commit/2307e831fa85a8000034f58e980b08b45b8b46af
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

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

  Log Message:
  -----------
  [#1258] change related_changed_activity_list validation schema


  Commit: 39a526b4f7daf12e0dba048b664bbb3b4f4adbb0
      https://github.com/okfn/ckan/commit/39a526b4f7daf12e0dba048b664bbb3b4f4adbb0
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-05 (Tue, 05 Nov 2013)

  Changed paths:
    M ckan/logic/__init__.py
    M ckan/logic/action/get.py
    M ckan/logic/schema.py
    M ckan/logic/validators.py

  Log Message:
  -----------
  [#1258] refactor action function validators


  Commit: 563c0e7286ed1dd2a163ea84c7e1a118c3c7ae37
      https://github.com/okfn/ckan/commit/563c0e7286ed1dd2a163ea84c7e1a118c3c7ae37
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-20 (Wed, 20 Nov 2013)

  Changed paths:
    M .travis.yml
    M CHANGELOG.rst
    M CONTRIBUTING.rst
    R bin/travis-build
    A bin/travis-install-dependencies
    A bin/travis-run-tests
    M ckan/ckan_nose_plugin.py
    M ckan/config/deployment.ini_tmpl
    M ckan/config/middleware.py
    M ckan/controllers/group.py
    M ckan/controllers/user.py
    M ckan/lib/app_globals.py
    M ckan/lib/dictization/model_dictize.py
    M ckan/lib/helpers.py
    M ckan/lib/munge.py
    A ckan/lib/uploader.py
    M ckan/logic/action/create.py
    M ckan/logic/action/get.py
    M ckan/logic/action/update.py
    M ckan/logic/auth/create.py
    M ckan/logic/schema.py
    M ckan/new_authz.py
    M ckan/new_tests/helpers.py
    M ckan/public/base/css/main.css
    M ckan/public/base/javascript/client.js
    M ckan/public/base/javascript/main.js
    A ckan/public/base/javascript/modules/image-upload.js
    M ckan/public/base/javascript/resource.config
    M ckan/public/base/less/forms.less
    M ckan/templates/base.html
    M ckan/templates/group/snippets/group_form.html
    M ckan/templates/group/snippets/group_item.html
    M ckan/templates/group/snippets/info.html
    M ckan/templates/header.html
    M ckan/templates/macros/form.html
    M ckan/templates/organization/snippets/organization_form.html
    M ckan/templates/organization/snippets/organization_item.html
    M ckan/templates/related/snippets/related_item.html
    M ckan/templates/snippets/group.html
    M ckan/templates/snippets/group_item.html
    M ckan/templates/snippets/organization.html
    M ckan/templates/snippets/organization_item.html
    M ckan/templates/user/login.html
    M ckan/tests/functional/api/test_user.py
    M ckan/tests/lib/test_dictization.py
    M ckan/tests/lib/test_dictization_schema.py
    M ckan/tests/logic/test_auth.py
    A doc/_static/ckanlogo.png
    M doc/_themes/sphinx-theme-okfn
    M doc/authorization.rst
    M doc/conf.py
    M doc/configuration.rst
    R doc/images/ckan_logo_box.png
    M doc/index.rst
    M doc/legacy-api.rst
    M doc/test.rst
    A doc/upgrading-dependencies.rst
    M test-core.ini

  Log Message:
  -----------
  Merge branch 'master' into 1258-validator-decorators


  Commit: 95a3d0b2ffb11359ef12c5eb3eff00e75aa09c56
      https://github.com/okfn/ckan/commit/95a3d0b2ffb11359ef12c5eb3eff00e75aa09c56
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-20 (Wed, 20 Nov 2013)

  Changed paths:
    M ckan/logic/__init__.py
    M ckan/new_tests/logic/action/test_get.py

  Log Message:
  -----------
  [1258] remove kwargs from validator decorator, PEP8

remove kwargs, otherwise the resulting action functions have the
incorrect function signature


  Commit: 0086f1b30aaae22a6da58a2bb3cbfa1ec03e7032
      https://github.com/okfn/ckan/commit/0086f1b30aaae22a6da58a2bb3cbfa1ec03e7032
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-20 (Wed, 20 Nov 2013)

  Changed paths:
    M ckan/logic/action/get.py
    M ckan/logic/converters.py
    M ckan/logic/schema.py
    M ckan/new_tests/logic/action/test_get.py

  Log Message:
  -----------
  [#1258] json validation for facet.field param in package_search

move validation out of action function and into the schema to prevent
500 errors


  Commit: 77f62a8e311eded5901382e80de24a7ce87a7f3a
      https://github.com/okfn/ckan/commit/77f62a8e311eded5901382e80de24a7ce87a7f3a
  Author: joetsoi <joe.yeung.tsoi at gmail.com>
  Date:   2013-11-20 (Wed, 20 Nov 2013)

  Changed paths:
    M ckan/new_tests/logic/action/test_get.py

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


  Commit: 814745a236068908335183d9368bf7de63d1b85d
      https://github.com/okfn/ckan/commit/814745a236068908335183d9368bf7de63d1b85d
  Author: kindly <kindly at gmail.com>
  Date:   2013-12-10 (Tue, 10 Dec 2013)

  Changed paths:
    M ckan/logic/__init__.py
    M ckan/logic/action/get.py
    M ckan/logic/converters.py
    M ckan/logic/schema.py
    M ckan/logic/validators.py
    A ckan/new_tests/logic/action/test_get.py

  Log Message:
  -----------
  Merge pull request #1258 from okfn/1258-validator-decorators

ValueError for non-int limit and offset query params


Compare: https://github.com/okfn/ckan/compare/542629598754...814745a23606


More information about the ckan-changes mailing list