2020-08-07 12:09:59 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Resolvers
|
|
|
|
class BoardListIssuesResolver < BaseResolver
|
|
|
|
type Types::IssueType, null: true
|
|
|
|
|
|
|
|
alias_method :list, :object
|
|
|
|
|
|
|
|
def resolve(**args)
|
|
|
|
service = Boards::Issues::ListService.new(list.board.resource_parent, context[:current_user], { board_id: list.board.id, id: list.id })
|
|
|
|
Gitlab::Graphql::Pagination::OffsetActiveRecordRelationConnection.new(service.execute)
|
|
|
|
end
|
2020-08-12 06:09:53 +00:00
|
|
|
|
|
|
|
# https://gitlab.com/gitlab-org/gitlab/-/issues/235681
|
|
|
|
def self.complexity_multiplier(args)
|
|
|
|
0.005
|
|
|
|
end
|
2020-08-07 12:09:59 +00:00
|
|
|
end
|
|
|
|
end
|