debian-mirror-gitlab/app/graphql/resolvers/group_issues_resolver.rb

19 lines
465 B
Ruby
Raw Normal View History

2020-10-24 23:57:45 +05:30
# frozen_string_literal: true
2021-12-11 22:18:48 +05:30
# rubocop:disable Graphql/ResolverType (inherited from BaseIssuesResolver)
2020-10-24 23:57:45 +05:30
module Resolvers
2021-12-11 22:18:48 +05:30
class GroupIssuesResolver < BaseIssuesResolver
2021-01-03 14:25:43 +05:30
include GroupIssuableResolver
include_subgroups 'issues'
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