diff options
Diffstat (limited to 'lib/gitlab/graphql')
-rw-r--r-- | lib/gitlab/graphql/loaders/pipeline_for_sha_loader.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/gitlab/graphql/loaders/pipeline_for_sha_loader.rb b/lib/gitlab/graphql/loaders/pipeline_for_sha_loader.rb deleted file mode 100644 index 70344392138..00000000000 --- a/lib/gitlab/graphql/loaders/pipeline_for_sha_loader.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module Graphql - module Loaders - class PipelineForShaLoader - attr_accessor :project, :sha - - def initialize(project, sha) - @project, @sha = project, sha - end - - def find_last - BatchLoader::GraphQL.for(sha).batch(key: project) do |shas, loader, args| - pipelines = args[:key].ci_pipelines.latest_for_shas(shas) - - pipelines.each do |pipeline| - loader.call(pipeline.sha, pipeline) - end - end - end - end - end - end -end |