[ckan-changes] [okfn/ckan] 1ed7e1: [#3028] Add 'num_datasets' to group dicts

GitHub noreply at github.com
Wed Dec 19 16:03:18 UTC 2012


  Branch: refs/heads/3028-dashboard-activity-stream-filtering
  Home:   https://github.com/okfn/ckan
  Commit: 1ed7e1aa3ffeee305684a177a8fcdb59f0e1657e
      https://github.com/okfn/ckan/commit/1ed7e1aa3ffeee305684a177a8fcdb59f0e1657e
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

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

  Log Message:
  -----------
  [#3028] Add 'num_datasets' to group dicts

Add 'num_datasets' to the dicts returned by group_show().

This is convenient for some javascript that has to show information
about groups.

This fixes an issue where the number of datasets of a followed group was
not appearing on the user dashboard.


  Commit: 857f9fd03381a3b7998a4025b18e39c22e44454c
      https://github.com/okfn/ckan/commit/857f9fd03381a3b7998a4025b18e39c22e44454c
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

  Changed paths:
    M ckan/templates/ajax_snippets/popover-context-group.html

  Log Message:
  -----------
  [#3028] Fix bug showing a group with 0 datasets on dashboard

If a followed group had 0 datasets, then it's number of datasets would
not appear when the group was previewed in the user dashboard sidebar.
Fix it to say "Datasets: 0".


  Commit: 32a3729281fd4994901ed9180df79d06aad78837
      https://github.com/okfn/ckan/commit/32a3729281fd4994901ed9180df79d06aad78837
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

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

  Log Message:
  -----------
  [#3028] Add 'num_resources' to package dicts

Add 'num_resources' to the dicts returned by package_show().

This is convenient for some javascript that has to show package
previews.

This fixes an issue where a followed dataset's number of resources would
not show up when that dataset was previewed in the sidebar on the user
dashboard page.


  Commit: 4aaab694306c3641c29ca2de5c55a7a045903bb8
      https://github.com/okfn/ckan/commit/4aaab694306c3641c29ca2de5c55a7a045903bb8
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

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

  Log Message:
  -----------
  [#3028] Add 'num_tags' to package dicts

Add 'num_tags' to the dicts returned by package_show().

This is convenient for some javascript that has to show package
previews.

This fixes an issue where a followed dataset's number of tags would not
show up when that dataset was previewed in the sidebar on the user
dashboard page.


  Commit: 674bb9129cecf7ab2eff49097ecd5ca7bad433ae
      https://github.com/okfn/ckan/commit/674bb9129cecf7ab2eff49097ecd5ca7bad433ae
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

  Changed paths:
    M ckan/templates/ajax_snippets/popover-context-group.html

  Log Message:
  -----------
  [#3028] Fix dashboard display issue with groups with 0 datasets

If a group had 0 datasets then its dataset count would not show up when
the group was previewed in the user dashboard sidebar. Removing some
unnecessary if statements fixes it.


  Commit: 5e4a5ce954c38b0f52a78ed0639670edf09c23c9
      https://github.com/okfn/ckan/commit/5e4a5ce954c38b0f52a78ed0639670edf09c23c9
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

  Changed paths:
    M ckan/templates/ajax_snippets/popover-context-dataset.html

  Log Message:
  -----------
  [#3028] Fix dashboard display issue with datasets with 0 tags

If a dataset had 0 tags then its tag count would not show up when the
dataset was previewed in the user dashboard sidebar.  Removing some
unnecessary if statements fixes it.


  Commit: 1ea41cff6019017457e15ad8f6d88f6e6c14bdb4
      https://github.com/okfn/ckan/commit/1ea41cff6019017457e15ad8f6d88f6e6c14bdb4
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

  Changed paths:
    M ckan/templates/ajax_snippets/popover-context-user.html

  Log Message:
  -----------
  [#3028] Fix dashboard display issue with user previews

If a followed user had 0 datasets or 0 edits, then its dataset count or
edit count would not show up when the user was previewed in the user
dashboard sidebar.  Removing some unnecessary if statements fixes it.


  Commit: df532f5e5689b2dbaaf503c569a7bbbfb53f12f1
      https://github.com/okfn/ckan/commit/df532f5e5689b2dbaaf503c569a7bbbfb53f12f1
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

  Changed paths:
    M ckan/public/base/less/dashboard.less
    M ckan/templates/user/snippets/followee_dropdown.html

  Log Message:
  -----------
  Merge branch '3028-dashboard-activity-stream-filtering' of github.com:okfn/ckan into 3028-dashboard-activity-stream-filtering


  Commit: c620c203efd369c0579b73f7e393510c20654d9a
      https://github.com/okfn/ckan/commit/c620c203efd369c0579b73f7e393510c20654d9a
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

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

  Log Message:
  -----------
  [#3028] Fix package_activity_list to accept name or id

package_activity_list should accept either a package name or package id
for the 'id' arg, but was only accepting IDs. Fix it to accept either,
and to raise NotFound if the name or id does not exist.

This fixes package activity streams not showing in the user dashboard,
when the dashboard was filtered to a package.


  Commit: 8c36cc76e3eb127bd6e318a4a88a2424f73b0413
      https://github.com/okfn/ckan/commit/8c36cc76e3eb127bd6e318a4a88a2424f73b0413
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-19 (Wed, 19 Dec 2012)

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

  Log Message:
  -----------
  [#3028] Fix user_activity_list to accept name or id

user_activity_list should accept either a user name or user id for the
'id' arg, but was only accepting IDs. Fix it to accept either, and to
raise NotFound if the name or id does not exist.

This fixes user activity streams not showing in the user dashboard, when
the dashboard was filtered to a user.


Compare: https://github.com/okfn/ckan/compare/ddd6ee51d708...8c36cc76e3eb


More information about the ckan-changes mailing list