bcgov / bcdata

An R package for searching & retrieving data from the B.C. Data Catalogue
https://bcgov.github.io/bcdata
Apache License 2.0
81 stars 12 forks source link

Prepare for catalogue migration #282

Closed ateucher closed 2 years ago

ateucher commented 2 years ago

The catalogue API will be changing with the new UI - changes documented here.

There will be some simple changes to field names, as well as some that are moved from the record (package) level to the resource level: https://github.com/bcgov/ckan-ui/blob/pages/pages/changelog.md#field-label-and-value-changes.

For the transition and for testing, we might want bcdata to work with both versions. We can condition on an API response that tells us which version of the api we are using - probably just the presence of the dataset schema, which is a new feature and so not in the existing API.