Skip to content
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

fix: prevent deletion of plans that are still used in composite plans #2993

Merged
merged 8 commits into from Jul 13, 2022

Conversation

Panaetius
Copy link
Member

closes #2968

I didn't implement the --recursive, for that we'd have to recursively get containing plans (as a composite can contain a composite), warn the user about all of them and then remove them, which I think has a high chance of doing more than a user wants and makes the command more complicated, plus probably very rarely needed. We can add it if there is actual user need for it in the future

@Panaetius Panaetius requested a review from a team as a code owner July 5, 2022 14:17
@Panaetius Panaetius changed the title bugfix: prevent deletion of plans that are still used in composite plans fix: prevent deletion of plans that are still used in composite plans Jul 6, 2022
@Panaetius Panaetius force-pushed the bugfix/2968-fix-workflow-remove-composite branch from 8ea2e7c to cf8c4c8 Compare July 6, 2022 15:21
Copy link
Contributor

@m-alisafaee m-alisafaee left a comment

Choose a reason for hiding this comment

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

Looks good! Just two minor comments.

renku/core/workflow/plan.py Outdated Show resolved Hide resolved
renku/core/workflow/plan.py Outdated Show resolved Hide resolved
@Panaetius Panaetius enabled auto-merge (squash) July 11, 2022 15:14
Copy link
Contributor

@m-alisafaee m-alisafaee left a comment

Choose a reason for hiding this comment

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

Thank you!

@Panaetius Panaetius merged commit f013bb6 into develop Jul 13, 2022
@Panaetius Panaetius deleted the bugfix/2968-fix-workflow-remove-composite branch July 13, 2022 14:57
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.

Removing workflows that are used in composite plans
2 participants