Skip to content

Add nf-core subworkflows update command#2019

Merged
mirpedrol merged 37 commits into
nf-core:devfrom
mirpedrol:subworkflowsupdate
Nov 16, 2022
Merged

Add nf-core subworkflows update command#2019
mirpedrol merged 37 commits into
nf-core:devfrom
mirpedrol:subworkflowsupdate

Conversation

@mirpedrol

@mirpedrol mirpedrol commented Nov 11, 2022

Copy link
Copy Markdown
Member

Close #1892

Update all modules and subworkflows used by the subworkflow being updated.
Update all subworkflows that use the module being updated.

Raise a warning informing that it's advised to keep everything up to date. Prompt a questionary to confirm the update of all modules/subworkflows related to the updated component.
New option --recursive updates everything without asking.

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

@codecov

codecov Bot commented Nov 11, 2022

Copy link
Copy Markdown

Codecov Report

Merging #2019 (e1e0fdc) into dev (955e763) will increase coverage by 1.56%.
The diff coverage is 81.21%.

@@            Coverage Diff             @@
##              dev    #2019      +/-   ##
==========================================
+ Coverage   63.74%   65.31%   +1.56%     
==========================================
  Files          41       42       +1     
  Lines        4913     5322     +409     
==========================================
+ Hits         3132     3476     +344     
- Misses       1781     1846      +65     
Impacted Files Coverage Δ
nf_core/__main__.py 59.46% <63.63%> (+0.09%) ⬆️
nf_core/components/update.py 82.21% <82.21%> (ø)
nf_core/components/components_command.py 72.22% <0.00%> (+1.58%) ⬆️
nf_core/modules/modules_differ.py 89.94% <0.00%> (+5.02%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mirpedrol mirpedrol marked this pull request as ready for review November 14, 2022 15:48
Comment thread nf_core/__main__.py Outdated
Comment thread nf_core/__main__.py Outdated
Comment thread nf_core/components/update.py Outdated
Comment thread nf_core/components/update.py Outdated
Comment thread nf_core/components/update.py
Comment thread nf_core/components/update.py
Comment thread nf_core/components/update.py Outdated
Comment thread nf_core/components/update.py
Comment thread nf_core/components/update.py
@mashehu

mashehu commented Nov 15, 2022

Copy link
Copy Markdown
Contributor

@mirpedrol

Copy link
Copy Markdown
Member Author

@nf-core-bot fix linting

@mirpedrol

Copy link
Copy Markdown
Member Author

@mashehu I think I'm ready to merge if you agree after the review changes 🙂

@mashehu mashehu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's good to go!

@mirpedrol mirpedrol merged commit c005f03 into nf-core:dev Nov 16, 2022
@mirpedrol mirpedrol deleted the subworkflowsupdate branch November 16, 2022 12:13
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.

3 participants