[ckan-dev] Showcases show in package_list

Dan Mihaila danmihaila at gmail.com
Thu Jul 13 12:44:37 UTC 2017


Hi Ian,

I agree with your comments and indeed minor changes ( in ckan core or in
our extension).
>From my point of view (and probably for other non-power user), the
package_list action should return the same result as /dataset url. Maybe it
will be good to have the default parameter dataset_type="dataset" . You
could add an "all" parameter to get everything that is stored in table
"package".
This will be consistent with "group" and "organization" entities/api calls.

Cheers,


*Dan Mihaila*, IT Consultant
(M) +40 722 502 304 • (GTalk) dan.mihaila at gmail.com • (Skype) carcotelul
• (Twitter) dan_mihaila

On Thu, Jul 13, 2017 at 3:36 PM, Ian Ward <ian at excess.org> wrote:

> This sounds like the correct behaviour, since showcases are implemented as
> a dataset type.
>
> How about adding a parameter to package_list to allow filtering on the
> type? That would be a very small change.
>
> If you know that you only want dataset-type datesets returned from
> package_list on HDX you could then wrap the action in your extension to
> force the value for that filter.
>
> Alternatively you can use package_search with type:dataset as a filter and
> pass fl=id to get just the id fields (similar to package_list)
>
> On Wed, Jul 12, 2017 at 9:40 AM, Dan Mihaila <danmihaila at gmail.com> wrote:
>
>> Hello,
>> We are using now the Showcase extension in our HDX project (
>> https://data.humdata.org) and we found that the showcases are in the
>> results of package_list API call.
>> I also checked on other CKAN instances, and it is the same behaviour (
>> http://data.beta.nyc/api/3/action/package_list). I think this is the
>> case for other instances that are using "package" table to store
>> information in db.
>> Is this the desired behaviour or the package_list should list (by
>> default) only "datasets" ?
>>
>> Thank you.
>>
>> Cheers,
>>
>> *Dan Mihaila*, IT Consultant
>> (M) +40 722 502 304 <+40%20722%20502%20304> • (GTalk)
>> dan.mihaila at gmail.com • (Skype) carcotelul
>> • (Twitter) dan_mihaila
>>
>> _______________________________________________
>> 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/20170713/a6487e81/attachment-0003.html>


More information about the ckan-dev mailing list