summaryrefslogtreecommitdiff
path: root/app/graphql/resolvers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-12-22 12:16:22 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-12-22 12:16:22 +0000
commit96891fec6dfa20a8342a3daa25935213cfddae22 (patch)
treea09d9a3c565d28b33d0bbc1c1202061c8eb061b9 /app/graphql/resolvers
parent8bf2e2b73e5898c78dd057e02828b6acc1647a70 (diff)
downloadgitlab-ce-96891fec6dfa20a8342a3daa25935213cfddae22.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/resolvers')
-rw-r--r--app/graphql/resolvers/work_items/types_resolver.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/graphql/resolvers/work_items/types_resolver.rb b/app/graphql/resolvers/work_items/types_resolver.rb
new file mode 100644
index 00000000000..bacb78fd0e4
--- /dev/null
+++ b/app/graphql/resolvers/work_items/types_resolver.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+module Resolvers
+ module WorkItems
+ class TypesResolver < BaseResolver
+ type Types::WorkItems::TypeType.connection_type, null: true
+
+ def resolve
+ # This will require a finder in the future when groups get their work item types
+ # All groups use the default types for now
+ ::WorkItems::Type.default.order_by_name_asc
+ end
+ end
+ end
+end