Commit 167540aa authored by Robert Speicher's avatar Robert Speicher

Merge branch '36675-add-median-line-to-cycle-analytics-duration-chart' into 'master'

Default cycle analytics duration chart and median line feature flags to true

See merge request gitlab-org/gitlab!23971
parents c6631e6b 6c9879ca
---
title: Add cycle analytics duration chart with median line
merge_request: 23971
author:
type: added
...@@ -172,16 +172,23 @@ For example, if 30 days worth of data has been selected (for example, 2019-12-16 ...@@ -172,16 +172,23 @@ For example, if 30 days worth of data has been selected (for example, 2019-12-16
median line will represent the previous 30 days worth of data (2019-11-16 to 2019-12-16) median line will represent the previous 30 days worth of data (2019-11-16 to 2019-12-16)
as a metric to compare against. as a metric to compare against.
### Enabling chart ### Disabling chart
By default, this chart is disabled for self-managed instances. To enable it, ask an This chart is enabled by default. If you have a self-managed instance, an
administrator with Rails console access to run the following: administrator can open a Rails console and disable it with the following command:
```ruby ```ruby
Feature.enable(:cycle_analytics_scatterplot_enabled) Feature.disable(:cycle_analytics_scatterplot_enabled)
``` ```
This chart is enabled by default on GitLab.com. ### Disabling chart median line
This chart median line is enabled by default. If you have a self-managed instance, an
administrator can open a Rails console and disable it with the following command:
```ruby
Feature.disable(:cycle_analytics_scatterplot_median_enabled)
```
## Permissions ## Permissions
......
...@@ -6,8 +6,8 @@ class Analytics::CycleAnalyticsController < Analytics::ApplicationController ...@@ -6,8 +6,8 @@ class Analytics::CycleAnalyticsController < Analytics::ApplicationController
before_action do before_action do
push_frontend_feature_flag(:customizable_cycle_analytics) push_frontend_feature_flag(:customizable_cycle_analytics)
push_frontend_feature_flag(:cycle_analytics_scatterplot_enabled) push_frontend_feature_flag(:cycle_analytics_scatterplot_enabled, default_enabled: true)
push_frontend_feature_flag(:cycle_analytics_scatterplot_median_enabled) push_frontend_feature_flag(:cycle_analytics_scatterplot_median_enabled, default_enabled: true)
push_frontend_feature_flag(:tasks_by_type_chart) push_frontend_feature_flag(:tasks_by_type_chart)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment