-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ 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 } ```
- Loading branch information
1 parent
cf3ee55
commit 071ab97
Showing
5 changed files
with
235 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters