Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-27 15:08:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-27 15:08:19 +0300
commit863ba7d77355b305b06112b0c6c3cab3c09898b0 (patch)
tree6b657c3bfc0cff804fad6094ba61d42c6925c4d4 /app/models/alert_management
parent359bc6940b1205035e14f028b75d0c9c80a1fd5e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/alert_management')
-rw-r--r--app/models/alert_management/alert.rb4
-rw-r--r--app/models/alert_management/metric_image.rb4
2 files changed, 0 insertions, 8 deletions
diff --git a/app/models/alert_management/alert.rb b/app/models/alert_management/alert.rb
index 1ec3cb62c76..ba23d52ca81 100644
--- a/app/models/alert_management/alert.rb
+++ b/app/models/alert_management/alert.rb
@@ -143,10 +143,6 @@ module AlertManagement
reference.to_i > 0 && reference.to_i <= Gitlab::Database::MAX_INT_VALUE
end
- def metric_images_available?
- ::AlertManagement::MetricImage.available_for?(project)
- end
-
def prometheus?
monitoring_tool == Gitlab::AlertManagement::Payload::MONITORING_TOOLS[:prometheus]
end
diff --git a/app/models/alert_management/metric_image.rb b/app/models/alert_management/metric_image.rb
index 8175a31be7a..4ed28c3b1eb 100644
--- a/app/models/alert_management/metric_image.rb
+++ b/app/models/alert_management/metric_image.rb
@@ -7,10 +7,6 @@ module AlertManagement
belongs_to :alert, class_name: 'AlertManagement::Alert', foreign_key: 'alert_id', inverse_of: :metric_images
- def self.available_for?(project)
- true
- end
-
private
def local_path