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

Remove empty pipeline validation #1020

Merged
merged 2 commits into from
Nov 12, 2024
Merged

Remove empty pipeline validation #1020

merged 2 commits into from
Nov 12, 2024

Conversation

tothszabi
Copy link
Contributor

Checklist

Version

Requires a PATCH version update

Context

Empty pipelines are valid so the WFE can save a not fully defined pipeline.

@tothszabi tothszabi force-pushed the allow-empty-pipelines branch from 56c5796 to ba85434 Compare November 11, 2024 22:26
// A pipeline is considered valid if it has neither stages nor workflows.
// This is useful for the WFE to be able to save a pipeline that is not yet fully defined.
if !hasStages && !hasWorkflows {
continue
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you consider adding a warning in this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We discussed it and then I forgot to add it. Thanks for the reminder.

@tothszabi tothszabi merged commit 94c42d9 into master Nov 12, 2024
5 checks passed
@tothszabi tothszabi deleted the allow-empty-pipelines branch November 12, 2024 12:37
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