-
Notifications
You must be signed in to change notification settings - Fork 152
fix: remove naked flat fee support #3170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThis change removes the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
🧰 Additional context used🧠 Learnings (3)📓 Common learnings📚 Learning: in `productcatalog.usagebasedratecard`, the `billingcadence` field is a non-pointer `isodate.period`...Applied to files:
📚 Learning: in the openmeter codebase, test files like `openmeter/entitlement/metered/lateevents_test.go` may us...Applied to files:
🧬 Code Graph Analysis (2)openmeter/billing/worker/subscription/feehelper.go (2)
openmeter/billing/httpdriver/invoiceline.go (3)
🔇 Additional comments (28)
✨ Finishing Touches
🧪 Generate unit tests
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 (
|
This patch removes the "naked" flat fee support, as the API and everything else have been already changed to only support usage-based wrapped flat fees. Readding the migration to make sure that any remaining lines are properly converted.
de368f5 to
3727d4a
Compare
Overview
This patch removes the "naked" flat fee support, as the API and everything else have been already changed to only support usage-based wrapped flat fees.
Readding the migration to make sure that any remaining lines are properly converted. This fixes the regression that unless the
.billing.featureSwitches.useUsageBasedFlatFeeLines=truesetting was set, opensource invoicing was not functioning properly if a subscription was started.Summary by CodeRabbit
Bug Fixes
Refactor
Chores