Report Pages Fetches Generic API Data
Problem to solve
Once we are storing data via Generic Metrics API MVC, we need to figure out how to consume that data in Report Pages. This is issue is focussed on that problem.
It will define an update to our report pages configuration file that will allow us to pull that data out and display it and also implement the underlying engine required for doing so.
Proposal
- Add to the YAML a query type for Generic Metrics API data which specifies what data set to use.
Example: (Not acceptance criteria, but for illustration.)
recent_merge_requests_by_group:
title: Recent Issues (90 days)
chart:
type: bar
series:
- id: open_merge_requests
title: Merge Requests
data_retrieval: Metrics::GenericStore
data_retrieval_options:
def_id: some_slug
group_by: week
period_limit: 12