Repository navigation
fix(aws/recommendations): map the Europe (...) region display names - #618
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Region mappings and validation providers/aws/recommendations/converters.go, providers/aws/recommendations/converters_test.go, CHANGELOG.md |
The converter maps the Ireland, Frankfurt, London, Paris, and Stockholm display names to AWS region codes. Tests cover these mappings. The changelog records the change. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Suggested labels: type/bug
Merge Risk: 
Minimal · up to c1f82
-
The aliases should let Cost Explorer recommendations match region-code-keyed coverage, with no actionable merge risk remaining.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Title check
-
Explanation
The title names the main change: adding aliases that map the current "Europe (...)" display names to AWS region codes in the AWS recommendations region normalization. The changeset adds five such mappings in normalizeRegionName (Ireland, Frankfurt, London, Paris, Stockholm), with matching tests. The title is specific, concise, and uses the conventional prefix format. It does not list every region, but that detail is not required.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
normalizeRegionName only knew the retired EU (...) spellings for Ireland, Frankfurt, London, Paris and Stockholm, so a recommendation using the current Europe (...) name kept the display string as its region and never matched region-code keyed coverage. Add the five aliases. refs #53 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0920d8c to
c1f8286
Compare
refs #53
What
normalizeRegionNameknew only the retiredEU (...)spellings for Ireland, Frankfurt, London, Paris and Stockholm. Recommendations using the currentEurope (...)display names kept the display string as their region and never matched region-code keyed coverage. This adds the five aliases.Proof
TestNormalizeRegionNamefail on origin/main (5 failures) and pass with the fix.go test -race -count=1 ./...in providers/aws with GOWORK=off and with the workspace; golangci-lint v2.10.1 clean.🤖 Generated with Claude Code
Summary by CodeRabbit