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
6e2a6e2b
Commit
6e2a6e2b
authored
Mar 29, 2022
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move push licensed feature call in ee counterparts
parent
a2c9cb4a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/projects/incidents_controller.rb
app/controllers/projects/incidents_controller.rb
+0
-1
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+0
-1
ee/app/controllers/ee/projects/incidents_controller.rb
ee/app/controllers/ee/projects/incidents_controller.rb
+1
-0
ee/app/controllers/ee/projects/issues_controller.rb
ee/app/controllers/ee/projects/issues_controller.rb
+1
-0
No files found.
app/controllers/projects/incidents_controller.rb
View file @
6e2a6e2b
...
@@ -9,7 +9,6 @@ class Projects::IncidentsController < Projects::ApplicationController
...
@@ -9,7 +9,6 @@ class Projects::IncidentsController < Projects::ApplicationController
before_action
do
before_action
do
push_frontend_feature_flag
(
:incident_escalations
,
@project
)
push_frontend_feature_flag
(
:incident_escalations
,
@project
)
push_frontend_feature_flag
(
:incident_timeline
,
@project
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:incident_timeline
,
@project
,
default_enabled: :yaml
)
push_licensed_feature
(
:incident_timeline_events
)
if
@project
.
licensed_feature_available?
(
:incident_timeline_events
)
end
end
feature_category
:incident_management
feature_category
:incident_management
...
...
app/controllers/projects/issues_controller.rb
View file @
6e2a6e2b
...
@@ -44,7 +44,6 @@ class Projects::IssuesController < Projects::ApplicationController
...
@@ -44,7 +44,6 @@ class Projects::IssuesController < Projects::ApplicationController
push_frontend_feature_flag
(
:contacts_autocomplete
,
project
&
.
group
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:contacts_autocomplete
,
project
&
.
group
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:markdown_continue_lists
,
project
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:markdown_continue_lists
,
project
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:incident_timeline
,
project
,
default_enabled: :yaml
)
push_frontend_feature_flag
(
:incident_timeline
,
project
,
default_enabled: :yaml
)
push_licensed_feature
(
:incident_timeline_events
)
if
project
.
licensed_feature_available?
(
:incident_timeline_events
)
end
end
before_action
only: :show
do
before_action
only: :show
do
...
...
ee/app/controllers/ee/projects/incidents_controller.rb
View file @
6e2a6e2b
...
@@ -7,6 +7,7 @@ module EE
...
@@ -7,6 +7,7 @@ module EE
prepended
do
prepended
do
before_action
do
before_action
do
push_licensed_feature
(
:escalation_policies
,
project
)
push_licensed_feature
(
:escalation_policies
,
project
)
push_licensed_feature
(
:incident_timeline_events
)
if
project
.
licensed_feature_available?
(
:incident_timeline_events
)
end
end
end
end
end
end
...
...
ee/app/controllers/ee/projects/issues_controller.rb
View file @
6e2a6e2b
...
@@ -17,6 +17,7 @@ module EE
...
@@ -17,6 +17,7 @@ module EE
before_action
only: :show
do
before_action
only: :show
do
push_licensed_feature
(
:escalation_policies
,
project
)
push_licensed_feature
(
:escalation_policies
,
project
)
push_licensed_feature
(
:incident_timeline_events
)
if
project
.
licensed_feature_available?
(
:incident_timeline_events
)
end
end
before_action
:redirect_if_test_case
,
only:
[
:show
]
before_action
:redirect_if_test_case
,
only:
[
:show
]
...
...
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