summaryrefslogtreecommitdiff
path: root/app/graphql/types/alert_management/alert_type.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-16 06:07:12 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-16 06:07:12 +0000
commitb78b8c1103e1e9542891a1c333c8abcd4d7e10ab (patch)
treee6fd1cb9a6fbd4fcb6d9befb61a1773e5c8542c5 /app/graphql/types/alert_management/alert_type.rb
parentfe0260eaa337339a131624a8b71d7a05a3664a18 (diff)
downloadgitlab-ce-b78b8c1103e1e9542891a1c333c8abcd4d7e10ab.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/types/alert_management/alert_type.rb')
-rw-r--r--app/graphql/types/alert_management/alert_type.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/graphql/types/alert_management/alert_type.rb b/app/graphql/types/alert_management/alert_type.rb
index a13453f9194..5784c7a4872 100644
--- a/app/graphql/types/alert_management/alert_type.rb
+++ b/app/graphql/types/alert_management/alert_type.rb
@@ -114,7 +114,9 @@ module Types
field :metrics_dashboard_url,
GraphQL::Types::String,
null: true,
- description: 'URL for metrics embed for the alert.'
+ description: 'URL for metrics embed for the alert.',
+ deprecated: { reason: 'Returns no data. Underlying feature was removed in 16.0',
+ milestone: '16.0' }
field :runbook,
GraphQL::Types::String,
@@ -145,6 +147,12 @@ module Types
def notes
object.ordered_notes
end
+
+ def metrics_dashboard_url
+ return if Feature.enabled?(:remove_monitor_metrics)
+
+ object.metrics_dashboard_url
+ end
end
end
end