Commit 6e2a6e2b authored by Rajendra Kadam's avatar Rajendra Kadam

Move push licensed feature call in ee counterparts

parent a2c9cb4a
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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]
......
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