overleaf/services/document-updater/test/unit/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
..
DiffCodec Merge pull request #17678 from overleaf/em-diff-as-share-js-ops 2024-04-03 08:04:09 +00:00
DispatchManager Merge pull request #5367 from overleaf/jpa-node-handle-callback-err 2021-10-28 08:03:26 +00:00
DocumentManager Merge pull request #17711 from overleaf/em-resync-tracked-deletes 2024-04-09 08:04:40 +00:00
HistoryManager Merge pull request #13264 from overleaf/msm-docupdater-cleanup 2023-07-17 10:24:47 +00:00
HttpController Send operations to project-history when resolving/unresolving comments (#17540) 2024-04-10 08:04:08 +00:00
Limits Merge pull request #5132 from overleaf/bg-fix-size-check 2021-09-21 08:02:55 +00:00
LockManager Merge branch 'bg-socket-leak-detection' 2023-05-24 08:04:01 +00:00
PersistenceManager Merge pull request #16982 from overleaf/em-history-ranges-support 2024-02-12 09:03:30 +00:00
ProjectHistoryRedisManager Merge pull request #17713 from overleaf/em-resync-include-ranges 2024-04-09 08:04:44 +00:00
ProjectManager Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
RangesManager Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
RateLimitManager [misc] run format_fix and lint:fix 2021-07-13 12:04:42 +01:00
RealTimeRedisManager Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
RedisManager Merge pull request #16928 from overleaf/em-hpos-hlen 2024-02-14 09:05:02 +00:00
ShareJS Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
ShareJsDB [misc] run format_fix and lint:fix 2021-07-13 12:04:42 +01:00
ShareJsUpdateManager [misc] run format_fix and lint:fix 2021-07-13 12:04:42 +01:00
UpdateManager Merge pull request #17686 from overleaf/em-promisify-document-manager 2024-04-03 08:04:13 +00:00
UtilsTests.js Merge pull request #17711 from overleaf/em-resync-tracked-deletes 2024-04-09 08:04:40 +00:00