Ghost/test/api-acceptance/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
..
actions_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
config_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
db_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
email_preview_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
emails_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
images_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
integrations_spec.js Added new endpoint for refreshing api key secret (#11791) 2020-05-05 23:36:21 +05:30
invites_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
key_authentication_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
mail_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
members_spec.js Added Admin API endpoint for basic member stats (#11840) 2020-05-26 10:38:42 +01:00
notifications_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
oembed_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
pages_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
posts_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
roles_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
settings_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
slugs_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
tags_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
themes_spec.js Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
users_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
utils.js Added label to known filter params for members 2020-05-21 18:44:52 +01:00
webhooks_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00