Skip to content

Remove redundant DSL version checks#3664

Closed
bentsherman wants to merge 2 commits intomasterfrom
ben-remove-deprecated-code-1
Closed

Remove redundant DSL version checks#3664
bentsherman wants to merge 2 commits intomasterfrom
ben-remove-deprecated-code-1

Conversation

@bentsherman
Copy link
Copy Markdown
Member

@bentsherman bentsherman commented Feb 18, 2023

First batch of changes from #3344 . Includes the most straightforward changes that don't break a bunch of tests or require much refactoring.

  • DSL1 deprecation errors that are now unreachable since DSL1 will fail at the beginning anyway
  • Classes and methods marked as @Deprecated that aren't used anywhere else in the code

@bentsherman
Copy link
Copy Markdown
Member Author

@pditommaso The tests ran and everything looks good. I will update parts 2 and 3.

Signed-off-by: Ben Sherman <[email protected]>
@bentsherman bentsherman force-pushed the ben-remove-deprecated-code-1 branch from 9825b7e to 22c08fc Compare July 20, 2023 10:32
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 20, 2023

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 1ed02b7
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/6508779e31fc6f00083e3309
😎 Deploy Preview https://deploy-preview-3664--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bentsherman
Copy link
Copy Markdown
Member Author

@pditommaso I reduced this PR to focus only on DSL1-related code, since targeting all deprecated code was probably too broad and harder to review.

@bentsherman bentsherman changed the title Remove deprecated code (part 1) Remove redundant DSL version checks Jul 20, 2023
@pditommaso pditommaso force-pushed the master branch 2 times, most recently from 81f7cb7 to 8a43489 Compare August 20, 2023 20:13
Signed-off-by: Ben Sherman <[email protected]>
@bentsherman
Copy link
Copy Markdown
Member Author

Think I finally narrowed down this PR to its intended scope. Just removes dead code around the DSL version checks, but all error messages are preserved for user-friendliness.

@bentsherman
Copy link
Copy Markdown
Member Author

More importantly, the unit tests no longer use Channel.close() which was deprecated by DSL2.

@pditommaso
Copy link
Copy Markdown
Member

Merged manually via 2b433a5

@pditommaso pditommaso closed this Nov 1, 2023
@bentsherman bentsherman deleted the ben-remove-deprecated-code-1 branch March 11, 2025 21:40
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