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.
This commit is contained in:
parent
0899537e2d
commit
c70f7ec77b
3 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ module Types
|
|||
|
||||
field :web_url, GraphQL::STRING_TYPE, null: true
|
||||
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
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
module Gitlab
|
||||
module Graphql
|
||||
module Loaders
|
||||
class BatchCommitLoader
|
||||
class BatchLfsOidLoader
|
||||
def initialize(repository, blob_id)
|
||||
@repository, @blob_id = repository, blob_id
|
||||
end
|
|
@ -1,6 +1,6 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Graphql::Loaders::BatchCommitLoader do
|
||||
describe Gitlab::Graphql::Loaders::BatchLfsOidLoader do
|
||||
include GraphqlHelpers
|
||||
|
||||
set(:project) { create(:project, :repository) }
|
Loading…
Reference in a new issue