ckan / ckanext-qa

CKAN QA Extension
MIT License
26 stars 52 forks source link

"package_id" is valid field of resource, not "package" #14

Closed KrzysztofMadejski closed 9 years ago

KrzysztofMadejski commented 9 years ago

Resolving #13 for CKAN 2.3

davidread commented 9 years ago

The data["package"] is set on this line when it is put into the queue:

https://github.com/ckan/ckanext-qa/blob/master/ckanext/qa/commands.py#L78

The problem with your solution is that not all commands and versions of CKAN return package_id in the resource. e.g. /api/action/current_package_list_with_resources doesn't include it for me. Are you using a different way to put items on the queue, which doesn't set the "package" perhaps?

KrzysztofMadejski commented 9 years ago

Hm. I'm following default scenario. ckanext-qa is putting items on the queue. Need to check that then. Thx for info!