Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do publishers show as License Id: None #70

Closed
Bjwebb opened this issue Feb 25, 2014 · 7 comments
Closed

Why do publishers show as License Id: None #70

Bjwebb opened this issue Feb 25, 2014 · 7 comments
Milestone

Comments

@Bjwebb
Copy link
Contributor

Bjwebb commented Feb 25, 2014

http://iati.github.io/IATI-Dashboard/license/None.html

@Bjwebb Bjwebb added this to the Iteration 1 milestone Feb 25, 2014
@stevieflow
Copy link
Contributor

... and why is UNOPS listed with 10 files, when they have 150?

@Bjwebb
Copy link
Contributor Author

Bjwebb commented Feb 26, 2014

"Files" there is the number of files under a given license.

@stevieflow
Copy link
Contributor

But that cant be possible ? The licence can only be set at the publisher level - packages inherit the licence from the parent?

This is true of the web entry / edit and CSV upload. Is it the case that a licence can be edited for any packages via the API?

@Bjwebb
Copy link
Contributor Author

Bjwebb commented Feb 27, 2014

As far as I can tell it's a problem with the CKAN API sometimes (but not consistently) returning the license_id as null (which python interprets as None).

e.g. for oxfamindia, the call I use http://iatiregistry.org/api/3/action/group_package_show?id=oxfamindia shows license_id: null,. However, If I query the package directly - http://www.iatiregistry.org/api/3/action/package_show?id=oxfamindia-in - I get license_id: "notspecified",.

@stevieflow
Copy link
Contributor

I wonder if @amercader could take a look...

@amercader
Copy link

I didn't know about group_package_show! It seems that the serialized datasets it's returning don't come from the search index so the field values are different. I recommend using package_search with the appropriate filter, which will be much faster anyway:

http://www.iatiregistry.org/api/3/action/package_search?fq=organization:oxfamindia

ckan/ckan#1557

@Bjwebb Bjwebb modified the milestones: Iteration 2, Iteration 1 Feb 27, 2014
Bjwebb added a commit to IATI/IATI-Stats that referenced this issue Jul 25, 2014
(This has changed because a different API call is now being used
IATI/IATI-Registry-Refresher#15 )
@Bjwebb
Copy link
Contributor Author

Bjwebb commented Jul 25, 2014

I've updated the code to use package_search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants