Skip to content

Excluded complimentary members from paid subscription breakdown#27761

Merged
mike182uk merged 3 commits intomainfrom
BER-3614-analytics-remove-comped-subs-from-charts
May 7, 2026
Merged

Excluded complimentary members from paid subscription breakdown#27761
mike182uk merged 3 commits intomainfrom
BER-3614-analytics-remove-comped-subs-from-charts

Conversation

@mike182uk
Copy link
Copy Markdown
Member

ref https://linear.app/ghost/issue/BER-3614/
ref #27759

  • the "Paid subscription breakdown" pie chart was rendering a Complimentary slice derived from the comped delta, which mixed member-status semantics into a chart meant to track paid Stripe subscription activity only
  • this also caused the pie chart's total to disagree with the "Paid subscriptions" bar chart (which has always been paid-only); with this change the two charts tie out as the issue requires
  • comp activity is still surfaced in the Paid members KPI tooltip, so no signal is lost for sites that grant complimentary access
  • removed the now-pointless calculateStatusSignups helper that was generalised to support gift+comped during the gift work but only ever took 'comped' after gifts moved to the backend

mike182uk added 2 commits May 7, 2026 09:39
ref https://linear.app/ghost/issue/BER-3615/

- the "Paid subscriptions" bar chart and "Paid subscription breakdown" pie
chart were counting gift redemptions as signups and gift end-of-life
events as cancellations, which mixed gift activity into charts that are
meant to track paid Stripe activity only
- gifts now flow through their own member status (`gift`) and surface in
the Paid members KPI tooltip instead, so duplicating them in the per-
cadence/per-tier breakdowns double-counted activity and made the bar and
pie charts disagree
- reverted the gift-aware additions to subscription-stats-service so
`/stats/subscriptions` returns paid Stripe deltas and counts only;
`gift`→`paid` upgrades still appear via the regular paid subscription event
flow once the trial converts and MRR begins
ref https://linear.app/ghost/issue/BER-3614/
ref #27759

- the "Paid subscription breakdown" pie chart was rendering a
Complimentary slice derived from the comped delta, which mixed
member-status semantics into a chart meant to track paid Stripe
subscription activity only
- this also caused the pie chart's total to disagree with the "Paid
subscriptions" bar chart (which has always been paid-only); with this
change the two charts tie out as the issue requires
- comp activity is still surfaced in the Paid members KPI tooltip, so
no signal is lost for sites that grant complimentary access
- removed the now-pointless `calculateStatusSignups` helper that was
generalised to support `gift`+`comped` during the gift work but only ever
took `'comped'` after gifts moved to the backend
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 7, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • 6.x

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 421dbe9d-cdfb-43e3-a28e-90b99ac8f21e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch BER-3614-analytics-remove-comped-subs-from-charts

Comment @coderabbitai help to get the list of available commands and usage tips.

Base automatically changed from BER-3615-analytics-remove-gift-subs-from-charts to main May 7, 2026 12:32
…move-comped-subs-from-charts

# Conflicts:
#	apps/stats/test/unit/components/growth/new-subscribers-cadence.test.tsx
@mike182uk mike182uk enabled auto-merge (squash) May 7, 2026 13:09
@mike182uk mike182uk merged commit 02e9bb5 into main May 7, 2026
41 checks passed
@mike182uk mike182uk deleted the BER-3614-analytics-remove-comped-subs-from-charts branch May 7, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants