mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02: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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user