Merge pull request #22320 from overleaf/revert-22213-ar-avoid-duplicate-blob-writes
Revert "Avoid duplicate blob writes" GitOrigin-RevId: 9f86bcea654cd3fa5f66fbdf42080e7f6e2861a7
This commit is contained in:
@@ -1132,7 +1132,6 @@ describe('DocumentUpdaterHandler', function () {
|
||||
hash: undefined,
|
||||
ranges: undefined,
|
||||
metadata: undefined,
|
||||
createdBlob: false,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1185,7 +1184,6 @@ describe('DocumentUpdaterHandler', function () {
|
||||
historyRangesSupport: false,
|
||||
hash: '12345',
|
||||
ranges: undefined,
|
||||
createdBlob: false,
|
||||
metadata: undefined,
|
||||
},
|
||||
]
|
||||
@@ -1298,7 +1296,6 @@ describe('DocumentUpdaterHandler', function () {
|
||||
hash: undefined,
|
||||
ranges: undefined,
|
||||
metadata: undefined,
|
||||
createdBlob: false,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1401,7 +1398,6 @@ describe('DocumentUpdaterHandler', function () {
|
||||
hash: undefined,
|
||||
ranges: this.ranges,
|
||||
metadata: undefined,
|
||||
createdBlob: false,
|
||||
},
|
||||
]
|
||||
|
||||
@@ -1448,7 +1444,6 @@ describe('DocumentUpdaterHandler', function () {
|
||||
hash: undefined,
|
||||
ranges: this.ranges,
|
||||
metadata: undefined,
|
||||
createdBlob: false,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -105,19 +105,16 @@ describe('ProjectDuplicator', function () {
|
||||
]
|
||||
this.fileEntries = [
|
||||
{
|
||||
createdBlob: false,
|
||||
path: this.file0Path,
|
||||
file: this.newFile0,
|
||||
url: this.filestoreUrl,
|
||||
},
|
||||
{
|
||||
createdBlob: false,
|
||||
path: this.file1Path,
|
||||
file: this.newFile1,
|
||||
url: this.filestoreUrl,
|
||||
},
|
||||
{
|
||||
createdBlob: true,
|
||||
path: this.file2Path,
|
||||
file: this.newFile2,
|
||||
url: this.filestoreUrl,
|
||||
|
||||
@@ -58,12 +58,7 @@ describe('ProjectUploadManager', function () {
|
||||
},
|
||||
]
|
||||
this.fileEntries = [
|
||||
{
|
||||
file: this.file,
|
||||
path: `/${this.file.name}`,
|
||||
url: this.fileStoreUrl,
|
||||
createdBlob: true,
|
||||
},
|
||||
{ file: this.file, path: `/${this.file.name}`, url: this.fileStoreUrl },
|
||||
]
|
||||
|
||||
this.fs = {
|
||||
@@ -99,11 +94,9 @@ describe('ProjectUploadManager', function () {
|
||||
}
|
||||
this.FileStoreHandler = {
|
||||
promises: {
|
||||
uploadFileFromDiskWithHistoryId: sinon.stub().resolves({
|
||||
fileRef: this.file,
|
||||
url: this.fileStoreUrl,
|
||||
createdBlob: true,
|
||||
}),
|
||||
uploadFileFromDiskWithHistoryId: sinon
|
||||
.stub()
|
||||
.resolves({ fileRef: this.file, url: this.fileStoreUrl }),
|
||||
},
|
||||
}
|
||||
this.FileSystemImportManager = {
|
||||
|
||||
Reference in New Issue
Block a user