debian-mirror-gitlab/app/graphql/resolvers/issue_status_counts_resolver.rb
2021-12-11 22:18:48 +05:30

17 lines
414 B
Ruby

# frozen_string_literal: true
module Resolvers
class IssueStatusCountsResolver < BaseResolver
prepend IssueResolverArguments
type Types::IssueStatusCountsType, null: true
accept_release_tag
extras [:lookahead]
def continue_issue_resolve(parent, finder, **args)
finder.parent_param = parent
apply_lookahead(Gitlab::IssuablesCountForState.new(finder, parent))
end
end
end