Ghost/ghost/stats-service
Simon Backx db717f446f 🐛 Fixed free trials not visible in paid subscriptions graph
fixes https://github.com/TryGhost/Team/issues/2607

When a free trial converts to a paid subscription, and increases the MRR, it just creates a 'updated' paid subscription event.

To fix this, we need to count updated events that didn't change plan but do have a positive MRR. As an extension we could also check if the MRR change matches the expected MRR for the corresponsing Stripe plan, but that requires a more complex condition check (because for yearly subscriptions we need to convert to monthly), I don't think that is required here.
2023-03-10 16:16:17 +01:00
..
lib 🐛 Fixed free trials not visible in paid subscriptions graph 2023-03-10 16:16:17 +01:00
test Fixed no-shadow lint warnings (#15520) 2022-10-03 15:50:28 +01:00
.eslintrc.js Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
index.js Moved Stats Service from Ghost 2022-04-21 13:10:33 +01:00
package.json Updated sinon dependency 2023-03-02 12:43:42 +01:00
README.md Cleanup Stats-Service package files 2022-09-20 14:28:11 +01:00

Stats

Stats service

Usage

Test

  • yarn lint run just eslint
  • yarn test run lint and tests