chore(deleter): extend deleter billing mocks for the delete checks - #1865
chore(deleter): extend deleter billing mocks for the delete checks#1865whoAbhishekSah wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan includes up to 2 reviews per rolling hour; 1 remains after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change adds generated Testify mocks for plan, credit, invoice, and subscription service methods. The mocks support invocation handling, configured returns, callbacks, typed expectation helpers, and cleanup assertions where applicable. ChangesDeleter mock extensions
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change only extends billing-service mocks used by deleter checks, with no actionable merge-blocking risk remaining beyond normal checks and review. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
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 |
Coverage Report for CI Build 32462224935Coverage remained the same at 48.804%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
16f57af to
0ba1676
Compare
0ba1676 to
2f3076f
Compare
2f3076f to
3f71c2d
Compare
3f71c2d to
5a8e3f8
Compare
|
Tested the whole stack live on the tip branch (#1865 → #1857 → #1880 → #1893 → #1894), so these results cover all five server PRs combined. Setup
CheckOrganizationDelete
DeleteOrganization The
Standard-plan flow (
Notes
|
5a8e3f8 to
338eeb6
Compare
338eeb6 to
908fb91
Compare
|
Round 2: token-forfeit purchased-share changes (#1880). Round 1 covered the blocker and delete flows: #1865 (comment) Built from the stack tip (#1865 → #1857 → #1880 → #1893 → #1894, head 7f1c580), so the rebased review fixes are included. Every email assertion below is from an actual message body captured by a local SMTP server, not from log lines; every audit assertion is from the Setup
Purchased-share math
Recipients and deleted-by
Template and regressions
Notes
|
|
Follow-ups from the round 2 notes, landed on the stack (email PR commit, stack rebased):
No change for the other two notes: the per-account audit vs org-total email split stays as designed, and the owner de-dup stays a straight append since |
908fb91 to
ab1d0e6
Compare
|
Round 3 (retest of the review-round behavior changes: amount-remaining invoice gating, dangling-plan blocker, two-phase cancel, audit-record notice recovery) is on #1857: #1857 (comment). All five cases passed. |
Adds GetBalance and List to the credit service mock, List and Cancel to the subscription service mock, ListPayableOnProvider to the invoice service mock, and a new plan service mock. The interface methods land with the next PRs in the stack; the mocks compile standalone.
ab1d0e6 to
88bdb27
Compare
Part of #1837. Base of the stack; the delete-blocker change sits on top.
Extends the deleter's billing mocks for the delete's up-front checks:
GetBalanceListandCancelSyncWithProviderGetByID, used to resolve the standard plan)The matching interface methods land with the next PR in the stack; the mocks compile standalone.
🤖 Generated with Claude Code