theodi / open-data-certificate

The mark of quality and trust for open data
https://certificates.theodi.org/
MIT License
46 stars 39 forks source link

certificate_from_dataset_url failing on (new?) datasets #1700

Open olivierthereaux opened 5 years ago

olivierthereaux commented 5 years ago

There is a feature (which I am not sure is clearly advertised and documented) to lookup a certificate for a given dataset URL.

e.g. https://certificates.theodi.org/en/datasets?datasetUrl=https%3A%2F%2Fdata.qld.gov.au%2Fdataset%2Fqueensland-government-advertising-spend redirects to https://certificates.theodi.org/en/datasets/218260/certificates/246571

This feature does not appear to work for all datasets in the system. e.g. https://certificates.theodi.org/en/datasets?datasetUrl=https%3A%2F%2Fdata.qld.gov.au%2Fdataset%2Fmarriages-by-sex ought to redirect to https://certificates.theodi.org/en/datasets/218260 but does not. Cursory look at certificate_from_dataset_url does not show anything which would make it obvious why the lookup fails.

(This issue is related to, but not the same as https://github.com/theodi/open-data-certificate/issues/859 )