Repository navigation
fix: flat fee line do not validate meter - #2908
Conversation
📝 WalkthroughWalkthroughThe 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 (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (10)
✨ 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:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
openmeter/billing/service/lineservice/usagebasedlineflat.go(2 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
openmeter/billing/service/lineservice/usagebasedlineflat.go (1)
openmeter/productcatalog/feature/connector.go (1)
IncludeArchivedFeatureTrue(39-39)
⏰ Context from checks skipped due to timeout of 90000ms (11)
- GitHub Check: E2E
- GitHub Check: CI
- GitHub Check: Quickstart
- GitHub Check: Developer environment
- GitHub Check: Migration Checks
- GitHub Check: Lint
- GitHub Check: Commit hooks
- GitHub Check: Test
- GitHub Check: Build
- GitHub Check: Analyze (javascript)
- GitHub Check: Analyze (go)
🔇 Additional comments (1)
openmeter/billing/service/lineservice/usagebasedlineflat.go (1)
12-12: LGTM: Import addition is appropriate.The import for the
featurepackage is necessary for usingfeature.IncludeArchivedFeatureTruein the validation logic.
4648d3a to
4292b05
Compare
Overview
For flat fee lines we should not require a feature to have meters assigned.
Summary by CodeRabbit