datopian / ckanext-versioning

Deprecated. See https://github.com/datopian/ckanext-versions. ⏰ CKAN extension providing data versioning (metadata and files) based on git and github.
https://tech.datopian.com/versioning/
GNU Affero General Public License v3.0
7 stars 4 forks source link

Fix resource `url` attribute to include revision_ref in API / download links #42

Closed shevron closed 4 years ago

shevron commented 4 years ago

This is based off of the discussion in https://github.com/datopian/ckanext-versioning/pull/33

We need to mange resource download URLs included in the result of package_show / resource_show API actions (as url attribute) to include the resource revision_ref, so that the right download link is generated.

This affects both API access and UI access to resources.

The PR in #33 removes the obsolete representation of the revision reference but doesn't add the new one.