-
Notifications
You must be signed in to change notification settings - Fork 54
Discipline annotations #2231
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
base: main
Are you sure you want to change the base?
Discipline annotations #2231
Conversation
fbacall
commented
Jun 26, 2025
- Allows projects and workflows to be annotated with scientific disciplines.
- Propagates disciplines set on a project down to workflows under that project (if they do not already have any disciplines set).
- Refactors how default policies/licenses are handled, fetching them with an AJAX call rather than storing a mapping on the page.
- Moves investigation/study select field to the "manage" pages of studies/assays.
…ck of JSON on page
and make sure implicit project selector works (for setting default policies)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a couple of minor comments, but also I do wonder if we now need Topics anymore, as this is just a duplication with a smaller set of terms. Alternatively the extra terms could be added to Topics. Having both seems a bit confusing and weird.
@@ -0,0 +1,32 @@ | |||
# Made up from a subset of EDAM Topics, plus some others | |||
DISCIPLINES = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to go in the upgrade tasks
@@ -61,6 +61,8 @@ | |||
|
|||
<%= render partial: 'assets/controlled_vocab_annotations_form_properties', locals: { resource: @workflow } %> | |||
|
|||
<%= render partial: 'assets/controlled_vocab_annotations_form_property', locals: { resource: @workflow, property: :disciplines} -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this be included in assets/controlled_vocab_annotations_form_properties
for consistency and so they are always grouped together
@@ -62,6 +61,8 @@ | |||
<%= render :partial=> "projects/select_add_current_user_to_project" %> | |||
<% end %> | |||
|
|||
<%= render partial: "assets/controlled_vocab_annotations_form_property", locals: { resource: @project, property: :disciplines} -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better if this was placed next to Topics, since the are related, or better replace both with an updated assets/controlled_vocab_annotations_form_properties