Repository navigation
fix(filters): --regions also narrows EC2 Instance Savings Plan recs - #2201
Conversation
Savings Plans are fetched once, so --regions never reached them. Region-scoped plans are now kept only when their own region is listed (unknown region is dropped); Compute, SageMaker and Database plans stay unfiltered. Also applies to --csv-input runs. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 6 billable files and costs up to $1.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 11 minutes for your next included review. View limit details
Comment |
Gate verdict: CHANGES REQUESTED at c4f7a9dBlocker:
Reproduced (scratch test via
This contradicts the CHANGELOG ("Compute, SageMaker and Database plans stay unfiltered. Applies to Otherwise verified:
|
…ions CSV rows carry no Provider or CommitmentType, so Details.Region is not readable and the new narrowing dropped every Savings Plan row. Gate it off in CSV mode and document that rows are used as supplied. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Gate verdict: APPROVED at d61c1acDelta since c4f7a9d: the PR's own change adds Evidence (git archive at head, GOTOOLCHAIN=go1.26.9):
Note for the owner: decision 76 (A) said |
Summary
--regionsnow also filters EC2 Instance Savings Plan recommendations by their ownDetails.Region(owner decision, item 76). Compute, SageMaker and Database plans stay unfiltered.--include-regions/--exclude-regions; empty--regionsis unchanged; an EC2 Instance SP with no known region is dropped when--regionsis set. Applies to--csv-inputruns too.Verification (unit-level, fixture based)
TestApplyFilters_SavingsPlansRegionsFlagincl. the eu-west-2 scenario. With the new branch removed, 4 cases fail.🤖 Generated with Claude Code