0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/test/unit/server/services
Simon Backx ae54352a29
Created new stats service and stats API to get member count history (#14391)
refs TryGhost/Team#1458
refs TryGhost/Team#1459
refs TryGhost/Team#1372

- Added a new stats service, which is divided into several categories. Currently only the 'members' category for member related stats.
- When there are missing or corrupt members status events in the DB, the totals returned by the old member stats endpoint (`/members/stats/count`) were wrong. This is fixed in the new service by counting in reverse order and starting with the actual totals.
- New Stats API, with the new `/stats/members/count-history` endpoint.
- This new endpoint also returns the paid deltas -> dashboard 5.0 will show subscribed and canceled paid members for each day
- Includes tests for the new stats service and endpoint
2022-03-31 16:01:11 +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 Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
notifications Replace error handler middleware with @tryghost/mw-error-handler (#13879) 2021-12-14 15:18:46 +00:00
permissions
posts
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 Created new stats service and stats API to get member count history (#14391) 2022-03-31 16:01:11 +02:00
stripe Aliased canary endpoints to point to non-versioned URLs 2022-03-14 21:22:54 +13:00
themes
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 Moved URL service to backend 2021-10-19 07:29:09 +13:00
xmlrpc.test.js