-
Notifications
You must be signed in to change notification settings - Fork 2
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
Merge seek 1.15.1 into LDH #56
Conversation
… the authlookup queue every 8 hours #1866
…gistered user #1866
needs tests, but see what tests are affected first
…atches of 8000 #1866
…ymous user checks #1866
…set and limit #1866
…eam_permissions Issue 1868 fix assay stream permissions
show progress for decouple_extracted_samples_policies and decouple_extracted_samples_projects, after every batch of 250 also update the query for decouple_extracted_samples_projects to select those without projects, making reruns quicker
…lr_enabled is false #1874
* Add to the config
…tions internationalize the names in the search types. Closes #1879
…tton when an existing template is shown.
…sions or clicking on the "Back to Model" button. issue #1926:
Lost temporary access code in the URL when switching between versions or clicking on the "Back to Model" button.
If not set manually, it will append a random integer after ... type.
Fix populate templates job
add an alert message to remind users to confirm addin the Remote URL
could you please describe the new features of the PR? |
project_attributes_json = ProjectSerializer.new(@project).to_json | ||
|
||
@user_current = current_person | ||
special_characters = { |
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.
can this move to a function ?
@@ -543,77 +543,206 @@ def order_investigations | |||
|
|||
def publish_to_csh |
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 the most of code of the "publish_to_csh" should be move to a module in lib/nfdi4health
, the code for preparing and parsing json could be reused by other resource to publish to CSH.
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.
ldh/app/controllers/projects_controller.rb
Line 552 in 52132af
transforming_api_data = data_project.transforming_api(Project.find(params[:id]), ProjectSerializer, 'Projects') |
transforming_api_data = data_investigation.transforming_api(Investigation.find(params[:id]), InvestigationSerializer, 'investigation') |
ldh/app/controllers/studies_controller.rb
Line 364 in 52132af
transforming_api_data = data_study.transforming_api(Study.find(params[:id]), StudySerializer, 'studies') |
<% if Seek::Config.n4h_enabled && item.extended_metadata != nil %> | ||
<li><%= image_tag_for_key('publish', publish_to_csh_project_path(item), "Publish to NFDI4Health GCHSH", nil, "Publish to NFDI4Health GCHSH") -%></li> | ||
<% else %> | ||
<% explanation = "The 'Publish to NFDI4Health GCHSH' item for #{text_for_resource(item).pluralize.downcase} in Server admin panel was deactivated by the admin." %> | ||
<% explanation = "Your project does not include metadata, or The 'Publish to NFDI4Health GCHSH' item for #{text_for_resource(item).pluralize.downcase} in Server admin panel was deactivated by the admin." %> |
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 ProjectsHelper
Seek::Config.n4h_enabled && item.extended_metadata != nil
, this code looks weird
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.
Main Concerns:
- Modularization:
Move the publish_to_csh functionality to a module within lib/nfdi4health. This will enhance modularity and allow the code for preparing and parsing JSON to be reused by other resources needing to publish to CSH. - Testing:
Add tests to ensure the reliability and correctness of the publish_to_csh functionality. In the SEEK main branch, writing tests is a crucial part of SEEK development. Any feature cannot be merged into the main branch without proper tests.
Description
Changes
Features / major changes