[ckan-dev] Activity streams issue with deleted objects

Rufus Pollock rufus.pollock at okfn.org
Mon Feb 6 10:04:16 UTC 2012


On 6 February 2012 01:03, David Raznick <kindly at gmail.com> wrote:
> Hello,
>
> I think it should not matter too much for now.  Deletions do not
> happen too often and there is a justification for the links not
> working once it has been deleted.
>
> It happens all the time in other kind of feeds, so its not that bad.
>
> Nonetheless, my take on the solution would be to add a flag to the
> activity/activity details tables to say that the link is no longer
> valid.  This flag could be populated on resource/package delete.  This
> way you will only have to update the activity and the activity details
> using the guid and this would happen when saving.  It seems a bit
> wasteful to keep checking when 'viewing' the stream especially
> considering how many tables you could have to look through as you
> said.
> Also this flag could also be easily populated by a simple background task/ cron.
>
> All in all though doing any of these seems like a bit of a waste.

I'd strongly agree. If something gets deleted -- too bad!

Rufus




More information about the ckan-dev mailing list