Repository navigation
feat: deprecate splitline group tax fields - #4449
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR removes TaxConfig handling from split line groups: the domain type drops TaxConfig, adapter create/update/read paths stop backfilling or expanding tax-code edges, callers stop passing TaxConfig, schema tax fields are deprecated, and tests are updated accordingly. ChangesTax Config Removal from Split Line Groups
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
This removes tax configuration from the billing split line group domain model and stops persisting or reading split-line-group-level tax fields during split group create, update, and fetch flows.
Included changes:
TaxConfigfromSplitLineGroupMutableFields.tax_config,tax_code_id, andtax_behavioron split line groups.Impact
Tax configuration remains owned by invoice lines and detailed lines. Split line group tax columns remain in the generated schema for compatibility, but new billing split group flows no longer populate or depend on them.
Validation
go test -tags=dynamic ./openmeter/billing ./openmeter/billing/adapter ./openmeter/billing/lineengine ./openmeter/ent/schemago vet -tags=dynamic ./openmeter/billing ./openmeter/billing/adapter ./openmeter/billing/lineengine ./openmeter/ent/schemago vet -tags=dynamic ./test/billingAttempted the focused DB-backed billing tax test, but local Postgres was not listening on
127.0.0.1:5432:env POSTGRES_HOST=127.0.0.1 go test -tags=dynamic ./test/billing -run 'TestInvoicingTax/TestLineSplittingRetainsTaxConfig'Summary by CodeRabbit