[ckan-changes] [ckan/ckan] d85772: Allow chaining off core actions

David Read noreply at github.com
Fri Apr 12 11:08:33 UTC 2019


  Branch: refs/heads/3484_revision_ui_removal2
  Home:   https://github.com/ckan/ckan
  Commit: d8577247f9b40e957d46ecec019b92e7e0b3bf30
      https://github.com/ckan/ckan/commit/d8577247f9b40e957d46ecec019b92e7e0b3bf30
  Author: Alice Butcher <alycejenni at gmail.com>
  Date:   2018-10-17 (Wed, 17 Oct 2018)

  Changed paths:
    M ckan/logic/__init__.py
    M ckanext/datastore/tests/test_chained_action.py

  Log Message:
  -----------
  Allow chaining off core actions

Attempt to find an action from another plugin to override first, but failing that, override from the core actions.


  Commit: ddbbeb00dc8d8d64809138c79f487d0ef4dd48e4
      https://github.com/ckan/ckan/commit/ddbbeb00dc8d8d64809138c79f487d0ef4dd48e4
  Author: Alice Butcher <alycejenni at gmail.com>
  Date:   2018-10-18 (Thu, 18 Oct 2018)

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

  Log Message:
  -----------
  pep8 fix


  Commit: 1566d834715fe91ace44a82c6896977196393856
      https://github.com/ckan/ckan/commit/1566d834715fe91ace44a82c6896977196393856
  Author: amercader <amercadero at gmail.com>
  Date:   2018-12-18 (Tue, 18 Dec 2018)

  Changed paths:
    M ckan/model/license.py

  Log Message:
  -----------
  [#4594] Allow translation of custom licenses


  Commit: f4496c0d93ad6cd67248fa360031e4778ef31f56
      https://github.com/ckan/ckan/commit/f4496c0d93ad6cd67248fa360031e4778ef31f56
  Author: amercader <amercadero at gmail.com>
  Date:   2018-12-18 (Tue, 18 Dec 2018)

  Changed paths:
    M ckan/model/license.py
    M ckan/tests/model/licenses.v1
    M ckan/tests/model/licenses.v2
    M ckan/tests/model/test_license.py

  Log Message:
  -----------
  [#4594] Support alternative license format, add tests


  Commit: 4c7c42ab543ad1c5753b33c02130e655d0b545f0
      https://github.com/ckan/ckan/commit/4c7c42ab543ad1c5753b33c02130e655d0b545f0
  Author: Ashley Sommer <ashley.sommer at csiro.au>
  Date:   2019-01-09 (Wed, 09 Jan 2019)

  Changed paths:
    M ckan/authz.py

  Log Message:
  -----------
  Allow chained auth functions to chain off built-in auth functions.


  Commit: 3e5f5852056f485663c2b0fd62318c3df64c9cdd
      https://github.com/ckan/ckan/commit/3e5f5852056f485663c2b0fd62318c3df64c9cdd
  Author: Francesco Frassinelli <francesco.frassinelli at nina.no>
  Date:   2019-01-09 (Wed, 09 Jan 2019)

  Changed paths:
    M ckan/authz.py

  Log Message:
  -----------
  Replace auth_function.__name__ with action


  Commit: 2b9ad6581ecf9a2f89098efafd1c280adcc2c5ee
      https://github.com/ckan/ckan/commit/2b9ad6581ecf9a2f89098efafd1c280adcc2c5ee
  Author: Francesco Frassinelli <francesco.frassinelli at nina.no>
  Date:   2019-01-09 (Wed, 09 Jan 2019)

  Changed paths:
    M ckan/authz.py

  Log Message:
  -----------
  Fix line wrap style


  Commit: 4fd7329b69b695971b14bd4cc4e8972456c463c1
      https://github.com/ckan/ckan/commit/4fd7329b69b695971b14bd4cc4e8972456c463c1
  Author: Francesco Frassinelli <francesco.frassinelli at nina.no>
  Date:   2019-01-25 (Fri, 25 Jan 2019)

  Changed paths:
    M ckanext/datastore/tests/test_chained_auth_functions.py
    M setup.py

  Log Message:
  -----------
  Test chained auth fallback to builtin functions


  Commit: 42713323bf2f54cf3529f52415c2a910ea99db7d
      https://github.com/ckan/ckan/commit/42713323bf2f54cf3529f52415c2a910ea99db7d
  Author: Teemu Erkkola <teemu.erkkola at gofore.com>
  Date:   2019-02-15 (Fri, 15 Feb 2019)

  Changed paths:
    M ckan/config/middleware/pylons_app.py

  Log Message:
  -----------
  Disable streaming for pylons requests, fixes ckan/ckan#4431


  Commit: 42809f79f919d618da8baee57057f5e3615b99b4
      https://github.com/ckan/ckan/commit/42809f79f919d618da8baee57057f5e3615b99b4
  Author: Brenda Wallace <brenda.wallace at dia.govt.nz>
  Date:   2019-02-22 (Fri, 22 Feb 2019)

  Changed paths:
    M ckanext/datastore/backend/postgres.py

  Log Message:
  -----------
  Sort ranking in descending order


  Commit: bf985bf414949d4022a8a676639054a4139b3ea3
      https://github.com/ckan/ckan/commit/bf985bf414949d4022a8a676639054a4139b3ea3
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-15 (Fri, 15 Mar 2019)

  Changed paths:
    M ckan/migration/versions/077_add_revisions_to_system_info.py
    M ckan/model/core.py
    M ckan/model/domain_object.py
    M ckan/model/group.py
    M ckan/model/group_extra.py
    M ckan/model/package.py
    M ckan/model/package_extra.py
    M ckan/model/package_relationship.py
    M ckan/model/resource.py
    M ckan/model/system_info.py
    M ckan/model/tag.py
    M ckan/model/user.py

  Log Message:
  -----------
  Move vdm State and StatefulObjectMixin into CKAN


  Commit: e0945313ab34aeb54602caa4046d630491f61252
      https://github.com/ckan/ckan/commit/e0945313ab34aeb54602caa4046d630491f61252
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-15 (Fri, 15 Mar 2019)

  Changed paths:
    M ckan/lib/dictization/model_save.py
    A ckan/migration/versions/088_delete_extras_which_are_deleted_state.py
    M ckan/model/package_extra.py
    M ckan/model/resource.py
    M ckan/tests/legacy/models/test_extras.py

  Log Message:
  -----------
  Remove statefulness from package extras

* This is part of getting rid of vdm.
* We don't need to store state in PackageExtra any more because you can view the history via activity stream, since it now stores the full package_dict #3972. (The package_extra_revision table will be used to migrate old versions of the package to activity_streams migrate_package_activity.py. But from this version of CKAN, we do not need to record PackageExtra.stateit any more.)
* The mapping between PackageExtra and Package is now a simply dict i.e. attribute_mapped_collection - not a vdm StatefulDict any more.
* vdm's OurAssociationProxy is replaced by the vanilla sqlalchemy association_proxy - I'm not clear why we had to prevent scalars being assigned in the first place since it is a dict mapping, not a scalar mapping. Seems ok.
* package_extras_save() now deletes PackageExtra objects, instead of changing state to 'deleted'.
* package_no_state/extras_list is no longer needed because it was only used by package_extras_save()
* migration deletes extras of state='deleted', otherwise they'd suddenly appear


  Commit: 1a36ddab49fa72ab291c080457396272db4f083b
      https://github.com/ckan/ckan/commit/1a36ddab49fa72ab291c080457396272db4f083b
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-15 (Fri, 15 Mar 2019)

  Changed paths:
    M ckan/controllers/revision.py
    M ckan/model/__init__.py
    M ckan/model/package.py
    M ckan/model/package_extra.py
    M ckan/tests/legacy/functional/test_revision.py
    M ckan/tests/legacy/lib/test_dictization.py
    M ckan/tests/legacy/models/test_package.py

  Log Message:
  -----------
  PackageExtra is no longer revisioned

* We keep the PackageExtraRevision objects BUT they don't have a foreign key constraint/property to PackageExtra any more (achieved by removing vdm.sqlalchemy.modify_base_object_mapper)
* Changes to PackageExtra are no longer written to package_extra_revision table (because we removed vdm.sqlalchemy.Revisioner(extra_revision_table))
* PackageExtra no longer has revision methods like .get_as_of() and .all_revisions (because we no longer inherit from RevisionedObjectMixin)


  Commit: 7778e1588adc2abb95de5e92f34c24d99159fa5f
      https://github.com/ckan/ckan/commit/7778e1588adc2abb95de5e92f34c24d99159fa5f
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-15 (Fri, 15 Mar 2019)

  Changed paths:
    M ckan/lib/dictization/model_dictize.py
    M ckan/model/__init__.py
    M ckan/model/core.py
    M ckan/model/package.py
    M ckan/model/package_extra.py
    A ckan/model/revision.py
    M ckan/tests/logic/action/test_delete.py

  Log Message:
  -----------
  PackageExtraRevision not needed any more

Also, remove continuity FK for package_extra.


  Commit: e5dd58b35988dc1340554780261ed7aa625f7bd3
      https://github.com/ckan/ckan/commit/e5dd58b35988dc1340554780261ed7aa625f7bd3
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-15 (Fri, 15 Mar 2019)

  Changed paths:
    M ckan/lib/dictization/model_dictize.py
    M ckan/migration/versions/088_delete_extras_which_are_deleted_state.py
    M ckan/model/__init__.py
    M ckan/model/group.py
    M ckan/model/group_extra.py
    M ckan/model/revision.py
    M ckan/tests/legacy/lib/test_dictization.py
    M ckan/tests/logic/action/test_delete.py

  Log Message:
  -----------
  Remove revisions from GroupExtra.


  Commit: f1d6aede7c6d3c5d2edc89adb76b33cd99b8fe59
      https://github.com/ckan/ckan/commit/f1d6aede7c6d3c5d2edc89adb76b33cd99b8fe59
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-18 (Mon, 18 Mar 2019)

  Changed paths:
    M ckan/migration/versions/088_delete_extras_which_are_deleted_state.py

  Log Message:
  -----------
  TkTech's suggestion - some people have manually removed these for performance.


  Commit: 4db0ab59b2efda229684078b627f74f75e024aba
      https://github.com/ckan/ckan/commit/4db0ab59b2efda229684078b627f74f75e024aba
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-03-18 (Mon, 18 Mar 2019)

  Changed paths:
    M ckan/model/package_extra.py

  Log Message:
  -----------
  Remove stray import


  Commit: 04ce589e5ce35821290660e5e1730a678e897a5f
      https://github.com/ckan/ckan/commit/04ce589e5ce35821290660e5e1730a678e897a5f
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2019-03-26 (Tue, 26 Mar 2019)

  Changed paths:
    M ckan/cli/cli.py
    A ckan/cli/translation.py

  Log Message:
  -----------
  CLI. Implement `translation` command


  Commit: c993f7d99ab61a4af67c7f7cb7d0f4c8fcac3c78
      https://github.com/ckan/ckan/commit/c993f7d99ab61a4af67c7f7cb7d0f4c8fcac3c78
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2019-03-26 (Tue, 26 Mar 2019)

  Changed paths:
    M ckan/cli/translation.py

  Log Message:
  -----------
  prefix literals


  Commit: 79ed02edfd73626eba18f7f7ef048552f9707f67
      https://github.com/ckan/ckan/commit/79ed02edfd73626eba18f7f7ef048552f9707f67
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2019-03-26 (Tue, 26 Mar 2019)

  Changed paths:
    M ckan/cli/cli.py
    A ckan/cli/config_tool.py

  Log Message:
  -----------
  CLI. Implement `config-tool` command


  Commit: c87d021f382e669ea86d76922713e23af0133931
      https://github.com/ckan/ckan/commit/c87d021f382e669ea86d76922713e23af0133931
  Author: Ian Ward <ian at excess.org>
  Date:   2019-03-28 (Thu, 28 Mar 2019)

  Changed paths:
    M ckan/logic/__init__.py
    M ckanext/datastore/tests/test_chained_action.py

  Log Message:
  -----------
  Merge pull request #4509 from alycejenni/chain-core-actions

Allow chaining off core actions


  Commit: 0ebc75e8163cab11fcf11e643d7c19ecdec0bfde
      https://github.com/ckan/ckan/commit/0ebc75e8163cab11fcf11e643d7c19ecdec0bfde
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2019-03-28 (Thu, 28 Mar 2019)

  Changed paths:
    M doc/maintaining/paster.rst

  Log Message:
  -----------
  Remove mention of `color` command from docs


  Commit: cdaca57087b8e054be91c02dd6ef2e9338e2096f
      https://github.com/ckan/ckan/commit/cdaca57087b8e054be91c02dd6ef2e9338e2096f
  Author: Konstantin Sivakov <konstantin.sivakov at keitaro.com>
  Date:   2019-03-29 (Fri, 29 Mar 2019)

  Changed paths:
    M ckan/cli/cli.py
    A ckan/cli/translation.py

  Log Message:
  -----------
  Merge pull request #4701 from smotornyuk/cli-translation

CLI. Implement `translation` command


  Commit: ed056d37a2d5cbdb6984a6e4ae12cbc7889b9b60
      https://github.com/ckan/ckan/commit/ed056d37a2d5cbdb6984a6e4ae12cbc7889b9b60
  Author: Konstantin Sivakov <konstantin.sivakov at keitaro.com>
  Date:   2019-03-29 (Fri, 29 Mar 2019)

  Changed paths:
    M doc/maintaining/paster.rst

  Log Message:
  -----------
  Merge pull request #4709 from smotornyuk/drop-color

Remove mention of `color` command from docs


  Commit: 8e0bb167005279f2a20462447ed884e0d75519c8
      https://github.com/ckan/ckan/commit/8e0bb167005279f2a20462447ed884e0d75519c8
  Author: Sergey Motornyuk <sergey.motornyuk at linkdigital.com.au>
  Date:   2019-04-01 (Mon, 01 Apr 2019)

  Changed paths:
    M ckan/cli/cli.py
    A ckan/cli/translation.py
    M ckan/logic/__init__.py
    M ckanext/datastore/tests/test_chained_action.py
    M doc/maintaining/paster.rst

  Log Message:
  -----------
  merge upstream


  Commit: 56d6a3fdb57eb3b08497f481316f95d77d2a00cb
      https://github.com/ckan/ckan/commit/56d6a3fdb57eb3b08497f481316f95d77d2a00cb
  Author: Adrià Mercader <amercadero at gmail.com>
  Date:   2019-04-04 (Thu, 04 Apr 2019)

  Changed paths:
    M ckan/controllers/revision.py
    M ckan/lib/dictization/model_dictize.py
    M ckan/lib/dictization/model_save.py
    M ckan/migration/versions/077_add_revisions_to_system_info.py
    A ckan/migration/versions/088_delete_extras_which_are_deleted_state.py
    M ckan/model/__init__.py
    M ckan/model/core.py
    M ckan/model/domain_object.py
    M ckan/model/group.py
    M ckan/model/group_extra.py
    M ckan/model/package.py
    M ckan/model/package_extra.py
    M ckan/model/package_relationship.py
    M ckan/model/resource.py
    A ckan/model/revision.py
    M ckan/model/system_info.py
    M ckan/model/tag.py
    M ckan/model/user.py
    M ckan/tests/legacy/functional/test_revision.py
    M ckan/tests/legacy/lib/test_dictization.py
    M ckan/tests/legacy/models/test_extras.py
    M ckan/tests/legacy/models/test_package.py
    M ckan/tests/logic/action/test_delete.py

  Log Message:
  -----------
  Merge pull request #4691 from ckan/integrate-vdm-stateful

Remove vdm from PackageExtra and GroupExtra


  Commit: 0fc899715f8336d1074c77f167546d5098c58e70
      https://github.com/ckan/ckan/commit/0fc899715f8336d1074c77f167546d5098c58e70
  Author: Jari Voutilainen <jari.voutilainen at iki.fi>
  Date:   2019-04-05 (Fri, 05 Apr 2019)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/views/group.py

  Log Message:
  -----------
  Remove members from group read


  Commit: 880f96ec67676d5e58c16fad775b6bf4a1b75a58
      https://github.com/ckan/ckan/commit/880f96ec67676d5e58c16fad775b6bf4a1b75a58
  Author: Jari Voutilainen <jari.voutilainen at iki.fi>
  Date:   2019-04-05 (Fri, 05 Apr 2019)

  Changed paths:
    M ckan/controllers/group.py

  Log Message:
  -----------
  flake8


  Commit: b28d79c1de01fad57c85f4804bf0cab3ac023189
      https://github.com/ckan/ckan/commit/b28d79c1de01fad57c85f4804bf0cab3ac023189
  Author: Ian Ward <ian at excess.org>
  Date:   2019-04-05 (Fri, 05 Apr 2019)

  Changed paths:
    M ckan/authz.py
    M ckanext/datastore/tests/test_chained_auth_functions.py
    M setup.py

  Log Message:
  -----------
  Merge pull request #4579 from frafra/chain-builtin-auth-fixed

Chain builtin auth fixed


  Commit: 78637de2f8fa0ca23f3c9dd2d6e5df8473765f1d
      https://github.com/ckan/ckan/commit/78637de2f8fa0ca23f3c9dd2d6e5df8473765f1d
  Author: pdelboca <patriciodelboca at gmail.com>
  Date:   2019-04-05 (Fri, 05 Apr 2019)

  Changed paths:
    M doc/extensions/adding-custom-fields.rst

  Log Message:
  -----------
  Complete extending guide with reference to resource_form.html snippet.


  Commit: ebe9d8390e52458bc388fbaf15a9ab7bee2ae2d7
      https://github.com/ckan/ckan/commit/ebe9d8390e52458bc388fbaf15a9ab7bee2ae2d7
  Author: Konstantin Sivakov <konstantin.sivakov at keitaro.com>
  Date:   2019-04-08 (Mon, 08 Apr 2019)

  Changed paths:
    M ckan/cli/cli.py
    A ckan/cli/config_tool.py

  Log Message:
  -----------
  Merge pull request #4702 from smotornyuk/cli-config-tool

CLI. Implement `config-tool` command


  Commit: 039b8e63f38ca4f81959047a62f7262059e045e5
      https://github.com/ckan/ckan/commit/039b8e63f38ca4f81959047a62f7262059e045e5
  Author: Adrià Mercader <amercadero at gmail.com>
  Date:   2019-04-09 (Tue, 09 Apr 2019)

  Changed paths:
    M doc/extensions/adding-custom-fields.rst

  Log Message:
  -----------
  Merge pull request #4718 from pdelboca/docs-add-resource-form-to-adding-custom-fields

Docs: Complete extending guide with reference to resource_form.html snippet.


  Commit: 5e94d648fa247f45a98aac94f9dc597df1a28a95
      https://github.com/ckan/ckan/commit/5e94d648fa247f45a98aac94f9dc597df1a28a95
  Author: Ian Ward <ian at excess.org>
  Date:   2019-04-09 (Tue, 09 Apr 2019)

  Changed paths:
    M ckan/controllers/group.py
    M ckan/views/group.py

  Log Message:
  -----------
  Merge pull request #4717 from Zharktas/remove_members_from_group_read

Remove members from group read


  Commit: 3539969ec64f526913f9b6bbbd3d39f74ad27652
      https://github.com/ckan/ckan/commit/3539969ec64f526913f9b6bbbd3d39f74ad27652
  Author: Sergey <tonnydexter at gmail.com>
  Date:   2019-04-11 (Thu, 11 Apr 2019)

  Changed paths:
    M ckanext/datastore/backend/postgres.py

  Log Message:
  -----------
  Merge pull request #4661 from ServiceInnovationLab/fix/sorting

Sort ranking in descending order


  Commit: 96a1277cdcb556eeb6061e88499ed26767398d6c
      https://github.com/ckan/ckan/commit/96a1277cdcb556eeb6061e88499ed26767398d6c
  Author: Sergey <tonnydexter at gmail.com>
  Date:   2019-04-11 (Thu, 11 Apr 2019)

  Changed paths:
    M ckan/config/middleware/pylons_app.py

  Log Message:
  -----------
  Merge pull request #4657 from bzar/fix-popped-wrong-app-context

Disable streaming for pylons requests, fixes ckan/ckan#4431


  Commit: db312816561492047b5fd1a2a4e0c3c20bd35aac
      https://github.com/ckan/ckan/commit/db312816561492047b5fd1a2a4e0c3c20bd35aac
  Author: Sergey <tonnydexter at gmail.com>
  Date:   2019-04-11 (Thu, 11 Apr 2019)

  Changed paths:
    M ckan/model/license.py
    M ckan/tests/model/licenses.v1
    M ckan/tests/model/licenses.v2
    M ckan/tests/model/test_license.py

  Log Message:
  -----------
  Merge pull request #4595 from ckan/custom-licenses-translation

[#4594] Allow translation of custom licenses


  Commit: b6525d9115a54408cc3fa89c7f269d85f52bc364
      https://github.com/ckan/ckan/commit/b6525d9115a54408cc3fa89c7f269d85f52bc364
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2019-04-12 (Fri, 12 Apr 2019)

  Changed paths:
    M ckan/authz.py
    M ckan/cli/cli.py
    A ckan/cli/config_tool.py
    A ckan/cli/translation.py
    M ckan/config/middleware/pylons_app.py
    M ckan/controllers/group.py
    M ckan/lib/dictization/model_dictize.py
    M ckan/lib/dictization/model_save.py
    M ckan/logic/__init__.py
    M ckan/migration/versions/077_add_revisions_to_system_info.py
    A ckan/migration/versions/088_delete_extras_which_are_deleted_state.py
    M ckan/model/__init__.py
    M ckan/model/core.py
    M ckan/model/domain_object.py
    M ckan/model/group.py
    M ckan/model/group_extra.py
    M ckan/model/license.py
    M ckan/model/package.py
    M ckan/model/package_extra.py
    M ckan/model/package_relationship.py
    M ckan/model/resource.py
    A ckan/model/revision.py
    M ckan/model/system_info.py
    M ckan/model/tag.py
    M ckan/model/user.py
    M ckan/tests/legacy/lib/test_dictization.py
    M ckan/tests/legacy/models/test_extras.py
    M ckan/tests/legacy/models/test_package.py
    M ckan/tests/logic/action/test_delete.py
    M ckan/tests/model/licenses.v1
    M ckan/tests/model/licenses.v2
    M ckan/tests/model/test_license.py
    M ckan/views/group.py
    M ckanext/datastore/backend/postgres.py
    M ckanext/datastore/tests/test_chained_action.py
    M ckanext/datastore/tests/test_chained_auth_functions.py
    M doc/extensions/adding-custom-fields.rst
    M doc/maintaining/paster.rst
    M setup.py

  Log Message:
  -----------
  Merge branch 'master' into 3484_revision_ui_removal2


Compare: https://github.com/ckan/ckan/compare/b9bc3fbcbd91...b6525d9115a5


More information about the ckan-changes mailing list