ckan / ckanext-qa

CKAN QA Extension
MIT License
26 stars 51 forks source link

How ckanext-cloudstorage and ckanext-qa could work together? #48

Open KrzysztofMadejski opened 7 years ago

KrzysztofMadejski commented 7 years ago

Following up on the discussion from https://github.com/ckan/ckanext-archiver/issues/36#issuecomment-286719861: how qa can work on resources stored in the cloud by dataportal provider (so it's part of the infrastructure) without "archiving" them on local application server.

@TkTech: ckanext-cloudstorage can populate the mimetype and hash fields which are core fields on a resource as it's uploaded."

@krzysztofmadejski: Some feaures (like hash and libmagic) would need to be run on the storage server.

TkTech commented 7 years ago

This should be simple, taking a quick look at it. If the resource has the mimetype and hash fields populated simply use those values instead of pulling the file to guess it.