[PR #6671] [MERGED] chore: optimize import appflowy data #7517

Closed
opened 2026-03-23 23:19:59 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6671
Author: @appflowy
Created: 10/30/2024
Status: Merged
Merged: 10/31/2024
Merged by: @appflowy

Base: mainHead: optimize_import_appflowy_data


📝 Commits (5)

  • 696af8e chore: only import user workspace
  • 53443a6 chore: apply migration if need
  • 4ff9559 chore remove unused code
  • 02c9f32 chore: store first time installed version
  • 747ed52 chore: clippy

📊 Changes

32 files changed (+493 additions, -1120 deletions)

View changed files

📝 frontend/appflowy_flutter/pubspec.lock (+6 -6)
📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+8 -8)
📝 frontend/appflowy_tauri/src-tauri/Cargo.toml (+8 -8)
📝 frontend/appflowy_web_app/src-tauri/Cargo.lock (+8 -8)
📝 frontend/appflowy_web_app/src-tauri/Cargo.toml (+8 -8)
📝 frontend/rust-lib/Cargo.lock (+11 -8)
📝 frontend/rust-lib/Cargo.toml (+8 -8)
📝 frontend/rust-lib/collab-integrate/src/collab_builder.rs (+59 -48)
📝 frontend/rust-lib/flowy-core/Cargo.toml (+1 -1)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps.rs (+12 -9)
📝 frontend/rust-lib/flowy-database2/src/manager.rs (+67 -53)
📝 frontend/rust-lib/flowy-document/src/manager.rs (+9 -4)
📝 frontend/rust-lib/flowy-folder/src/manager.rs (+7 -4)
frontend/rust-lib/flowy-user/src/anon_user/migrate_anon_user_collab.rs (+0 -480)
frontend/rust-lib/flowy-user/src/anon_user/mod.rs (+0 -3)
frontend/rust-lib/flowy-user/src/anon_user/sync_supabase_user_collab.rs (+0 -357)
📝 frontend/rust-lib/flowy-user/src/event_handler.rs (+7 -3)
📝 frontend/rust-lib/flowy-user/src/lib.rs (+0 -1)
frontend/rust-lib/flowy-user/src/migrations/doc_key_with_workspace.rs (+50 -0)
📝 frontend/rust-lib/flowy-user/src/migrations/document_empty_content.rs (+23 -6)

...and 12 more files

📄 Description

  1. Run migration if need by comparing the install app version
  2. add workspace id as prefix for rockdb key

🔄 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/6671 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 10/30/2024 **Status:** ✅ Merged **Merged:** 10/31/2024 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `optimize_import_appflowy_data` --- ### 📝 Commits (5) - [`696af8e`](https://github.com/AppFlowy-IO/AppFlowy/commit/696af8ec72ab9bfb4892f4017d0537650d876a3e) chore: only import user workspace - [`53443a6`](https://github.com/AppFlowy-IO/AppFlowy/commit/53443a6a1a0b39e17f316656d6090e46dccf6d6d) chore: apply migration if need - [`4ff9559`](https://github.com/AppFlowy-IO/AppFlowy/commit/4ff955901fe783f4df60bfe8db32795b7a29dca3) chore remove unused code - [`02c9f32`](https://github.com/AppFlowy-IO/AppFlowy/commit/02c9f32b427ed2fa552d95d9259ecae6b4a15dba) chore: store first time installed version - [`747ed52`](https://github.com/AppFlowy-IO/AppFlowy/commit/747ed525e6b1d6ce0102b3a0176079d9c8cc1018) chore: clippy ### 📊 Changes **32 files changed** (+493 additions, -1120 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/pubspec.lock` (+6 -6) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+8 -8) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.toml` (+8 -8) 📝 `frontend/appflowy_web_app/src-tauri/Cargo.lock` (+8 -8) 📝 `frontend/appflowy_web_app/src-tauri/Cargo.toml` (+8 -8) 📝 `frontend/rust-lib/Cargo.lock` (+11 -8) 📝 `frontend/rust-lib/Cargo.toml` (+8 -8) 📝 `frontend/rust-lib/collab-integrate/src/collab_builder.rs` (+59 -48) 📝 `frontend/rust-lib/flowy-core/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps.rs` (+12 -9) 📝 `frontend/rust-lib/flowy-database2/src/manager.rs` (+67 -53) 📝 `frontend/rust-lib/flowy-document/src/manager.rs` (+9 -4) 📝 `frontend/rust-lib/flowy-folder/src/manager.rs` (+7 -4) ➖ `frontend/rust-lib/flowy-user/src/anon_user/migrate_anon_user_collab.rs` (+0 -480) ➖ `frontend/rust-lib/flowy-user/src/anon_user/mod.rs` (+0 -3) ➖ `frontend/rust-lib/flowy-user/src/anon_user/sync_supabase_user_collab.rs` (+0 -357) 📝 `frontend/rust-lib/flowy-user/src/event_handler.rs` (+7 -3) 📝 `frontend/rust-lib/flowy-user/src/lib.rs` (+0 -1) ➕ `frontend/rust-lib/flowy-user/src/migrations/doc_key_with_workspace.rs` (+50 -0) 📝 `frontend/rust-lib/flowy-user/src/migrations/document_empty_content.rs` (+23 -6) _...and 12 more files_ </details> ### 📄 Description 1. Run migration if need by comparing the install app version 2. add workspace id as prefix for rockdb key --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:19:59 +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#7517
No description provided.