Repository navigation
refactor(billing): deprecate customer workflow override fields - #5349
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Override fields and indexes openmeter/ent/schema/billing.go |
BillingCustomerOverride no longer applies TaxMixin. Legacy workflow and tax fields remain optional and are marked deprecated. The schema adds nullable tax_code_id and tax_behavior fields and indexes tax_code_id. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Possibly related PRs
- openmeterio/openmeter#5348: Adds explicit customer billing-profile assignments and replaces workflow overrides with assigned and effective profiles.
- openmeterio/openmeter#5342: Distinguishes explicitly pinned and effective profiles in the customer billing contract.
Suggested reviewers: borbelyr-kong
Merge Risk: 
Minimal · up to cf08b
-
The staged deprecation retains the existing override columns and relationships. No merge-blocking risk was identified.
Pre-merge checks: 
4
Finishing Touches
-
📝 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
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.
Comment @coderabbitai help to get the list of available commands.
84cc5be to
b206141
Compare
a640099 to
dfc41ed
Compare
021260b to
2538d10
Compare
dfc41ed to
cf08bc0
Compare
Stacked on #5348.
Mark the eleven unused workflow and tax fields on BillingCustomerOverride as Deprecated in Ent and regenerate the ORM. Default queries now omit those fields while existing columns, indexes, and foreign keys remain available for the staged rollout.
Inline the two tax fields on this schema so the shared TaxMixin used by other billing entities is unaffected. Atlas confirms there is no physical schema diff.
Validation: make generate; Atlas local schema diff; customer profile lifecycle and historical-row adapter tests against local PostgreSQL; scoped fast Go lint.
#5350 follows this PR: it removes these columns and deletes override rows without a billing profile selection.
Summary by CodeRabbit


Confidence Score: 5/5
The PR appears safe to merge; no blocking issue was found.Summary
Marks eleven historical fields on
BillingCustomerOverrideas deprecated and regenerates the Ent code.Reviews (3) · Last reviewed commit: "refactor(billing): deprecate customer wo..." · Reviewed by Greptile