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>2021-07-20 12:55:51 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-20 12:55:51 +0300
commite8d2c2579383897a1dd7f9debd359abe8ae8373d (patch)
treec42be41678c2586d49a75cabce89322082698334 /app/graphql/types/notes/noteable_type.rb
parentfc845b37ec3a90aaa719975f607740c22ba6a113 (diff)
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'app/graphql/types/notes/noteable_type.rb')
-rw-r--r--app/graphql/types/notes/noteable_type.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/app/graphql/types/notes/noteable_type.rb b/app/graphql/types/notes/noteable_type.rb
deleted file mode 100644
index a82a76f9c87..00000000000
--- a/app/graphql/types/notes/noteable_type.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-# frozen_string_literal: true
-
-module Types
- module Notes
- module NoteableType
- include Types::BaseInterface
-
- field :notes, Types::Notes::NoteType.connection_type, null: false, description: "All notes on this noteable."
- field :discussions, Types::Notes::DiscussionType.connection_type, null: false, description: "All discussions on this noteable."
-
- def self.resolve_type(object, context)
- case object
- when Issue
- Types::IssueType
- when MergeRequest
- Types::MergeRequestType
- when Snippet
- Types::SnippetType
- when ::DesignManagement::Design
- Types::DesignManagement::DesignType
- when ::AlertManagement::Alert
- Types::AlertManagement::AlertType
- else
- raise "Unknown GraphQL type for #{object}"
- end
- end
- end
- end
-end
-
-Types::Notes::NoteableType.prepend_mod_with('Types::Notes::NoteableType')