diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /app/graphql/types/metrics/dashboard_type.rb | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'app/graphql/types/metrics/dashboard_type.rb')
-rw-r--r-- | app/graphql/types/metrics/dashboard_type.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/app/graphql/types/metrics/dashboard_type.rb b/app/graphql/types/metrics/dashboard_type.rb deleted file mode 100644 index 5570b904d79..00000000000 --- a/app/graphql/types/metrics/dashboard_type.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -module Types - module Metrics - # rubocop: disable Graphql/AuthorizeTypes - # Authorization is performed at environment level - class DashboardType < ::Types::BaseObject - graphql_name 'MetricsDashboard' - - field :path, GraphQL::Types::String, null: true, - description: 'Path to a file with the dashboard definition.' - - field :schema_validation_warnings, - [GraphQL::Types::String], - null: true, - description: 'Dashboard schema validation warnings.' - - field :annotations, - Types::Metrics::Dashboards::AnnotationType.connection_type, - null: true, - description: 'Annotations added to the dashboard.', - resolver: Resolvers::Metrics::Dashboards::AnnotationResolver - - # In order to maintain backward compatibility we need to return NULL when there are no warnings - # and dashboard validation returns an empty array when there are no issues. - def schema_validation_warnings - warnings = object.schema_validation_warnings - warnings unless warnings.empty? - end - end - # rubocop: enable Graphql/AuthorizeTypes - end -end |