[PR #5201] [MERGED] chore: checking workspace state consistent after switching workspace #6700

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/5201
Author: @appflowy
Created: 4/25/2024
Status: Merged
Merged: 4/26/2024
Merged by: @appflowy

Base: mainHead: switch_workspace


📝 Commits (10+)

  • 666e5f5 refactor: getting workspace id
  • ff37f32 refactor: check workspace id is match for http response
  • 6826941 refactor: check http repsonse in valid by checing the workspace id
  • ace7ffe chore: update log
  • 52b1ef8 chore: fix test
  • ded8005 chore: fix test
  • 1f91f4a chore: add test
  • 00f6800 chore: update test
  • 7c7dffa chore: update test
  • 66daad0 chore: update test

📊 Changes

51 files changed (+975 additions, -570 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/startup/deps_resolver.dart (+0 -6)
📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+17 -17)
📝 frontend/appflowy_tauri/src-tauri/Cargo.toml (+8 -8)
📝 frontend/appflowy_web/wasm-libs/Cargo.lock (+18 -17)
📝 frontend/appflowy_web/wasm-libs/Cargo.toml (+8 -8)
📝 frontend/appflowy_web/wasm-libs/af-wasm/Cargo.toml (+1 -1)
📝 frontend/appflowy_web/wasm-libs/af-wasm/src/core.rs (+17 -5)
📝 frontend/appflowy_web_app/src-tauri/Cargo.lock (+17 -17)
📝 frontend/appflowy_web_app/src-tauri/Cargo.toml (+8 -8)
📝 frontend/rust-lib/Cargo.lock (+18 -17)
📝 frontend/rust-lib/Cargo.toml (+8 -8)
📝 frontend/rust-lib/collab-integrate/src/collab_builder.rs (+62 -51)
📝 frontend/rust-lib/collab-integrate/src/native/plugin_provider.rs (+30 -2)
📝 frontend/rust-lib/event-integration/Cargo.toml (+3 -2)
📝 frontend/rust-lib/event-integration/src/folder_event.rs (+2 -1)
📝 frontend/rust-lib/event-integration/tests/user/af_cloud_test/util.rs (+1 -1)
📝 frontend/rust-lib/event-integration/tests/user/af_cloud_test/workspace_test.rs (+140 -7)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/collab_deps.rs (+25 -1)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/database_deps.rs (+20 -10)
📝 frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps.rs (+16 -12)

...and 31 more files

📄 Description

  1. Retrieve Workspace ID: Obtain the workspace ID from a single source of truth.
  2. Validate Workspace ID on HTTP Response: When an HTTP request completes, check if the workspace ID from the request matches the current user's workspace ID. Discard the response if the IDs do not match to prevent processing outdated or incorrect data.

🔄 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/5201 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 4/25/2024 **Status:** ✅ Merged **Merged:** 4/26/2024 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `switch_workspace` --- ### 📝 Commits (10+) - [`666e5f5`](https://github.com/AppFlowy-IO/AppFlowy/commit/666e5f5ba5b370c7256b718e83646a697a306bf0) refactor: getting workspace id - [`ff37f32`](https://github.com/AppFlowy-IO/AppFlowy/commit/ff37f329805f40f96b3755183fc653f396073adc) refactor: check workspace id is match for http response - [`6826941`](https://github.com/AppFlowy-IO/AppFlowy/commit/682694123b6b60d587a59cd35ddb2e876fe906a0) refactor: check http repsonse in valid by checing the workspace id - [`ace7ffe`](https://github.com/AppFlowy-IO/AppFlowy/commit/ace7ffe2a593fb659c8e4d063490bd261865d1c0) chore: update log - [`52b1ef8`](https://github.com/AppFlowy-IO/AppFlowy/commit/52b1ef825a3db2ba0171fe80eb8a3aee06c2e7ca) chore: fix test - [`ded8005`](https://github.com/AppFlowy-IO/AppFlowy/commit/ded800548baff6cba88d42d8e9ffa8da8727972d) chore: fix test - [`1f91f4a`](https://github.com/AppFlowy-IO/AppFlowy/commit/1f91f4afe0438c5ce677ec8b2bb3d5610ad55c27) chore: add test - [`00f6800`](https://github.com/AppFlowy-IO/AppFlowy/commit/00f6800d716723ea32d764c7903b7bb0352f8b2d) chore: update test - [`7c7dffa`](https://github.com/AppFlowy-IO/AppFlowy/commit/7c7dffa832a2f6885924b31d087a728c94286075) chore: update test - [`66daad0`](https://github.com/AppFlowy-IO/AppFlowy/commit/66daad077072665aceb35752af1614f2e4269d16) chore: update test ### 📊 Changes **51 files changed** (+975 additions, -570 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/startup/deps_resolver.dart` (+0 -6) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+17 -17) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.toml` (+8 -8) 📝 `frontend/appflowy_web/wasm-libs/Cargo.lock` (+18 -17) 📝 `frontend/appflowy_web/wasm-libs/Cargo.toml` (+8 -8) 📝 `frontend/appflowy_web/wasm-libs/af-wasm/Cargo.toml` (+1 -1) 📝 `frontend/appflowy_web/wasm-libs/af-wasm/src/core.rs` (+17 -5) 📝 `frontend/appflowy_web_app/src-tauri/Cargo.lock` (+17 -17) 📝 `frontend/appflowy_web_app/src-tauri/Cargo.toml` (+8 -8) 📝 `frontend/rust-lib/Cargo.lock` (+18 -17) 📝 `frontend/rust-lib/Cargo.toml` (+8 -8) 📝 `frontend/rust-lib/collab-integrate/src/collab_builder.rs` (+62 -51) 📝 `frontend/rust-lib/collab-integrate/src/native/plugin_provider.rs` (+30 -2) 📝 `frontend/rust-lib/event-integration/Cargo.toml` (+3 -2) 📝 `frontend/rust-lib/event-integration/src/folder_event.rs` (+2 -1) 📝 `frontend/rust-lib/event-integration/tests/user/af_cloud_test/util.rs` (+1 -1) 📝 `frontend/rust-lib/event-integration/tests/user/af_cloud_test/workspace_test.rs` (+140 -7) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/collab_deps.rs` (+25 -1) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/database_deps.rs` (+20 -10) 📝 `frontend/rust-lib/flowy-core/src/deps_resolve/folder_deps.rs` (+16 -12) _...and 31 more files_ </details> ### 📄 Description 1. Retrieve Workspace ID: Obtain the workspace ID from a single source of truth. 2. Validate Workspace ID on HTTP Response: When an HTTP request completes, check if the workspace ID from the request matches the current user's workspace ID. Discard the response if the IDs do not match to prevent processing outdated or incorrect data. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:16:16 +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#6700
No description provided.