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

Rename `BatchCommitLoader` to `BatchLfsOidLoader`

See merge request gitlab-org/gitlab-ce!29487
This commit is contained in:
Jan Provaznik 2019-06-12 09:56:41 +00:00
commit f18f3ed926
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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) }