mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #17713 from overleaf/em-resync-include-ranges
Add ranges to resync doc update GitOrigin-RevId: 6998b952028a154c21c8f476e0504496019aea9c
This commit is contained in:
parent
8e662b33fb
commit
5d2aed3b1c
2 changed files with 6 additions and 0 deletions
|
@ -168,6 +168,11 @@ const ProjectHistoryRedisManager = {
|
|||
ts: new Date(),
|
||||
},
|
||||
}
|
||||
|
||||
if (historyRangesSupport) {
|
||||
projectUpdate.resyncDocContent.ranges = ranges
|
||||
}
|
||||
|
||||
const jsonUpdate = JSON.stringify(projectUpdate)
|
||||
// Do an optimised size check on the docLines using the serialised
|
||||
// project update length as an upper bound
|
||||
|
|
|
@ -260,6 +260,7 @@ describe('ProjectHistoryRedisManager', function () {
|
|||
resyncDocContent: {
|
||||
content: 'onedeleted\ntwo',
|
||||
version: this.version,
|
||||
ranges: this.ranges,
|
||||
},
|
||||
projectHistoryId: this.projectHistoryId,
|
||||
path: this.pathname,
|
||||
|
|
Loading…
Reference in a new issue