overleaf/services/document-updater/app/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
..
sharejs Merge pull request #17525 from overleaf/ae-upgrade-prettier 2024-03-26 09:04:05 +00:00
DeleteQueueManager.js Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
DiffCodec.js Merge pull request #17678 from overleaf/em-diff-as-share-js-ops 2024-04-03 08:04:09 +00:00
DispatchManager.js Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
DocumentManager.js Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
Errors.js Merge pull request #8729 from overleaf/bg-return-file-too-large 2022-07-07 08:03:23 +00:00
HistoryManager.js Merge pull request #16644 from overleaf/em-promisify-update-manager 2024-01-30 16:49:23 +00:00
HttpController.js Send operations to project-history when resolving/unresolving comments (#17540) 2024-04-10 08:04:08 +00:00
Limits.js Merge pull request #5132 from overleaf/bg-fix-size-check 2021-09-21 08:02:55 +00:00
LockManager.js Merge pull request #16644 from overleaf/em-promisify-update-manager 2024-01-30 16:49:23 +00:00
LoggerSerializers.js Merge pull request #9020 from overleaf/bg-decaff-guard 2022-07-29 08:03:23 +00:00
Metrics.js [misc] bump metrics module to 3.4.1 2020-11-25 11:57:19 +00:00
mongodb.js Merge pull request #16873 from overleaf/dp-mongo-command-monitoring 2024-02-23 09:02:55 +00:00
PersistenceManager.js Merge pull request #16982 from overleaf/em-history-ranges-support 2024-02-12 09:03:30 +00:00
Profiler.js Merge pull request #5338 from overleaf/bg-update-docupdater-logger 2021-10-07 08:04:03 +00:00
ProjectFlusher.js Merge pull request #16589 from overleaf/jpa-script-redis-mongo-mismatch 2024-01-24 09:03:59 +00:00
ProjectHistoryRedisManager.js Merge pull request #17713 from overleaf/em-resync-include-ranges 2024-04-09 08:04:44 +00:00
ProjectManager.js Merge pull request #16589 from overleaf/jpa-script-redis-mongo-mismatch 2024-01-24 09:03:59 +00:00
RangesManager.js Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
RateLimitManager.js Merge pull request #5367 from overleaf/jpa-node-handle-callback-err 2021-10-28 08:03:26 +00:00
RealTimeRedisManager.js Merge pull request #16644 from overleaf/em-promisify-update-manager 2024-01-30 16:49:23 +00:00
RedisManager.js Merge pull request #16928 from overleaf/em-hpos-hlen 2024-02-14 09:05:02 +00:00
ShareJsDB.js Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
ShareJsUpdateManager.js Merge pull request #16644 from overleaf/em-promisify-update-manager 2024-01-30 16:49:23 +00:00
SnapshotManager.js Merge pull request #16644 from overleaf/em-promisify-update-manager 2024-01-30 16:49:23 +00:00
types.ts Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
UpdateKeys.js Merge pull request #12206 from overleaf/em-camel-case-docupdater 2023-03-22 09:04:37 +00:00
UpdateManager.js Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
Utils.js Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00