Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5d01b2e2
Commit
5d01b2e2
authored
Nov 14, 2019
by
Jason Goodman
Committed by
Ash McKenzie
Nov 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Environment Dashboard by default
Remove current_user from Feature check Add default_enabled: true
parent
d3140f44
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
changelogs/unreleased/enable-environment-dashboard-on-prod.yml
...elogs/unreleased/enable-environment-dashboard-on-prod.yml
+5
-0
ee/app/controllers/operations_controller.rb
ee/app/controllers/operations_controller.rb
+1
-1
ee/app/helpers/ee/dashboard_helper.rb
ee/app/helpers/ee/dashboard_helper.rb
+1
-1
No files found.
changelogs/unreleased/enable-environment-dashboard-on-prod.yml
0 → 100644
View file @
5d01b2e2
---
title
:
Enable environments dashboard by default
merge_request
:
19838
author
:
type
:
added
ee/app/controllers/operations_controller.rb
View file @
5d01b2e2
...
@@ -57,7 +57,7 @@ class OperationsController < ApplicationController
...
@@ -57,7 +57,7 @@ class OperationsController < ApplicationController
end
end
def
environments_dashboard_feature_flag
def
environments_dashboard_feature_flag
render_404
unless
Feature
.
enabled?
(
:environments_dashboard
,
current_user
)
render_404
unless
Feature
.
enabled?
(
:environments_dashboard
,
current_user
,
default_enabled:
true
)
end
end
def
load_projects
(
current_user
)
def
load_projects
(
current_user
)
...
...
ee/app/helpers/ee/dashboard_helper.rb
View file @
5d01b2e2
...
@@ -39,7 +39,7 @@ module EE
...
@@ -39,7 +39,7 @@ module EE
links
<<
:analytics
if
::
Gitlab
::
Analytics
.
any_features_enabled?
links
<<
:analytics
if
::
Gitlab
::
Analytics
.
any_features_enabled?
if
can?
(
current_user
,
:read_operations_dashboard
)
if
can?
(
current_user
,
:read_operations_dashboard
)
links
<<
:environments
if
::
Feature
.
enabled?
(
:environments_dashboard
,
current_user
)
links
<<
:environments
if
::
Feature
.
enabled?
(
:environments_dashboard
,
current_user
,
default_enabled:
true
)
links
<<
:operations
links
<<
:operations
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment