chore(common): rename ServiceSavingsPlans -> ServiceSavingsPlansAll (closes #786)#787
chore(common): rename ServiceSavingsPlans -> ServiceSavingsPlansAll (closes #786)#787cristim wants to merge 3 commits into
Conversation
|
Warning Review limit reached
More reviews will be available in 7 minutes and 33 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (27)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai full review |
Rate Limit Exceeded
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
3bf4670 to
e326233
Compare
|
@coderabbitai full review |
✅ Action performedFull review finished. |
…ll rename Rebase onto feat/multicloud-web-frontend brought in three files that still referenced the old common.ServiceSavingsPlans sentinel (renamed to ServiceSavingsPlansAll in the prior commit). Update the two production call sites and one test file so go vet and go build pass on the merged PR view.
e326233 to
7ffd4c0
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
ServiceSavingsPlanswas an umbrella sentinel whose name looked identical to thefour per-plan-type slugs (
ServiceSavingsPlansCompute, etc.), making it unclearat call sites whether a variable held the umbrella or a specific plan type.
Changes
pkg/common/types.go-- rename constantServiceSavingsPlanstoServiceSavingsPlansAll; string value"savingsplans"is unchanged (DB columnlocked by issue Normalize 'savings-plans' vs 'savingsplans' identifier across frontend + backend #85). Updated docstring makes the sentinel/umbrella intent
explicit and references
SavingsPlansPlanTypes().pkg/common/types.go-- addSavingsPlansPlanTypes() []ServiceTypereturning the 4 per-plan-type slugs in canonical order
(Compute -> EC2Instance -> SageMaker -> Database). Unit test in
pkg/common/types_test.goasserts length 4, canonical order, and that everyreturned slug passes
IsSavingsPlan.pkg/common/types.go-- updateIsSavingsPlanswitch arm toServiceSavingsPlansAll; no behaviour change. Updated 23 other call-site files(providers, cmd, internal/purchase) with the same mechanical swap.
Verification
go build ./...cleango test .../pkg/common/... .../providers/aws/recommendations/... .../internal/api/... -count=1 -short: 1802 tests passgit grep -E '\bServiceSavingsPlans\b' -- '*.go': 0 hits (no stale bare references)git grep ServiceSavingsPlansAll -- '*.go': 82 occurrences (matches the pre-rename count of the bare identifier)Notes
PR #785 (closes #784, currently open and mid-CR) references
ServiceSavingsPlansinits diff. It will need a trivial rebase after this merges -- a mechanical
ServiceSavingsPlans->ServiceSavingsPlansAllidentifier swap on its branch, nologic change. No other in-flight branch references the bare identifier.
Closes #786
Refs #85 #785