[PR #859] [MERGED] Feat: document model in rust #4394

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/859
Author: @vincentdchan
Created: 8/16/2022
Status: Merged
Merged: 8/24/2022
Merged by: @appflowy

Base: mainHead: feat/document-model-in-rust


📝 Commits (10+)

📊 Changes

15 files changed (+839 additions, -14 deletions)

View changed files

📝 frontend/app_flowy/packages/appflowy_editor/lib/src/operation/operation.dart (+11 -11)
📝 frontend/app_flowy/packages/appflowy_editor/test/legacy/operation_test.dart (+2 -2)
📝 frontend/rust-lib/Cargo.lock (+7 -0)
📝 shared-lib/Cargo.lock (+7 -0)
📝 shared-lib/lib-ot/Cargo.toml (+1 -0)
shared-lib/lib-ot/src/core/document/attributes.rs (+22 -0)
shared-lib/lib-ot/src/core/document/document.rs (+211 -0)
shared-lib/lib-ot/src/core/document/document_operation.rs (+215 -0)
shared-lib/lib-ot/src/core/document/mod.rs (+13 -0)
shared-lib/lib-ot/src/core/document/node.rs (+48 -0)
shared-lib/lib-ot/src/core/document/position.rs (+46 -0)
shared-lib/lib-ot/src/core/document/transaction.rs (+106 -0)
📝 shared-lib/lib-ot/src/core/mod.rs (+2 -0)
📝 shared-lib/lib-ot/src/errors.rs (+2 -1)
📝 shared-lib/lib-ot/tests/main.rs (+146 -0)

📄 Description

This PR is implementing the document model in Rust.

Missing:

  • Unit tests
  • Documentations
  • Operation transforming.

🔄 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/859 **Author:** [@vincentdchan](https://github.com/vincentdchan) **Created:** 8/16/2022 **Status:** ✅ Merged **Merged:** 8/24/2022 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feat/document-model-in-rust` --- ### 📝 Commits (10+) - [`7d404ff`](https://github.com/AppFlowy-IO/AppFlowy/commit/7d404ff0dadfec5ba96302c8f853aea0951f11e7) feat: document model in rust - [`2466b3e`](https://github.com/AppFlowy-IO/AppFlowy/commit/2466b3eebcd51d927e63e239961a282fe2fcfbcd) feat: add operations of the document - [`aa90613`](https://github.com/AppFlowy-IO/AppFlowy/commit/aa90613bf65a61691d64d8ba7b25c1d3c9e3a61c) feat: transaction built der - [`bb7c7e4`](https://github.com/AppFlowy-IO/AppFlowy/commit/bb7c7e4f41fe48c806fb2710cda3e7599adef460) feat: apply operation - [`ba160c8`](https://github.com/AppFlowy-IO/AppFlowy/commit/ba160c8026dec010f3ca1fb6c38a4e9dfe3728e7) feat: compose attributes - [`c207bf3`](https://github.com/AppFlowy-IO/AppFlowy/commit/c207bf36794ffb95449b92de26687d6c7c83767a) feat: apply transactions - [`8401fa0`](https://github.com/AppFlowy-IO/AppFlowy/commit/8401fa0983cd49dc4acb5ae22c5b27c2530ab8dc) feat: update attributes - [`61d181b`](https://github.com/AppFlowy-IO/AppFlowy/commit/61d181b22864849aa939f9152dc956a187eb3652) feat: vec to position convertion - [`c61b4d0`](https://github.com/AppFlowy-IO/AppFlowy/commit/c61b4d08656696c3f6401833fe264e6d429e59bc) fix: CI format error - [`0def48d`](https://github.com/AppFlowy-IO/AppFlowy/commit/0def48d0ca917f3194d2aa563127e6a4726be727) feat: transform patht ### 📊 Changes **15 files changed** (+839 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `frontend/app_flowy/packages/appflowy_editor/lib/src/operation/operation.dart` (+11 -11) 📝 `frontend/app_flowy/packages/appflowy_editor/test/legacy/operation_test.dart` (+2 -2) 📝 `frontend/rust-lib/Cargo.lock` (+7 -0) 📝 `shared-lib/Cargo.lock` (+7 -0) 📝 `shared-lib/lib-ot/Cargo.toml` (+1 -0) ➕ `shared-lib/lib-ot/src/core/document/attributes.rs` (+22 -0) ➕ `shared-lib/lib-ot/src/core/document/document.rs` (+211 -0) ➕ `shared-lib/lib-ot/src/core/document/document_operation.rs` (+215 -0) ➕ `shared-lib/lib-ot/src/core/document/mod.rs` (+13 -0) ➕ `shared-lib/lib-ot/src/core/document/node.rs` (+48 -0) ➕ `shared-lib/lib-ot/src/core/document/position.rs` (+46 -0) ➕ `shared-lib/lib-ot/src/core/document/transaction.rs` (+106 -0) 📝 `shared-lib/lib-ot/src/core/mod.rs` (+2 -0) 📝 `shared-lib/lib-ot/src/errors.rs` (+2 -1) 📝 `shared-lib/lib-ot/tests/main.rs` (+146 -0) </details> ### 📄 Description This PR is implementing the document model in Rust. Missing: - Unit tests - Documentations - Operation transforming. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 21:37:36 +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#4394
No description provided.