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

[Stage Plugins] Add availableOperation in the PipelineStage model #5522

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

t-kikuc
Copy link
Member

@t-kikuc t-kikuc commented Jan 30, 2025

What this PR does:

as title

Why we need it:

  • To judge if the stage can be skipped/approved on UI

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?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

// 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;
Copy link
Member Author

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 🙏

Copy link
Contributor

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.

Copy link
Member Author

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:

b98dcad

Let's make it repeated when needed in the future.

@t-kikuc t-kikuc enabled auto-merge (squash) January 30, 2025 15:27
Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 26.44%. Comparing base (6f4d443) to head (b98dcad).
Report is 6 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@t-kikuc t-kikuc changed the title [Stage Plugins] Add skippable and approvable flags in the PipelineStage model [Stage Plugins] Add availableOperation in the PipelineStage model Jan 31, 2025
Copy link
Contributor

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

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

👍

@t-kikuc t-kikuc merged commit 60591a7 into master Jan 31, 2025
18 checks passed
@t-kikuc t-kikuc deleted the plugin/commandstore-2-add-flags branch January 31, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants