Commit f18f3ed9 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'bvl-rename-loader-for-lfs-oids' into 'master'

Rename `BatchCommitLoader` to `BatchLfsOidLoader`

See merge request gitlab-org/gitlab-ce!29487
parents d8f4779c c70f7ec7
......@@ -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
......
require 'spec_helper'
describe Gitlab::Graphql::Loaders::BatchCommitLoader do
describe Gitlab::Graphql::Loaders::BatchLfsOidLoader do
include GraphqlHelpers
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