Skip to content

Conversation

@gohabereg
Copy link
Member

@gohabereg gohabereg commented Apr 10, 2025

This pull request includes changes to the DocumentManager and OTServer classes to improve the handling of asynchronous operations. The main changes involve modifying the process method to ensure operations are processed sequentially and updating the tests accordingly.

Improvements to DocumentManager:

  • packages/ot-server/src/DocumentManager.ts: Added a new private member #operationInProcessing to track the currently processed operation. Modified the process method to await the completion of the previous operation before processing the new one. Added a new method #processNextOperation to handle the actual processing of operations. [1] [2] [3]

Updates to tests:

Updates to OTServer:

  • packages/ot-server/src/OTServer.ts: Modified the #onOperation method to be asynchronous and to await the processing of operations by the DocumentManager. Updated the handling of operation messages to use await for the process method. [1] [2] [3]

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

⏭️ No files to mutate for ./packages/model

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

⏭️ No files to mutate for ./packages/dom-adapters

@github-actions
Copy link

Coverage report for ./packages/dom-adapters

St.
Category Percentage Covered / Total
🟢 Statements 100% 0/0
🟢 Branches 100% 0/0
🟢 Functions 100% 0/0
🟢 Lines 100% 0/0

Test suite run success

1 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 66a76bd

@github-actions
Copy link

Coverage report for ./packages/model

St.
Category Percentage Covered / Total
🟢 Statements 99.76% 815/817
🟢 Branches 98.65% 220/223
🟢 Functions 98.5% 197/200
🟢 Lines 99.75% 785/787

Test suite run success

418 tests passing in 25 suites.

Report generated by 🧪jest coverage report action from 66a76bd

@github-actions
Copy link

Coverage report for ./packages/ot-server

St.
Category Percentage Covered / Total
🟡 Statements
73.33% (+5.33% 🔼)
22/30
🔴 Branches 20% 1/5
🟢 Functions
85.71% (+2.38% 🔼)
6/7
🟡 Lines
71.43% (+6.21% 🔼)
20/28

Test suite run success

4 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 66a76bd

@github-actions
Copy link

Coverage report for ./packages/collaboration-manager

St.
Category Percentage Covered / Total
🟡 Statements 68.35% 162/237
🟢 Branches 81.33% 61/75
🔴 Functions 58.82% 20/34
🟡 Lines 68.38% 160/234

Test suite run success

67 tests passing in 4 suites.

Report generated by 🧪jest coverage report action from 66a76bd

@gohabereg gohabereg enabled auto-merge April 10, 2025 13:16
@gohabereg gohabereg disabled auto-merge April 10, 2025 13:16
@gohabereg gohabereg added this pull request to the merge queue Apr 10, 2025
Merged via the queue into main with commit e3bf80c Apr 10, 2025
18 checks passed
@gohabereg gohabereg deleted the feature/ot-server-async-processing branch April 10, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants