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:
commit
f18f3ed926
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