-
Notifications
You must be signed in to change notification settings - Fork 157
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
[Stage Plugins] Add availableOperation
in the PipelineStage model
#5522
Conversation
Signed-off-by: t-kikuc <[email protected]>
pkg/model/deployment.proto
Outdated
// Whether this stage can be skipped by a user via UI. | ||
bool skippable = 16; | ||
// Whether this stage can be approved by a user via UI. | ||
bool approvable = 17; |
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.
I named it approvable
, not like waits_approval
because it depends on whether a plugin waits for approvals.
If you have any idea of the name, please share 🙏
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.
How about making these flags as enum field like candidate_ui_action
?
We don't have a use case for both skippable and approvable are set true for now, so we can make them a single field.
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.
Thank you, it seems greater.
I fixed as below:
Let's make it repeated
when needed in the future.
Signed-off-by: t-kikuc <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5522 +/- ##
=======================================
Coverage 26.43% 26.44%
=======================================
Files 464 465 +1
Lines 49786 49858 +72
=======================================
+ Hits 13163 13186 +23
- Misses 35569 35618 +49
Partials 1054 1054 ☔ View full report in Codecov by Sentry. |
Signed-off-by: t-kikuc <[email protected]>
skippable
and approvable
flags in the PipelineStage modelavailableOperation
in the PipelineStage model
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.
LGTM
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.
👍
What this PR does:
as title
Why we need it:
cf. See here for the overview of skipStage/ApproveStage: #5367 (comment)
Which issue(s) this PR fixes:
Part of #5367
Does this PR introduce a user-facing change?: