Add merge request data source
What does this MR do and why?
This MR adds merge request data sources for the Analytics Dashboard and introduces a 365-day date range option. This enables users to analyze merge request metrics over a full year, providing deeper insights into development workflows and team performance trends.
The implementation connects existing GraphQL endpoints to the dashboard framework, allowing teams to visualize merge request throughput and access detailed merge request data directly within their analytics dashboards.
Key Changes
| Change | Description |
|---|---|
| 365-day date range option | Added longer timeframe for year-over-year analysis |
| Merge request counts data source | Provides aggregated metrics on merge request throughput |
| Merge request list data source | Enables detailed listing with pagination support |
| GraphQL integration | Leverages existing endpoints for efficient data retrieval |
Implementation Details
- Added constants for the new date range option
- Created data source implementations for both count metrics and detailed lists
- Implemented filter support (labels, branches, authors, milestones)
- Added comprehensive test coverage
How to test
- Navigate to an Analytics Dashboard
- Add a visualization using the new merge request data sources
- Test with various filters and date ranges, including the new 365-day option
- Verify both aggregate metrics and detailed lists display correctly
Related to #523194 (closed)
Edited by Ezekiel Kigbo