Commit 1cb0bf56 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'ajk-graphql-markdownlint-prep' into 'master'

Prevent markdownlint errors

See merge request gitlab-org/gitlab!56703
parents e36768c3 f9554dda
...@@ -18,7 +18,7 @@ module Mutations ...@@ -18,7 +18,7 @@ module Mutations
argument :api_url, GraphQL::STRING_TYPE, argument :api_url, GraphQL::STRING_TYPE,
required: true, required: true,
description: 'Endpoint at which prometheus can be queried.' description: 'Endpoint at which Prometheus can be queried.'
def resolve(args) def resolve(args)
project = authorized_find!(args[:project_path]) project = authorized_find!(args[:project_path])
......
...@@ -16,7 +16,7 @@ module Mutations ...@@ -16,7 +16,7 @@ module Mutations
argument :api_url, GraphQL::STRING_TYPE, argument :api_url, GraphQL::STRING_TYPE,
required: false, required: false,
description: "Endpoint at which prometheus can be queried." description: "Endpoint at which Prometheus can be queried."
def resolve(args) def resolve(args)
integration = authorized_find!(id: args[:id]) integration = authorized_find!(id: args[:id])
......
...@@ -8,15 +8,16 @@ module Resolvers ...@@ -8,15 +8,16 @@ module Resolvers
argument :path, GraphQL::STRING_TYPE, argument :path, GraphQL::STRING_TYPE,
required: true, required: true,
description: "Path to a file which defines metrics dashboard " \ description: <<~MD
"eg: 'config/prometheus/common_metrics.yml'." Path to a file which defines a metrics dashboard eg: `"config/prometheus/common_metrics.yml"`.
MD
alias_method :environment, :object alias_method :environment, :object
def resolve(**args) def resolve(path:)
return unless environment return unless environment
::PerformanceMonitoring::PrometheusDashboard.find_for(**args, **service_params) ::PerformanceMonitoring::PrometheusDashboard.find_for(path: path, **service_params)
end end
private private
......
...@@ -7,7 +7,7 @@ module Resolvers ...@@ -7,7 +7,7 @@ module Resolvers
argument :ids, [GraphQL::ID_TYPE], argument :ids, [GraphQL::ID_TYPE],
required: false, required: false,
description: 'Array of global milestone IDs, e.g., "gid://gitlab/Milestone/1".' description: 'Array of global milestone IDs, e.g., `"gid://gitlab/Milestone/1"`.'
argument :state, Types::MilestoneStateEnum, argument :state, Types::MilestoneStateEnum,
required: false, required: false,
......
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