datalad / datalad-catalog

Create a user-friendly data catalog from structured metadata
https://datalad-catalog.netlify.app
MIT License
14 stars 12 forks source link

ENH: create sensible route for updating an existing catalog to a new release #344

Closed jsheunis closed 1 month ago

jsheunis commented 9 months ago

The goal would be to have a command or commands that allow:

jsheunis commented 9 months ago

If the latest version is installed, running datalad catalog-create -c <existing-catalog-location> --force will overwrite the following (wrt catalog root):

i.e. everything except for the metadata.

If the catalog is a git repo, a short term workaround to update only html+JS+CSS+other assets would be to run the command above and then only commit the changes that one wants to keep (ping @mslw).

However a more sensible option for future would be to have a datalad catalog-update command that implements parameterized update pipelines (e.g. all, assets-only, schema-only, etc)