2020-10-24 23:57:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-01-13 00:05:48 +05:30
|
|
|
# rubocop:disable Graphql/ResolverType (inherited from Issues::BaseParentResolver)
|
2020-10-24 23:57:45 +05:30
|
|
|
module Resolvers
|
2023-01-13 00:05:48 +05:30
|
|
|
class GroupIssuesResolver < Issues::BaseParentResolver
|
2022-05-07 20:08:51 +05:30
|
|
|
def self.issuable_collection_name
|
|
|
|
'issues'
|
|
|
|
end
|
2021-01-03 14:25:43 +05:30
|
|
|
|
2022-05-07 20:08:51 +05:30
|
|
|
include GroupIssuableResolver
|
2021-12-11 22:18:48 +05:30
|
|
|
|
|
|
|
def ready?(**args)
|
|
|
|
if args.dig(:not, :release_tag).present?
|
|
|
|
raise ::Gitlab::Graphql::Errors::ArgumentError, 'releaseTag filter is not allowed when parent is a group.'
|
|
|
|
end
|
|
|
|
|
|
|
|
super
|
|
|
|
end
|
2020-10-24 23:57:45 +05:30
|
|
|
end
|
|
|
|
end
|
2023-01-13 00:05:48 +05:30
|
|
|
# rubocop:enable Graphql/ResolverType
|