Ticket #1511 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Logic function for getting a user's public activity stream

Reported by: seanh Owned by: kindly
Priority: awaiting triage Milestone: ckan-sprint-2012-01-23
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description (last modified by seanh) (diff)

Add a function to logic.action.get that returns a user's public activity stream as a list of dicts.

Change History

comment:1 Changed 2 years ago by seanh

  • Owner set to seanh
  • Status changed from new to assigned

comment:2 Changed 2 years ago by seanh

This ticket is just for getting the activity stream at the model level, not yet for rendering it in any particular output format.

Estimate: one day

Related user stories:

#039 User I want to see the activity stream for another user when I go to their user (profile/home) page.

#042 User Subscribe to RSS feeds for activity in relation to packages, users, groups, tags (?)

#032 User See what status people have by seeing small bits of info next to their name, e.g. a sign to indicate being a superuser/sysadmin and/or the number of datasets they have. I know the approximate activity and authority of users I come across

Also see: http://ckan.okfnpad.org/notifications

comment:3 Changed 2 years ago by seanh

  • Milestone set to ckan-sprint-2011-12-05

comment:4 Changed 2 years ago by seanh

  • Milestone changed from ckan-sprint-2011-12-05 to ckan-v1.6

comment:5 Changed 2 years ago by seanh

  • Milestone changed from ckan-v1.6 to current-ckan-sprint-2011-12-19

Should be as a list of dicts, not Activity objects.

comment:6 Changed 2 years ago by seanh

  • Milestone changed from current-ckan-sprint-2011-12-19 to ckan-sprint-2011-12-05

comment:7 Changed 2 years ago by seanh

  • Milestone changed from ckan-sprint-2011-12-05 to current-ckan-sprint-2011-12-19

comment:8 Changed 2 years ago by seanh

  • Milestone changed from current-ckan-sprint-2011-12-19 to ckan-sprint-2012-01-09

comment:9 Changed 2 years ago by seanh

  • Description modified (diff)
  • Summary changed from Get the activity stream for a user as a list of Activity objects to Logic function for getting a user's public activity stream

comment:10 Changed 2 years ago by seanh

  • Description modified (diff)

comment:11 Changed 2 years ago by seanh

  • Owner changed from seanh to kindly

Implemented in branch feature-1515-activity-streams and ready for review. Relevant changes:

ckan/lib/dictization/model_dictize.py: Added functions activity_dictize(), activity_list_dictize(), activity_detail_dictize(), activity_detail_list_dictize().

ckan/logic/action/get.py: Added functions user_activity_list() and activity_detail_list().

ckan.tests.models.test_activity.py: Now uses user_activity_list() and activity_detail_list() functions instead of accessing the model directly to get activity streams.

comment:12 Changed 2 years ago by kindly

  • Milestone changed from ckan-sprint-2012-01-09 to current-ckan-sprint-2012-01-23

comment:13 Changed 2 years ago by kindly

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.