Ghost/core/server
Kevin Ansfield 071ab9774b
Added Admin API endpoint for basic member stats (#11840)
no issue

- moves members stats generation for the admin graph from the client to the server
- outputs a basic totals count across a requested date range of 30, 90, 365 days, or all time. See below for the response shape
- leaves heavy lifting of the counts to the SQL engines - tested on a dataset of 100k members and query performance is <100ms

```
GET /ghost/api/canary/members/stats/?days=30

{
    total: 100000,
    total_in_range: 20000,
    total_on_date: {
        '2020-04-25': 19000,
        '2020-04-26': 19500,
        // continues until today's date
    },
    new_today: 200
}
```
2020-05-26 10:38:42 +01:00
..
adapters Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
api Added Admin API endpoint for basic member stats (#11840) 2020-05-26 10:38:42 +01:00
config Added stripeDirect config to admin api w/ default 2020-05-20 16:47:58 +02:00
data Refactored migrations to destructure common lib import (#11837) 2020-05-25 09:48:50 +01:00
lib Improved password reset and session invalidation for "locked" users (#11790) 2020-05-05 19:37:53 +01:00
models Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
public Renamed members ssr + api endpoints 2020-04-30 19:00:37 +01:00
services Added member update endpoint with session auth (#11824) 2020-05-20 14:37:58 +05:30
translations Improved password reset and session invalidation for "locked" users (#11790) 2020-05-05 19:37:53 +01:00
views Update default 404 page 2019-07-15 14:47:01 +02:00
web Added Admin API endpoint for basic member stats (#11840) 2020-05-26 10:38:42 +01:00
analytics-events.js Refactor common pattern in service files 2020-04-30 20:48:42 +01:00
ghost-server.js Refactor common pattern in service files 2020-04-30 20:48:42 +01:00
index.js Refactor common pattern in service files 2020-04-30 20:48:42 +01:00
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js Refactor common pattern in service files 2020-04-30 20:48:42 +01:00