[ckan-dev] RSS-Feed for new Datasets

Michael Reichart michael.reichart at gmail.com
Thu Oct 18 11:46:38 UTC 2012


Hi,

we want to use custom rss feeds on our site (data.gv.at) to show new and
updated datasets for the whole catalogue and for each organization in
particular.
So we want to have one feed for the last updated datasets (at best with a
fixed number of entries), one only with the last newly created datasets of
the whole catalogue and the same for each organization.
At the moment we are using "revision/list?format=atom" for the updated
datasets which works good and have implemented another parameter
"&created=1" which should return only the newly created datasets where we
filter the results and show only the datasets with "transition =
'created'". This works, but, if there are many updates in revision history
(for example if we update all datasets with ckanclient), this returns
nothing, or, if we set "maxresults"  much higher, takes very long and fails
often with internal server error.

So my question is: Is it possible to change the query in revision/list to
something that returns only new datasets? Or is there another way to
generate this feed?

For the new and updated datasets of each organization we use at the moment
"group/history/<ID>" which returns not only datasets but all changes of the
group/organization which is also 100% what we want. Any suggestions for
this problem? Or would it be possible to use the same feed as above and add
a filter for the organization?

Thanks,

michi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20121018/adb97103/attachment.html>


More information about the ckan-dev mailing list