[PR #1392] [MERGED] Feat/op compose #4706

Closed
opened 2026-03-23 22:15:28 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1392
Author: @appflowy
Created: 10/29/2022
Status: Merged
Merged: 10/29/2022
Merged by: @appflowy

Base: mainHead: feat/op_compose


📝 Commits (5)

  • 84f03cc chore: transaction compose
  • 60ccc4e chore: serde node operations
  • 906b7bf chore: merge operation
  • 3bf49cf chore: add insert operation test
  • cf31345 chore: insert empty node when the node's parent not exist

📊 Changes

23 files changed (+1336 additions, -686 deletions)

View changed files

📝 frontend/rust-lib/flowy-document/src/editor/document.rs (+2 -4)
📝 frontend/rust-lib/flowy-document/src/editor/document_serde.rs (+23 -16)
📝 frontend/rust-lib/flowy-document/tests/editor/serde_test.rs (+1 -1)
📝 frontend/rust-lib/flowy-document/tests/new_document/script.rs (+2 -2)
📝 frontend/rust-lib/flowy-folder/src/services/workspace/event_handler.rs (+0 -1)
📝 shared-lib/lib-ot/src/core/attributes/attribute.rs (+8 -1)
📝 shared-lib/lib-ot/src/core/node_tree/mod.rs (+1 -0)
📝 shared-lib/lib-ot/src/core/node_tree/node.rs (+57 -6)
📝 shared-lib/lib-ot/src/core/node_tree/operation.rs (+147 -36)
📝 shared-lib/lib-ot/src/core/node_tree/operation_serde.rs (+34 -181)
📝 shared-lib/lib-ot/src/core/node_tree/path.rs (+1 -1)
📝 shared-lib/lib-ot/src/core/node_tree/transaction.rs (+77 -83)
📝 shared-lib/lib-ot/src/core/node_tree/tree.rs (+94 -26)
📝 shared-lib/lib-ot/src/errors.rs (+4 -1)
📝 shared-lib/lib-ot/tests/node/mod.rs (+4 -1)
shared-lib/lib-ot/tests/node/operation_delete_test.rs (+178 -0)
shared-lib/lib-ot/tests/node/operation_delta_test.rs (+41 -0)
shared-lib/lib-ot/tests/node/operation_insert_test.rs (+460 -0)
shared-lib/lib-ot/tests/node/operation_test.rs (+0 -170)
📝 shared-lib/lib-ot/tests/node/script.rs (+51 -15)

...and 3 more files

📄 Description

Merge multiple operations into one if possible


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/1392 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 10/29/2022 **Status:** ✅ Merged **Merged:** 10/29/2022 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feat/op_compose` --- ### 📝 Commits (5) - [`84f03cc`](https://github.com/AppFlowy-IO/AppFlowy/commit/84f03cc6c238c9d6a2f4150f87f35fea3ed6ea88) chore: transaction compose - [`60ccc4e`](https://github.com/AppFlowy-IO/AppFlowy/commit/60ccc4e91d33e20b63e64d55499957cf62bbad39) chore: serde node operations - [`906b7bf`](https://github.com/AppFlowy-IO/AppFlowy/commit/906b7bf58d39375612905e112d7c10bb84bdd710) chore: merge operation - [`3bf49cf`](https://github.com/AppFlowy-IO/AppFlowy/commit/3bf49cf78cc5741ae79ca4b87fd2a4f8cd3201e9) chore: add insert operation test - [`cf31345`](https://github.com/AppFlowy-IO/AppFlowy/commit/cf31345ecd5f90ef39d45b3eaec9b9dc76100e5c) chore: insert empty node when the node's parent not exist ### 📊 Changes **23 files changed** (+1336 additions, -686 deletions) <details> <summary>View changed files</summary> 📝 `frontend/rust-lib/flowy-document/src/editor/document.rs` (+2 -4) 📝 `frontend/rust-lib/flowy-document/src/editor/document_serde.rs` (+23 -16) 📝 `frontend/rust-lib/flowy-document/tests/editor/serde_test.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-document/tests/new_document/script.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-folder/src/services/workspace/event_handler.rs` (+0 -1) 📝 `shared-lib/lib-ot/src/core/attributes/attribute.rs` (+8 -1) 📝 `shared-lib/lib-ot/src/core/node_tree/mod.rs` (+1 -0) 📝 `shared-lib/lib-ot/src/core/node_tree/node.rs` (+57 -6) 📝 `shared-lib/lib-ot/src/core/node_tree/operation.rs` (+147 -36) 📝 `shared-lib/lib-ot/src/core/node_tree/operation_serde.rs` (+34 -181) 📝 `shared-lib/lib-ot/src/core/node_tree/path.rs` (+1 -1) 📝 `shared-lib/lib-ot/src/core/node_tree/transaction.rs` (+77 -83) 📝 `shared-lib/lib-ot/src/core/node_tree/tree.rs` (+94 -26) 📝 `shared-lib/lib-ot/src/errors.rs` (+4 -1) 📝 `shared-lib/lib-ot/tests/node/mod.rs` (+4 -1) ➕ `shared-lib/lib-ot/tests/node/operation_delete_test.rs` (+178 -0) ➕ `shared-lib/lib-ot/tests/node/operation_delta_test.rs` (+41 -0) ➕ `shared-lib/lib-ot/tests/node/operation_insert_test.rs` (+460 -0) ➖ `shared-lib/lib-ot/tests/node/operation_test.rs` (+0 -170) 📝 `shared-lib/lib-ot/tests/node/script.rs` (+51 -15) _...and 3 more files_ </details> ### 📄 Description Merge multiple operations into one if possible --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:15:28 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#4706
No description provided.