Insights config file
The proposal for insights involves the use of a configuration file for defining the charts in use. Insights will be a group-level feature.
Maybe we can store the config file in a project's repository within the group and allow this project to be specified in the group-level settings for insights.
Possible example yml
charts:
- name: bugs_by_severity
title: Bugs By Severity (pie)
chart_type: pie
query:
name: filtered_issuables_by_label_category
params:
issuable_state: 'Open'
filter_labels: ['bug']
category_labels: ['S1','S2','S3','S4']
Or
graphs:
engineering-productivity:
name: Engineering Productivity
group: gitlab-org
data: merge-request
time-series: milestone
trendline: yes
engineering-productivity-ce:
name: Engineering Productivity
project: gitlab-org/gitlab-ce
data: merge-request
time-series: milestone
trendline: no
Possible implementation
- Add a group setting in general section, which there's a dropdown menu to pick a project
- The configuration file will be fetched from the picked project's default branch, named
.insight.yml
Edited by Lin Jen-Shin