Skip to content

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Discipline annotations #2231

wants to merge 11 commits into from

Conversation

fbacall
Copy link
Contributor

@fbacall 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.

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 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 = [
Copy link
Member

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} -%>
Copy link
Member

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} -%>
Copy link
Member

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

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.

2 participants