[ckan-dev] organization_show and package_search - 2 questions

Matthew Fullerton matt.fullerton at gmail.com
Mon Aug 15 21:02:26 UTC 2016


Hi Ian,
I've justed merged that branch in and it works wonderfully. I don't even
need to do any more narrowing by by organization now. You are my hero...

Thanks,
Matt

On 15 August 2016 at 22:33, Ian Ward <ian at excess.org> wrote:

> I'm working on fixing package_search so that it can return private
> datasets [1]. As you've noted the story for private datasets and the
> API isn't all that great right now.
>
> [1]: https://github.com/ckan/ckan/pull/3191
>
> If you've got time to help review this change that would be much
> appreciated!
>
> Ian
>
> On Mon, Aug 15, 2016 at 4:24 PM, Matthew Fullerton
> <matt.fullerton at gmail.com> wrote:
> > Hi list,
> > I've tried very hard to figure this out by myself. Without success.
> There is
> > a reference in the legacy search API docs that if you want to search
> private
> > datasets, you have to use the new package_search API endpoint. This
> however,
> > does not list private datasets. There is an old mailing list entry
> stating
> > (for the purposes of searching on-site), that searching only returns
> private
> > datasets if you are already inside the organization (faceted search???)
> for
> > performance reasons. Can I translate this behavior to the package_search
> API
> > endpoint? Specifically, I'm trying to query by organization
> > (&q=organization:xyz)
> >
> > Given that that doesn't work for me, I was trying out organization_show
> > instead, which does show private datasets when the include_datasets
> option
> > is provided (hurrah!) but doesn't show their resources (boo). I've
> searched
> > and searched the source code to figure out why this is but can't see it.
> I
> > also see that doing user_show also shows packages with the
> include_datasets
> > option and this WITH the resources. Why the difference?
> >
> > Hoping for some insider knowledge!
> >
> > Best,
> > Matt
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160815/1b5ab02f/attachment-0003.html>


More information about the ckan-dev mailing list