mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #4801 from overleaf/ae-resync-editable-file
Use a file hash to decide if a file is editable when resyncing GitOrigin-RevId: 57d78b3d73bf2595070a7c7eb7ec97eeece3a163
This commit is contained in:
parent
c14437d2dd
commit
1da0edbcaf
2 changed files with 3 additions and 0 deletions
|
@ -1365,6 +1365,7 @@ const ProjectEntityUpdateHandler = {
|
||||||
file: file.file._id,
|
file: file.file._id,
|
||||||
path: file.path,
|
path: file.path,
|
||||||
url: FileStoreHandler._buildUrl(projectId, file.file._id),
|
url: FileStoreHandler._buildUrl(projectId, file.file._id),
|
||||||
|
_hash: file.file.hash,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
DocumentUpdaterHandler.resyncProjectHistory(
|
DocumentUpdaterHandler.resyncProjectHistory(
|
||||||
|
|
|
@ -1929,6 +1929,7 @@ describe('ProjectEntityUpdateHandler', function () {
|
||||||
{
|
{
|
||||||
file: {
|
file: {
|
||||||
_id: fileId,
|
_id: fileId,
|
||||||
|
hash: '123456',
|
||||||
},
|
},
|
||||||
path: 'universe.png',
|
path: 'universe.png',
|
||||||
},
|
},
|
||||||
|
@ -1970,6 +1971,7 @@ describe('ProjectEntityUpdateHandler', function () {
|
||||||
file: fileId,
|
file: fileId,
|
||||||
path: 'universe.png',
|
path: 'universe.png',
|
||||||
url: `www.filestore.test/${projectId}/${fileId}`,
|
url: `www.filestore.test/${projectId}/${fileId}`,
|
||||||
|
_hash: '123456',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
this.DocumentUpdaterHandler.resyncProjectHistory
|
this.DocumentUpdaterHandler.resyncProjectHistory
|
||||||
|
|
Loading…
Reference in a new issue