Instance Statistics MVP: object counts [BE]
Overview
In &4147 (closed), we describe the need for an instance-level overview of instance activity.
frontend issue: #235754 (closed)
Proposal
Introduce the Instance Statistics page in the admin panel.
- Show counts for users, projects, groups, issues, MRs, and pipelines. These counts should include the total number of these objects on the instance.
- Query and store these counts daily for performance. Show when the data was pulled.
Implementation plan
-
Create database table and dummy GraphQL endpoint (weight: 2) -
Implement the query logic using BatchCount
and `created_at (weight: 3) -
Set up the cron job (weight 1)
Edited by Adam Hegyi