Commit ee0c2de0 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'pl-incident-severity-indirection' into 'master'

Use `supports_severity?` to check feature availability on issuables

See merge request gitlab-org/gitlab!49378
parents c1e945bd ecd14b7f
......@@ -197,7 +197,7 @@ module Issuable
end
def severity
return IssuableSeverity::DEFAULT unless incident?
return IssuableSeverity::DEFAULT unless supports_severity?
issuable_severity&.severity || IssuableSeverity::DEFAULT
end
......
......@@ -12,7 +12,7 @@ module IncidentManagement
end
def execute
return unless issuable.incident?
return unless issuable.supports_severity?
update_severity!
add_system_note
......
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