[ckan-changes] [ckan/ckan] 90efca: Improve the efficiency of user_show

GitHub noreply at github.com
Wed Dec 17 22:12:50 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: 90efca8c80934afc8a9fd72b9d3f2e9cce99ce11
      https://github.com/ckan/ckan/commit/90efca8c80934afc8a9fd72b9d3f2e9cce99ce11
  Author: Ross Jones <ross at servercode.co.uk>
  Date:   2014-12-16 (Tue, 16 Dec 2014)

  Changed paths:
    M CHANGELOG.rst
    M ckan/controllers/group.py
    M ckan/controllers/user.py
    M ckan/lib/dictization/model_dictize.py
    M ckan/logic/action/get.py
    M ckan/model/user.py
    M ckan/templates/snippets/context.html
    M ckan/templates/snippets/context/user.html
    M ckan/templates/user/read_base.html
    M ckan/tests/logic/test_action.py
    M ckan/tests/logic/test_tag.py
    M ckan/tests/models/test_user.py
    M ckanext/multilingual/tests/test_multilingual_plugin.py

  Log Message:
  -----------
  Improve the efficiency of user_show

Instead of returning up to 50 of the datasets that a user can administer
now the call must specify that it wants those datasets by passing in
```include_datasets:True```.

The num_followers value must also be explicitly requested in order to be
included in the resulting dict.

Revisions are no longer returned, users should call user_activity_list
instead.

fixes #2130


  Commit: b2dfccc8932947711d4f9b0f2500be4c40208b21
      https://github.com/ckan/ckan/commit/b2dfccc8932947711d4f9b0f2500be4c40208b21
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2014-12-16 (Tue, 16 Dec 2014)

  Changed paths:
    M CHANGELOG.rst
    M ckan/logic/action/get.py
    M ckan/model/user.py

  Log Message:
  -----------
  [#2130] Do not list a users deleted or private datasets. Tightened up docs a little.


  Commit: 138d2fd77228b360b7d2855fb2bc3df94a38df6a
      https://github.com/ckan/ckan/commit/138d2fd77228b360b7d2855fb2bc3df94a38df6a
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2014-12-17 (Wed, 17 Dec 2014)

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

  Log Message:
  -----------
  [#2130] Decided to exclude private datasets from the number a user created.


  Commit: 8c0ef1fbbc9956de6c71bf247ae7c3ea5ad1d3f8
      https://github.com/ckan/ckan/commit/8c0ef1fbbc9956de6c71bf247ae7c3ea5ad1d3f8
  Author: David Read <david.read at hackneyworkshop.com>
  Date:   2014-12-17 (Wed, 17 Dec 2014)

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

  Log Message:
  -----------
  [#2130] Added details of the returned dictionary for user_show.


  Commit: f5ee7db34b8db073d5190fe68f1015d84723ec05
      https://github.com/ckan/ckan/commit/f5ee7db34b8db073d5190fe68f1015d84723ec05
  Author: Ian Ward <ian at excess.org>
  Date:   2014-12-17 (Wed, 17 Dec 2014)

  Changed paths:
    M CHANGELOG.rst
    M ckan/controllers/group.py
    M ckan/controllers/user.py
    M ckan/lib/dictization/model_dictize.py
    M ckan/logic/action/get.py
    M ckan/model/user.py
    M ckan/templates/snippets/context.html
    M ckan/templates/snippets/context/user.html
    M ckan/templates/user/read_base.html
    M ckan/tests/logic/test_action.py
    M ckan/tests/logic/test_tag.py
    M ckan/tests/models/test_user.py
    M ckanext/multilingual/tests/test_multilingual_plugin.py

  Log Message:
  -----------
  Merge branch '2130-user-show-slowness'


Compare: https://github.com/ckan/ckan/compare/2cdb5c21284f...f5ee7db34b8d


More information about the ckan-changes mailing list