Commit 66e9577e authored by Sarah Yasonik's avatar Sarah Yasonik Committed by Thong Kuah

PagerDuty::ProcessWebhookService should inherit from BaseProjectService

parent 597ff662
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
module IncidentManagement module IncidentManagement
module PagerDuty module PagerDuty
class ProcessWebhookService class ProcessWebhookService < ::BaseProjectService
include Gitlab::Utils::StrongMemoize include Gitlab::Utils::StrongMemoize
include IncidentManagement::Settings include IncidentManagement::Settings
...@@ -13,7 +13,8 @@ module IncidentManagement ...@@ -13,7 +13,8 @@ module IncidentManagement
PAGER_DUTY_PROCESSABLE_EVENT_TYPES = %w(incident.trigger).freeze PAGER_DUTY_PROCESSABLE_EVENT_TYPES = %w(incident.trigger).freeze
def initialize(project, payload) def initialize(project, payload)
@project = project super(project: project)
@payload = payload @payload = payload
end end
...@@ -29,7 +30,7 @@ module IncidentManagement ...@@ -29,7 +30,7 @@ module IncidentManagement
private private
attr_reader :project, :payload attr_reader :payload
def process_incidents def process_incidents
pager_duty_processable_events.each do |event| pager_duty_processable_events.each do |event|
......
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