chore: drop min success default#1111
Conversation
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughThe PR modifies the OpenAPI schema for ChangesEnvironmentProgressionRule Schema Update
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Removes the OpenAPI default for EnvironmentProgressionRule.minimumSuccessPercentage so generated clients/providers don’t implicitly write 100 when the user leaves the field unset (addressing Terraform provider “inconsistent result after apply” behavior from #1071).
Changes:
- Dropped the
default: 100from the OpenAPI schema forminimumSuccessPercentage. - Regenerated the published OpenAPI document to reflect the schema change.
- Regenerated
openapi-typescripttypings sominimumSuccessPercentageis no longer required.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| apps/api/src/types/openapi.ts | Regenerated OpenAPI TS types; minimumSuccessPercentage becomes optional. |
| apps/api/openapi/schemas/policies.jsonnet | Removed default: 100 from the minimumSuccessPercentage schema. |
| apps/api/openapi/openapi.json | Regenerated OpenAPI JSON output with the default removed. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| dependsOnEnvironmentSelector: { | ||
| type: 'string', | ||
| description: 'CEL expression to match the environment(s) that must have a successful release before this environment can proceed.', | ||
| }, | ||
|
|
||
| minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100, default: 100 }, | ||
| minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100 }, | ||
| successStatuses: { type: 'array', items: openapi.schemaRef('JobStatus') }, |
|
|
||
| minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100, default: 100 }, | ||
| minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100 }, | ||
| successStatuses: { type: 'array', items: openapi.schemaRef('JobStatus') }, |
| }, | ||
|
|
||
| minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100, default: 100 }, | ||
| minimumSuccessPercentage: { type: 'number', format: 'float', minimum: 0, maximum: 100 }, |
fixes #1071
Summary by CodeRabbit
API Changes