Merge pull request #17128 from overleaf/em-filter-out-comments

Do not send comments to project-history when ranges support is disabled

GitOrigin-RevId: 0c5e5e2c98ea3c2830ba4d5d114bf4730b440440
This commit is contained in:
Eric Mc Sween
2024-02-19 09:04:00 +00:00
committed by Copybot
parent 8c339045b3
commit b55bdf7ced
6 changed files with 226 additions and 181 deletions
@@ -396,7 +396,7 @@ describe('UpdateManager', function () {
it('should add metadata to the ops', function () {
this.UpdateManager.promises._addMetadataToHistoryUpdates.should.have.been.calledWith(
this.appliedOps,
this.historyUpdates,
this.pathname,
this.projectHistoryId,
this.lines
@@ -406,12 +406,12 @@ describe('UpdateManager', function () {
it('should push the applied ops into the history queue', function () {
this.ProjectHistoryRedisManager.promises.queueOps.should.have.been.calledWith(
this.project_id,
...this.appliedOps.map(op => JSON.stringify(op))
...this.historyUpdates.map(op => JSON.stringify(op))
)
this.HistoryManager.recordAndFlushHistoryOps.should.have.been.calledWith(
this.project_id,
this.appliedOps,
this.appliedOps.length
this.historyUpdates,
this.historyUpdates.length
)
})
})