Class: Resolvers::BoardListIssuesResolver

Inherits:
BaseResolver
  • Object
show all
Includes:
BoardIssueFilterable
Defined in:
app/graphql/resolvers/board_list_issues_resolver.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseResolver

complexity, #current_user, last, #object, resolver_complexity, #select_result, single, #single?, #synchronized_object

Methods included from Gitlab::Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Class Method Details

.complexity_multiplier(args) ⇒ Object


23
24
25
# File 'app/graphql/resolvers/board_list_issues_resolver.rb', line 23

def self.complexity_multiplier(args)
  0.005
end

Instance Method Details

#resolve(**args) ⇒ Object


15
16
17
18
19
20
# File 'app/graphql/resolvers/board_list_issues_resolver.rb', line 15

def resolve(**args)
  filter_params = issue_filters(args[:filters]).merge(board_id: list.board.id, id: list.id)
  service = Boards::Issues::ListService.new(list.board.resource_parent, context[:current_user], filter_params)

  Gitlab::Graphql::Pagination::OffsetActiveRecordRelationConnection.new(service.execute)
end