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

Issue 1783 fix add new button #1872

Merged

Conversation

kdp-cloud
Copy link
Collaborator

The Add new drop-down menu hides 'Add new Strain' when organisms_enabled is set to false. Fixes #1783

@kdp-cloud kdp-cloud added the bug label May 8, 2024
@kdp-cloud kdp-cloud added this to the 1.15.1 milestone May 8, 2024
@kdp-cloud kdp-cloud self-assigned this May 8, 2024
@kdp-cloud kdp-cloud added this to In progress in SEEK 1.15.x via automation May 8, 2024
@kdp-cloud kdp-cloud marked this pull request as ready for review May 8, 2024 15:10
Copy link
Member

@stuzart stuzart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new config setting probably isn't appropriate, since strains is dependant on organisms.
Just add a strains_enabled method to the Seek::Config that returns organism_enabled .

There are other cases here: https://github.com/seek4science/seek/blob/main/lib/seek/config.rb#L323

e.g how templates_enabled is dependant on isa_json_complaint_enabled

@kdp-cloud kdp-cloud requested a review from stuzart May 14, 2024 07:49
@kdp-cloud kdp-cloud changed the base branch from main to seek-1.15 May 15, 2024 12:08
@kdp-cloud kdp-cloud force-pushed the issue_1783_fix_add_new_button branch from db4698f to cf67cea Compare May 15, 2024 12:10
@stuzart stuzart modified the milestones: 1.15.1, v1.15.0 May 15, 2024
@kdp-cloud kdp-cloud merged commit e0d7cc5 into seek4science:seek-1.15 May 15, 2024
11 checks passed
SEEK 1.15.x automation moved this from In progress to Done May 15, 2024
@kdp-cloud kdp-cloud deleted the issue_1783_fix_add_new_button branch May 15, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Remove entries from "Add new" in DataHub
2 participants