summaryrefslogtreecommitdiff
path: root/app/graphql/resolvers/projects
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 21:07:50 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 21:07:50 +0000
commitd203316c80aa27cf747aa29df9f7c2d374965b5f (patch)
treeaab5cde76fbf19a2639f6f9f3cb4f2acdc95f803 /app/graphql/resolvers/projects
parent8dafc3b65aeb8f50fdfc38fb98d96c3db9e2f607 (diff)
downloadgitlab-ce-d203316c80aa27cf747aa29df9f7c2d374965b5f.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/resolvers/projects')
-rw-r--r--app/graphql/resolvers/projects/grafana_integration_resolver.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/graphql/resolvers/projects/grafana_integration_resolver.rb b/app/graphql/resolvers/projects/grafana_integration_resolver.rb
new file mode 100644
index 00000000000..030139734ed
--- /dev/null
+++ b/app/graphql/resolvers/projects/grafana_integration_resolver.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+module Resolvers
+ module Projects
+ class GrafanaIntegrationResolver < BaseResolver
+ type Types::GrafanaIntegrationType, null: true
+
+ alias_method :project, :object
+
+ def resolve(**args)
+ return unless project.is_a? Project
+
+ project.grafana_integration
+ end
+ end
+ end
+end