-
Notifications
You must be signed in to change notification settings - Fork 52
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
Bugfixes Sample Experiment Templates #1884
Bugfixes Sample Experiment Templates #1884
Conversation
kdp-cloud
commented
May 16, 2024
•
edited
Loading
edited
- Makes sure users cannot create new templates from scratch. Closes Remove GUI to create ISA-compliant Templates from scratch #1757
- Template behavior is now different from Sample type behavior. Some limitations of the Sample Type are not applied on templates anymore:
- Template attributes can be removed when inherrited from another template
- All fields (except ISA tag) are editable again for inherrited attributes
- Closes Reduce amounts of checks when creating a template #1758
- Users can only create templates and link them to projects they administer instead of all projects they are member of. Closes Template creation if non-administrator #1880
- Users that are not project admins but have editing rights for studies and assays, will also be able to edit its sample type as long as it's a project member. Closes Sample type permissions for project members #1890
…tton when an existing template is shown.
… can be set but not changed.
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.
minor change
@@ -54,6 +54,7 @@ def with_current_user | |||
def current_person | |||
current_user.try(:person) | |||
end | |||
helper_method :current_person |
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 should be moved to the top of the file, next to helper :all
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 grouped all helper methods together.