Commit 588bb2c3 authored by charlie ablett's avatar charlie ablett

Merge branch 'psi-feat-burnup-charts' into 'master'

Scope burnup charts to group or project

See merge request gitlab-org/gitlab!33230
parents 084f5d6e bccd1b37
...@@ -6,7 +6,7 @@ class Groups::MilestonesController < Groups::ApplicationController ...@@ -6,7 +6,7 @@ class Groups::MilestonesController < Groups::ApplicationController
before_action :milestone, only: [:edit, :show, :update, :merge_requests, :participants, :labels, :destroy] before_action :milestone, only: [:edit, :show, :update, :merge_requests, :participants, :labels, :destroy]
before_action :authorize_admin_milestones!, only: [:edit, :new, :create, :update, :destroy] before_action :authorize_admin_milestones!, only: [:edit, :new, :create, :update, :destroy]
before_action do before_action do
push_frontend_feature_flag(:burnup_charts) push_frontend_feature_flag(:burnup_charts, @group)
end end
def index def index
......
...@@ -7,7 +7,7 @@ class Projects::MilestonesController < Projects::ApplicationController ...@@ -7,7 +7,7 @@ class Projects::MilestonesController < Projects::ApplicationController
before_action :check_issuables_available! before_action :check_issuables_available!
before_action :milestone, only: [:edit, :update, :destroy, :show, :merge_requests, :participants, :labels, :promote] before_action :milestone, only: [:edit, :update, :destroy, :show, :merge_requests, :participants, :labels, :promote]
before_action do before_action do
push_frontend_feature_flag(:burnup_charts) push_frontend_feature_flag(:burnup_charts, @project)
end end
# Allow read any milestone # Allow read any milestone
......
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