Open FuhuXia opened 2 months ago
Good find @FuhuXia ! @chris-macdermaid and the geoplatform team have been made aware and are looking into this; they've created a bug ticket on their end.
Team decided to icebox this bug until we hear from geoplatform team.
The API returns the same URL for these two different queries:
For dataset https://catalog.data.gov/dataset/test, geoplatform provide a metadata link to https://www.geoplatform.gov/metadata/6e23ae6d-314a-4fae-bdf4-f7b881c31b69, irrelevant to the dataset on the catalog.
This is more a bug on the geoplatform rather than on the catalog. geoplatform should not provide a link if the source is not from our catalog. So the geoplatform should improve their API endpoint and allow an additional parameter for dataset source, something like this:
https://api.geoplatform.gov/v3/public/lookups/data-gov/dataset?name=test&source=catalog.data.gov
with
&source=catalog.data.gov
at the end, we ensure we got result only relevant to catalog.How to reproduce
Expected behavior
No Geoplatform Metadata link found.
Actual behavior
Wrong Geoplatform Metadata link.
Sketch
[Notes or a checklist reflecting our understanding of the selected approach]