overleaf/services/project-history/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
..
BlobManager Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
ChunkTranslator [project-history] fix convertToDiffUpdates when track delete is moved by previous op (#17681) 2024-04-10 08:04:03 +00:00
DiffGenerator Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
DiffManager Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
DocumentUpdaterManager Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
ErrorRecorder Merge pull request #17731 from overleaf/em-promisify-error-recorder 2024-04-12 08:05:34 +00:00
HistoryStoreManager Merge pull request #16859 from overleaf/jpa-sharelatex-cleanup 2024-02-09 09:04:11 +00:00
HttpController Merge pull request #16545 from overleaf/dp-project-owner-delete-labels 2024-01-23 09:03:08 +00:00
LabelsManager Merge pull request #16545 from overleaf/dp-project-owner-delete-labels 2024-01-23 09:03:08 +00:00
LockManager Merge pull request #12210 from overleaf/em-camel-case-project-history 2023-03-21 09:05:13 +00:00
OperationsCompressor [overleaf-editor-core] Restructure TextOperation hierachy (#16582) 2024-01-24 09:04:18 +00:00
RedisManager Merge pull request #11952 from overleaf/em-batch-redis-reads 2023-02-28 09:04:23 +00:00
RetryManager Merge pull request #16218 from overleaf/csh-issue-11625-mongo-ug-5-project-history 2023-12-18 09:04:07 +00:00
SnapshotManager Merge pull request #17745 from overleaf/em-promisify-snapshot-manager 2024-04-15 08:04:46 +00:00
SummarizedUpdatesManager Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
SyncManager Merge pull request #17729 from overleaf/em-promisify-sync-manager 2024-04-12 08:05:29 +00:00
UpdateCompressor Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
UpdatesManager Merge pull request #17162 from overleaf/em-handle-comments 2024-02-21 09:03:27 +00:00
UpdateTranslator Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
Versions Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
WebApiManager Merge pull request #17735 from overleaf/em-promisify-web-api-manager 2024-04-12 08:05:39 +00:00