mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
071ab9774b
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 } ``` |
||
---|---|---|
.. | ||
admin | ||
content | ||
README.md |
Acceptance Tests
This folder should only contain a set of basic API use cases.
We are currently refactoring the test env. The "old" folder currently contains all API tests for the stable API version (v2). The goal is:
- either keep a test if it's a basic use case e.g. upload an image, schedule a post, download a theme
- otherwise move the test to regression api v2 tests
We probably need a differentiation for the acceptance tests for session and api_key authentication.
Before we move tests:
- we have to re-work how are test utility is structured
- we have to reduce tests