2020-08-12 14:10:05 -04:00
|
|
|
# frozen_string_literal: true
|
2021-10-20 14:12:31 -04:00
|
|
|
# rubocop:disable Graphql/ResolverType (inherited from BaseIssuesResolver)
|
2020-08-12 14:10:05 -04:00
|
|
|
|
|
|
|
module Resolvers
|
2021-10-20 14:12:31 -04:00
|
|
|
class GroupIssuesResolver < BaseIssuesResolver
|
2022-03-15 14:08:10 -04:00
|
|
|
def self.issuable_collection_name
|
|
|
|
'issues'
|
|
|
|
end
|
2020-10-05 14:08:51 -04:00
|
|
|
|
2022-03-15 14:08:10 -04:00
|
|
|
include GroupIssuableResolver
|
2021-10-20 14:12:31 -04:00
|
|
|
|
|
|
|
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-08-12 14:10:05 -04:00
|
|
|
end
|
|
|
|
end
|