2018-09-11 19:08:34 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-26 16:31:05 +00:00
|
|
|
module Resolvers
|
|
|
|
class ProjectPipelinesResolver < BaseResolver
|
2020-10-30 06:08:54 +00:00
|
|
|
include LooksAhead
|
2018-06-26 16:31:05 +00:00
|
|
|
include ResolvesPipelines
|
|
|
|
|
|
|
|
alias_method :project, :object
|
|
|
|
|
2020-10-30 06:08:54 +00:00
|
|
|
def resolve_with_lookahead(**args)
|
|
|
|
apply_lookahead(resolve_pipelines(project, args))
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def preloads
|
|
|
|
{
|
|
|
|
jobs: [:statuses]
|
|
|
|
}
|
2018-06-26 16:31:05 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|