-
Notifications
You must be signed in to change notification settings - Fork 74
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
Refactor how versions are handled in pipeline #252
Conversation
|
@nf-core-bot fix linting |
Co-authored-by: Robert Syme <rob.syme@gmail.com>
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.
Some comments. I think the flow of the versions stuff is a bit clunky as it is.
@@ -217,7 +264,7 @@ def completionEmail(summary_params, monochrome_logs = true) { | |||
Map colors = logColours(monochrome_logs) | |||
if (email_address) { | |||
try { | |||
if (params.plaintext_email) { throw GroovyException('Send plaintext e-mail, not HTML') } | |||
if (plaintext_email) { throw GroovyException('Send plaintext e-mail, not HTML') } |
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.
Is plaintext_email supported at all? The error here does not match the if statement.
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 is bonkers old email code from the email template and desperately needs refactoring. I actually don't know how we can test the email functionality in nf-core pipelines cos it requires a chunk of set-up...
Tried to switch to using nf-validation to read in the samplesheet via |
Done with this PR @adamrtalbot @maxulysse. Please take a look and lemme know if I've missed anything. We need to push these changes to nf-core/modules where required and reinstall in the pipeline but that can happen in a follow up PR. |
cf nf-core/modules#4766 for the update of the utils subworkflows |
Bringing in changes in-line with those I made on nf-aggregate to refactor the way versions are handled.
subworkflows/local/utils_nfcore_fetchngs_pipeline/main.nf
--email
functionality works--hook_url
functionality works