Commit 58d7c7f8 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'psi-iteration-chart-feature' into 'master'

Put iteration charts behind correct feature flag

See merge request gitlab-org/gitlab!45450
parents d97a015a df6179a5
......@@ -220,7 +220,7 @@ export default {
:namespace-type="namespaceType"
/>
<burn-charts
v-if="glFeatures.burnupCharts"
v-if="glFeatures.iterationCharts && glFeatures.burnupCharts"
:start-date="iteration.startDate"
:due-date="iteration.dueDate"
:iteration-id="iteration.id"
......
......@@ -5,6 +5,7 @@ class Groups::IterationsController < Groups::ApplicationController
before_action :authorize_show_iteration!, only: [:index, :show]
before_action :authorize_create_iteration!, only: [:new, :edit]
before_action do
push_frontend_feature_flag(:iteration_charts, group)
push_frontend_feature_flag(:burnup_charts, group)
end
......
......@@ -4,6 +4,7 @@ class Projects::Iterations::InheritedController < Projects::ApplicationControlle
before_action :check_iterations_available!
before_action :authorize_show_iteration!
before_action do
push_frontend_feature_flag(:iteration_charts, project)
push_frontend_feature_flag(:burnup_charts, project)
end
......
......@@ -4,6 +4,7 @@ class Projects::IterationsController < Projects::ApplicationController
before_action :check_iterations_available!
before_action :authorize_show_iteration!
before_action do
push_frontend_feature_flag(:iteration_charts, project)
push_frontend_feature_flag(:burnup_charts, project)
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