overleaf/services/document-updater/test/acceptance/js
Domagoj Kriskovic c4437c69bc Send operations to project-history when accepting tracked changes (#17599)
* added getHistoryOpForAcceptedChange in RangesManager

* rename adjustHistoryUpdatesMetadata to be treated as public

* handle retain op in UpdateTranslator and updateCompressor

* send op to project-history in acceptChanges

* use promises.queueOps

* use ranges in getHistoryOpForAcceptedChange

* using rangesWithChangeRemoved

* acceptChanges acceptance test

* using change.op.hpos

* Revert "using change.op.hpos"

This reverts commit f53333b5099c840ab8fb8bb08df198ad6cfa2d84.

* use getHistoryOpForAcceptedChanges

* fix historyDocLength

* Revert "rename adjustHistoryUpdatesMetadata to be treated as public"

This reverts commit 2ba9443fd040a5c953828584285887c00dc40ea6.

* fix typescript issues

* sort changes before creating history updates

* fix tests

* sinon spy RangesManager.getHistoryUpdatesForAcceptedChanges

* added unit tests

* sort deletes before inserts

* use getDocLength function

* fix docLength calculation

* fix typo

* allow all retains

* fix lint error

* refactor RangesTests

* fix ts error

* fix history_doc_length calculation in RangesManager

* remove retain tracking check from UpdateCompressor

* use makeRanges() properly in tests

* refactor acceptance tests

GitOrigin-RevId: ab12ec53c5f52c20d44827c6037335e048f2edb0
2024-04-17 08:04:17 +00:00
..
helpers Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
ApplyingUpdatesToADocTests.js Merge pull request #16928 from overleaf/em-hpos-hlen 2024-02-14 09:05:02 +00:00
ApplyingUpdatesToProjectStructureTests.js Merge pull request #5860 from overleaf/bg-fix-docupdater-delete-doc 2021-11-23 09:02:35 +00:00
CheckRedisMongoSyncStateTests.js Merge pull request #16659 from overleaf/jpa-loose-progress-assertion 2024-01-24 09:04:41 +00:00
DeletingADocumentTests.js Merge pull request #13264 from overleaf/msm-docupdater-cleanup 2023-07-17 10:24:47 +00:00
DeletingAProjectTests.js Merge pull request #14377 from overleaf/tw-docupdater-flush 2023-09-07 08:04:57 +00:00
FlushingAProjectTests.js Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
FlushingDocsTests.js Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
GettingADocumentTests.js Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
GettingProjectDocsTests.js Merge pull request #5367 from overleaf/jpa-node-handle-callback-err 2021-10-28 08:03:26 +00:00
PeekingADoc.js Merge pull request #5367 from overleaf/jpa-node-handle-callback-err 2021-10-28 08:03:26 +00:00
RangesTests.js Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
SettingADocumentTests.js Merge pull request #13264 from overleaf/msm-docupdater-cleanup 2023-07-17 10:24:47 +00:00
SizeCheckTests.js Merge pull request #5132 from overleaf/bg-fix-size-check 2021-09-21 08:02:55 +00:00