[ckan-dev] API Search does not return deleted packages
David Read
david.read at okfn.org
Wed Jan 18 16:52:33 UTC 2012
Philipp,
Yes this changed because it was confusing lots of people. We decided
that deleted packages should be hived off into a 'trash can' area for
administrators, rather than in the main list, search results etc..
That's the way it's viewed in the front-end. Admittedly the trash can
is not available (yet) in the API - no-one's asked for it yet but
maybe this is what you're after.
The whole concept of deleted packages is something we've gradually
developed, as it's difficult to get right.
Do tell us what you're using hidden packages for. Here are my guesses:
* a sort of 'draft' state? We envision using the state field for this,
but work needs to be done to achieve this - perhaps you can help spec
it out.
* Or is the intention to keep these datasets private to particular
people? Maybe try removing the 'read' permission for the average user?
David
On 18 January 2012 16:36, Philipp Lämmel
<philipp.laemmel at fokus.fraunhofer.de> wrote:
> Hey all,
>
> I've updated my CKAN to 1.5.1 and noticed that there is no difference
> anymore in the output of the call
>
> http://<ckan-instance>/api/rest/dataset
>
> for package owners (with API-Key) or anonymous users.
>
> In CKAN 1.4.2 this call showed all deleted packages for package owners, too.
> This was quite handy for us, because we used this for hiding datasets.
>
> So my question is (rather short and simple): Why did you drop this
> distinction?
>
> Thanks and best regards,
> Philipp
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
More information about the ckan-dev
mailing list