Add ranges to resync doc update GitOrigin-RevId: 6998b952028a154c21c8f476e0504496019aea9c
@@ -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,