Ticket #2766 (assigned enhancement)

Opened 21 months ago

Last modified 21 months ago

prevent draft datasets making it to activity stream

Reported by: shevski Owned by: seanh
Priority: blocker Milestone: demo phase 4
Component: ckan Keywords: demo-theme
Cc: Repository: ckan
Theme: none

Description (last modified by toby) (diff)

The new ckan creates datasets as part of a 3 phase process. To allow for this partially created datasets can have a state that is 'draft' or 'draft-complete'. These datasets should not be seen as active by the activity stream.

If we click 'add dataset' and then complete the first phase of adding a dataset then we end up having a activity stream created. When we add a resource in the next phase (add data) again an activity stream item xxx added resource to dataset is created

We do not want these adding. Essentially if a dataset has a state.startswith('draft') then we want the activity stream to ignore all actions involving it.

finally when the state is changed form state.startswith('draft') to state=='active' we want a xxx has created dataset ... to be added to the stream.

The best way to do this would be to branch from 2375-demo-theme-stable and get it to work there.

Let me know if you need any help with this ticket or a better explanation of the problem.

Change History

comment:1 Changed 21 months ago by shevski

e.g. see 'ff' dataset http://s031.okserver.org:2375/en/user/shevski

shows up in activity stream

comment:2 Changed 21 months ago by toby

  • Owner changed from toby to seanh
  • Status changed from new to assigned
  • Description modified (diff)

comment:3 Changed 21 months ago by aron.carroll

  • Priority changed from major to blocker
  • Milestone changed from demo phase 3 to demo phase 4

comment:4 Changed 21 months ago by toby

  • Milestone changed from demo phase 5 to demo phase 4
Note: See TracTickets for help on using tickets.