Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce show/hide flags for dataset buttons #474

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Introduce show/hide flags for dataset buttons #474

merged 1 commit into from
Jun 10, 2024

Conversation

jsheunis
Copy link
Member

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

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.
Copy link

netlify bot commented Jun 10, 2024

Deploy Preview for datalad-catalog ready!

Name Link
🔨 Latest commit 5472216
🔍 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.

@jsheunis jsheunis merged commit 700041d into main Jun 10, 2024
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enabling/disabling buttons for datasets
1 participant