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
dc255db1
Commit
dc255db1
authored
Jun 05, 2020
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move feature flag to EE extension
parent
e520e164
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+0
-1
ee/app/controllers/ee/projects/issues_controller.rb
ee/app/controllers/ee/projects/issues_controller.rb
+4
-0
spec/features/issues/issue_sidebar_spec.rb
spec/features/issues/issue_sidebar_spec.rb
+0
-1
No files found.
app/controllers/projects/issues_controller.rb
View file @
dc255db1
...
@@ -46,7 +46,6 @@ class Projects::IssuesController < Projects::ApplicationController
...
@@ -46,7 +46,6 @@ class Projects::IssuesController < Projects::ApplicationController
before_action
do
before_action
do
push_frontend_feature_flag
(
:vue_issuable_sidebar
,
project
.
group
)
push_frontend_feature_flag
(
:vue_issuable_sidebar
,
project
.
group
)
push_frontend_feature_flag
(
:save_issuable_health_status
,
project
.
group
,
default_enabled:
true
)
end
end
before_action
only: :show
do
before_action
only: :show
do
...
...
ee/app/controllers/ee/projects/issues_controller.rb
View file @
dc255db1
...
@@ -11,6 +11,10 @@ module EE
...
@@ -11,6 +11,10 @@ module EE
before_action
:check_service_desk_available!
,
only:
[
:service_desk
]
before_action
:check_service_desk_available!
,
only:
[
:service_desk
]
before_action
:whitelist_query_limiting_ee
,
only:
[
:update
]
before_action
:whitelist_query_limiting_ee
,
only:
[
:update
]
before_action
do
push_frontend_feature_flag
(
:save_issuable_health_status
,
project
.
group
,
default_enabled:
true
)
end
end
end
override
:issue_except_actions
override
:issue_except_actions
...
...
spec/features/issues/issue_sidebar_spec.rb
View file @
dc255db1
...
@@ -13,7 +13,6 @@ describe 'Issue Sidebar' do
...
@@ -13,7 +13,6 @@ describe 'Issue Sidebar' do
let!
(
:xss_label
)
{
create
(
:label
,
project:
project
,
title:
'<script>alert("xss");</script>'
)
}
let!
(
:xss_label
)
{
create
(
:label
,
project:
project
,
title:
'<script>alert("xss");</script>'
)
}
before
do
before
do
stub_feature_flags
(
save_issuable_health_status:
false
)
sign_in
(
user
)
sign_in
(
user
)
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