debian-mirror-gitlab/lib/gitlab/graphql/board/issues_connection_extension.rb
2021-11-18 22:05:49 +05:30

15 lines
419 B
Ruby

# frozen_string_literal: true
module Gitlab
module Graphql
module Board
class IssuesConnectionExtension < GraphQL::Schema::Field::ConnectionExtension
def after_resolve(value:, object:, context:, **rest)
::Boards::Issues::ListService
.initialize_relative_positions(object.list.board, context[:current_user], value.nodes)
value
end
end
end
end
end