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

Introduce show/hide flags for dataset buttons #474

Closed jsheunis closed 3 weeks ago

jsheunis commented 3 weeks ago

The visibility of dataset buttons have until now depended mostly on inherent logic, such as whether a specific property related to the button is included in the dataset-level metadata or not. This commit introduces controlling flags that users can specify via catalog- or dataset-level config files. These flags can explicitly be set to false if the user prefers to hide specific buttons, while the default for these flags is true (i.e. show the buttons, unless some data-related logic specifies not to).

The updated template config file at datalad_catalog/config/config.json contains all new controlling flags.

In addition to the code changes to make the above possible, the way in which the dataset_options are set for a selected dataset has been updated. dataset_options should be an object that is a merge between the catalog-level config and the dataset-level config, with dataset-level taking priority.

Also adds a flag and display options for gitlab projects, ping #462

Closes #465

netlify[bot] commented 3 weeks ago

Deploy Preview for datalad-catalog ready!

Name Link
Latest commit 5472216ab11b73179ec0a198347a22551c4d5593
Latest deploy log https://app.netlify.com/sites/datalad-catalog/deploys/6666f477e1ad460008baa017
Deploy Preview https://deploy-preview-474--datalad-catalog.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.