2020-08-11 23:10:17 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Resolvers
|
|
|
|
class IssueStatusCountsResolver < BaseResolver
|
2020-09-18 08:09:50 -04:00
|
|
|
prepend IssueResolverArguments
|
2020-08-11 23:10:17 -04:00
|
|
|
|
|
|
|
type Types::IssueStatusCountsType, null: true
|
2021-10-20 14:12:31 -04:00
|
|
|
accept_release_tag
|
2020-08-11 23:10:17 -04:00
|
|
|
|
2020-12-14 16:09:47 -05:00
|
|
|
extras [:lookahead]
|
|
|
|
|
2020-08-11 23:10:17 -04:00
|
|
|
def continue_issue_resolve(parent, finder, **args)
|
2020-09-18 08:09:50 -04:00
|
|
|
finder.parent_param = parent
|
2020-08-25 14:10:49 -04:00
|
|
|
apply_lookahead(Gitlab::IssuablesCountForState.new(finder, parent))
|
2020-08-11 23:10:17 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|