Ghost/test/unit/server/services
Simon Backx 132726fe20
Added MRR stats service and endpoint (#14427)
refs https://github.com/TryGhost/Team/issues/1470

Instead of counting the MRR by resolving all the deltas from the past until now, we should start with the current calculated MRR and resolve it until the first event. That would give a more accurate recent MRR (in exchange for a less accurate MRR for older data) and allows us to limit the amount of returned days in the future.

- Includes MRR stats service that can fetch the current MRR per currency
- The service can return a history of the MRR for every day and currency
- New admin API endpoint /stats/mrr that returns the MRR history
- Includes tests for these new service and endpoint
2022-04-08 09:18:04 +02:00
..
adapter-manager Added local media storage adapter 2021-11-03 00:33:28 +13:00
auth Renamed versioned API URL variable 2022-03-14 21:22:54 +13:00
mail Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
mega Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
members Added default newsletter subscription for new members (#14431) 2022-04-07 08:30:00 +05:30
newsletters Added default newsletter subscription for new members (#14431) 2022-04-07 08:30:00 +05:30
notifications Replace error handler middleware with @tryghost/mw-error-handler (#13879) 2021-12-14 15:18:46 +00:00
permissions Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
posts Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
redirects Slimmed down redirects test suites 2021-11-26 06:18:36 +13:00
settings Removed some hidden v2 and v3 tests 2022-01-21 15:07:17 +00:00
stats Added MRR stats service and endpoint (#14427) 2022-04-08 09:18:04 +02:00
stripe Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
themes Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
url Fixed location of url service unit tests 2022-04-06 13:05:41 +01:00
webhooks Re-throw error when attempting to create webhooks 2022-03-07 13:54:00 +00:00
labs.test.js Added ability for themes to define custom settings (#13661) 2021-10-22 15:02:16 +01:00
slack.test.js Replaced schema.isPost in slack service /w custom fn 2022-04-05 14:24:42 +01:00
xmlrpc.test.js Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00