[PR #1031] [MERGED] Refactor/node body serde #4506

Closed
opened 2026-03-23 21:38:07 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/1031
Author: @appflowy
Created: 9/11/2022
Status: Merged
Merged: 9/11/2022
Merged by: @appflowy

Base: mainHead: refactor/node_body_serde


📝 Commits (3)

  • 1d7d409 chore: add update node body test
  • b7f65ff chore: customize node and operation serde
  • 04ba711 chore: add deserial appflowy editor test

📊 Changes

18 files changed (+922 additions, -200 deletions)

View changed files

📝 shared-lib/Cargo.lock (+1 -0)
📝 shared-lib/lib-ot/Cargo.toml (+4 -5)
📝 shared-lib/lib-ot/src/core/document/attributes.rs (+87 -36)
shared-lib/lib-ot/src/core/document/attributes_serde.rs (+159 -0)
📝 shared-lib/lib-ot/src/core/document/mod.rs (+2 -0)
📝 shared-lib/lib-ot/src/core/document/node.rs (+28 -7)
shared-lib/lib-ot/src/core/document/node_serde.rs (+75 -0)
📝 shared-lib/lib-ot/src/core/document/node_tree.rs (+64 -44)
📝 shared-lib/lib-ot/src/core/document/operation.rs (+38 -53)
📝 shared-lib/lib-ot/src/core/document/operation_serde.rs (+105 -7)
📝 shared-lib/lib-ot/src/core/document/transaction.rs (+58 -22)
📝 shared-lib/lib-ot/src/errors.rs (+1 -0)
📝 shared-lib/lib-ot/src/rich_text/attributes.rs (+0 -13)
shared-lib/lib-ot/tests/node/editor_test.rs (+162 -0)
📝 shared-lib/lib-ot/tests/node/mod.rs (+3 -1)
shared-lib/lib-ot/tests/node/operation_test.rs (+70 -0)
📝 shared-lib/lib-ot/tests/node/script.rs (+28 -8)
📝 shared-lib/lib-ot/tests/node/tree_test.rs (+37 -4)

📄 Description

No description provided


🔄 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/1031 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 9/11/2022 **Status:** ✅ Merged **Merged:** 9/11/2022 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `refactor/node_body_serde` --- ### 📝 Commits (3) - [`1d7d409`](https://github.com/AppFlowy-IO/AppFlowy/commit/1d7d4092a54ead2b4446e38b3ed7ca5a69f4f47b) chore: add update node body test - [`b7f65ff`](https://github.com/AppFlowy-IO/AppFlowy/commit/b7f65ff11d967229778c1c64accb0038a3187c88) chore: customize node and operation serde - [`04ba711`](https://github.com/AppFlowy-IO/AppFlowy/commit/04ba711441728b7c7bfa998bae735f5b61ed8e47) chore: add deserial appflowy editor test ### 📊 Changes **18 files changed** (+922 additions, -200 deletions) <details> <summary>View changed files</summary> 📝 `shared-lib/Cargo.lock` (+1 -0) 📝 `shared-lib/lib-ot/Cargo.toml` (+4 -5) 📝 `shared-lib/lib-ot/src/core/document/attributes.rs` (+87 -36) ➕ `shared-lib/lib-ot/src/core/document/attributes_serde.rs` (+159 -0) 📝 `shared-lib/lib-ot/src/core/document/mod.rs` (+2 -0) 📝 `shared-lib/lib-ot/src/core/document/node.rs` (+28 -7) ➕ `shared-lib/lib-ot/src/core/document/node_serde.rs` (+75 -0) 📝 `shared-lib/lib-ot/src/core/document/node_tree.rs` (+64 -44) 📝 `shared-lib/lib-ot/src/core/document/operation.rs` (+38 -53) 📝 `shared-lib/lib-ot/src/core/document/operation_serde.rs` (+105 -7) 📝 `shared-lib/lib-ot/src/core/document/transaction.rs` (+58 -22) 📝 `shared-lib/lib-ot/src/errors.rs` (+1 -0) 📝 `shared-lib/lib-ot/src/rich_text/attributes.rs` (+0 -13) ➕ `shared-lib/lib-ot/tests/node/editor_test.rs` (+162 -0) 📝 `shared-lib/lib-ot/tests/node/mod.rs` (+3 -1) ➕ `shared-lib/lib-ot/tests/node/operation_test.rs` (+70 -0) 📝 `shared-lib/lib-ot/tests/node/script.rs` (+28 -8) 📝 `shared-lib/lib-ot/tests/node/tree_test.rs` (+37 -4) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 21:38:07 +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#4506
No description provided.