0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/regression/api/canary/admin
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
..
authentication_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
db_spec.js
identities_spec.js
images_spec.js
members_signin_url_spec.js
members_spec.js Added Admin API endpoint for basic member stats (#11840) 2020-05-26 10:38:42 +01:00
notifications_spec.js
pages_spec.js
posts_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
redirects_spec.js 🐛 Fixed regex match replacement when dealing with external URLs (#11781) 2020-04-30 07:51:36 +01:00
schedules_spec.js
settings_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
slack_spec.js
users_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
utils.js