Repository navigation
feat: snapshot unit config onto subscription - OM-399 - #4662
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR adds ChangesSubscription unit_config support
Estimated code review effort: 3 (Moderate) | ~30 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
b3ad93e to
226dd43
Compare
GAlexIHU
left a comment
There was a problem hiding this comment.
sry for the comments on comments :D
22a78be to
7d39547
Compare
f66b961 to
7cc8026
Compare
Snapshots a rate card's unit_config onto subscription items via a new unit_config column and rejects addon rate cards that carry a divergent unit_config rather than silently dropping it
Summary by CodeRabbit
unit_config, persisted in the database.unit_configcompatibility during add-on apply and reject mismatches with a 400 validation error.unit_config.unit_configpersistence across subscription create+reload, and E2E invoice quantity conversion usingunit_config.unit_configplan rejection when a feature flag is disabled.Greptile Summary
This PR snapshots rate-card unit configuration onto subscription items. The main changes are:
unit_configcolumn and generated Ent mappings.Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
Reviews (5): Last reviewed commit: "test: cover planaddon unit config compat..." | Re-trigger Greptile
Context used (3)