[Stage Plugins] Make the UI compatible with skip and approval of pipedv1 #5968
Conversation
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5968 +/- ##
=======================================
Coverage 28.15% 28.16%
=======================================
Files 518 516 -2
Lines 55910 55924 +14
=======================================
+ Hits 15744 15752 +8
- Misses 38914 38919 +5
- Partials 1252 1253 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
| {stage.availableOperation === | ||
| ManualOperation.MANUAL_OPERATION_APPROVE && |
There was a problem hiding this comment.
We have to support the old Deployment created by pipedv0 and the old control plane. It may lack the availableOperation field.
How about leaving detection based on the stage name for a while, and removing it after the end of support of pipedv0?
There was a problem hiding this comment.
I linked this PR to #5542 to prevent forgetting to remove the condition.
| {activeStage.availableOperation === | ||
| ManualOperation.MANUAL_OPERATION_SKIP && |
There was a problem hiding this comment.
Same as comment on web/src/components/deployments-detail-page/pipeline/index.tsx
Signed-off-by: t-kikuc <tkikuchi07f@gmail.com>
What this PR does:
availableOperationto show the skip/approval buttonavailableOperationto pipedv0 Analysis/WaitApproval stagesNote:
Approvers,ApprovedBy, andSkippedByfrom WaitApproval/Analysis stage.Why we need it:
To enable skip/approval of both pipedv0 and pipedv1
Which issue(s) this PR fixes:
Part of #5367
Does this PR introduce a user-facing change?: