overleaf/services/project-history/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
..
BlobManager.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
ChunkTranslator.js [overleaf-editor-core+project-history] Clean up TrackedChangeList api (#17740) 2024-04-17 08:04:13 +00:00
DiffGenerator.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
DiffManager.js Merge pull request #17251 from overleaf/tm-raise-history-diff-max-chunks 2024-02-22 09:05:20 +00:00
DocumentUpdaterManager.js Merge pull request #12210 from overleaf/em-camel-case-project-history 2023-03-21 09:05:13 +00:00
ErrorRecorder.js Merge pull request #17843 from overleaf/em-fix-422-resyncs 2024-04-15 08:04:51 +00:00
Errors.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
FileTreeDiffGenerator.js Merge pull request #14235 from overleaf/ii-history-project-diff 2023-08-17 08:02:54 +00:00
FlushManager.js Merge pull request #17525 from overleaf/ae-upgrade-prettier 2024-03-26 09:04:05 +00:00
HashManager.js Merge pull request #17729 from overleaf/em-promisify-sync-manager 2024-04-12 08:05:29 +00:00
HealthChecker.js Merge pull request #16218 from overleaf/csh-issue-11625-mongo-ug-5-project-history 2023-12-18 09:04:07 +00:00
HistoryApiManager.js Merge pull request #12210 from overleaf/em-camel-case-project-history 2023-03-21 09:05:13 +00:00
HistoryStoreManager.js Merge pull request #17745 from overleaf/em-promisify-snapshot-manager 2024-04-15 08:04:46 +00:00
HttpController.js Merge pull request #16545 from overleaf/dp-project-owner-delete-labels 2024-01-23 09:03:08 +00:00
LabelsManager.js Merge pull request #16669 from overleaf/dp-decaf 2024-02-06 09:03:02 +00:00
LargeFileManager.js Merge pull request #11160 from overleaf/msm-replace-uuid-crypto 2023-01-18 15:07:58 +00:00
LocalFileWriter.js Merge pull request #12831 from overleaf/jpa-project-history-pipe 2023-05-09 08:04:14 +00:00
LockManager.js Merge pull request #17729 from overleaf/em-promisify-sync-manager 2024-04-12 08:05:29 +00:00
mongodb.js Merge pull request #16873 from overleaf/dp-mongo-command-monitoring 2024-02-23 09:02:55 +00:00
OperationsCompressor.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
Profiler.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
RedisManager.js Merge pull request #11952 from overleaf/em-batch-redis-reads 2023-02-28 09:04:23 +00:00
RetryManager.js Merge pull request #17843 from overleaf/em-fix-422-resyncs 2024-04-15 08:04:51 +00:00
Router.js Merge pull request #16545 from overleaf/dp-project-owner-delete-labels 2024-01-23 09:03:08 +00:00
server.js Merge pull request #15241 from overleaf/em-gcp-opentelemetry 2023-10-19 08:02:52 +00:00
SnapshotManager.js Merge pull request #17745 from overleaf/em-promisify-snapshot-manager 2024-04-15 08:04:46 +00:00
SummarizedUpdatesManager.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
SyncManager.js Merge pull request #17729 from overleaf/em-promisify-sync-manager 2024-04-12 08:05:29 +00:00
types.ts Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
UpdateCompressor.js Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
UpdatesProcessor.js Merge pull request #17735 from overleaf/em-promisify-web-api-manager 2024-04-12 08:05:39 +00:00
UpdateTranslator.js Send operations to project-history when accepting tracked changes (#17599) 2024-04-17 08:04:17 +00:00
Validation.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
Versions.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
WebApiManager.js Merge pull request #17735 from overleaf/em-promisify-web-api-manager 2024-04-12 08:05:39 +00:00