summaryrefslogtreecommitdiff
path: root/app/models/alert_management
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-06-05 18:08:19 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-05 18:08:19 +0000
commitaee8d27430f12f9b5bcdbbee4165b9fbc240d3e3 (patch)
treec67a92fe8fcf5c51545ea1fb00990a32224cbe9b /app/models/alert_management
parent86e1f47cd19e7c164fb0b2c24e28a63ea27ae5ff (diff)
downloadgitlab-ce-aee8d27430f12f9b5bcdbbee4165b9fbc240d3e3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/alert_management')
-rw-r--r--app/models/alert_management/alert.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/alert_management/alert.rb b/app/models/alert_management/alert.rb
index 0eb277a24fe..35fae370e4a 100644
--- a/app/models/alert_management/alert.rb
+++ b/app/models/alert_management/alert.rb
@@ -4,6 +4,7 @@ require_dependency 'alert_management'
module AlertManagement
class Alert < ApplicationRecord
+ include IidRoutes
include AtomicInternalId
include ShaAttribute
include Sortable
@@ -143,6 +144,12 @@ module AlertManagement
increment!(:events)
end
+ # required for todos (typically contains an identifier like issue iid)
+ # no-op; we could use iid, but we don't have a reference prefix
+ def to_reference(_from = nil, full: false)
+ ''
+ end
+
private
def hosts_length