Commit c70f7ec7 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Rename `BatchCommitLoader` to `BatchLfsOidLoader`

Since we're not actually  loading commits in that loader, but we're
loading blobs with LFS oids in batch and returning only the oids.
parent 0899537e
...@@ -10,7 +10,7 @@ module Types ...@@ -10,7 +10,7 @@ module Types
field :web_url, GraphQL::STRING_TYPE, null: true field :web_url, GraphQL::STRING_TYPE, null: true
field :lfs_oid, GraphQL::STRING_TYPE, null: true, resolve: -> (blob, args, ctx) do field :lfs_oid, GraphQL::STRING_TYPE, null: true, resolve: -> (blob, args, ctx) do
Gitlab::Graphql::Loaders::BatchCommitLoader.new(blob.repository, blob.id).find Gitlab::Graphql::Loaders::BatchLfsOidLoader.new(blob.repository, blob.id).find
end end
end end
end end
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
module Gitlab module Gitlab
module Graphql module Graphql
module Loaders module Loaders
class BatchCommitLoader class BatchLfsOidLoader
def initialize(repository, blob_id) def initialize(repository, blob_id)
@repository, @blob_id = repository, blob_id @repository, @blob_id = repository, blob_id
end end
......
require 'spec_helper' require 'spec_helper'
describe Gitlab::Graphql::Loaders::BatchCommitLoader do describe Gitlab::Graphql::Loaders::BatchLfsOidLoader do
include GraphqlHelpers include GraphqlHelpers
set(:project) { create(:project, :repository) } set(:project) { create(:project, :repository) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment