Repository navigation
feat: add ratecards type to add-on pkg - #2616
Conversation
📝 WalkthroughWalkthroughThis pull request updates the handling and conversion of rate cards across several modules. The changes transition from using productcatalog rate card types to addon rate card pointers, introduce a new RateCards type with helper methods, and update validation and equality checks. Legacy code related to FlatFeeRateCard and UsageBasedRateCard is removed. The modifications span mapping, service, assertion, and test layers to ensure consistent conversion using methods like AsProductCatalogRateCards(). Changes
Possibly related PRs
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (1.64.8)Error: you are using a configuration file for golangci-lint v2 with golangci-lint v1: please use golangci-lint v2 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (9)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧬 Code Definitions (3)openmeter/productcatalog/addon/httpdriver/mapping.go (2)
openmeter/productcatalog/addon/ratecard.go (3)
openmeter/productcatalog/addon/adapter/mapping.go (4)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (17)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
5ed4393 to
f42f67b
Compare
Overview
Add
addon.Ratecardscollection type.Summary by CodeRabbit
Refactor
Chores
Tests