[PR #5454] [MERGED] fix: workspace id not match #6823

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/5454
Author: @appflowy
Created: 6/3/2024
Status: Merged
Merged: 6/3/2024
Merged by: @appflowy

Base: mainHead: workspace_id_issue


📝 Commits (1)

  • 04c05eb fix: workspace id not match

📊 Changes

2 files changed (+24 additions, -4 deletions)

View changed files

📝 frontend/rust-lib/flowy-document/src/event_handler.rs (+2 -0)
📝 frontend/rust-lib/flowy-document/src/manager.rs (+22 -4)

📄 Description

When switching to or creating a new workspace, there is a possibility that it will attempt to retrieve the previous workspace document using the current new workspace ID.

For example, SET_DOCUMENT_AWARENESS_LOCAL_STATE will get document async.

{"msg":"[🟢 SET_DOCUMENT_AWARENESS_LOCAL_STATE - START]","time":"06-03 15:54:40","target":"flowy_document::manager"}
{"msg":"[🟢 GET_DOCUMENT - START]","time":"06-03 15:54:40","target":"flowy_document::manager"}
  2024-06-03 15:54:40 ERROR flowy_document::manager: error: Internal: "Call open document first"
    at flowy-document/src/manager.rs:138
    in flowy_document::managerget_document with doc_id: "949be6c4-3804-480b-aa5a-278358d06371"
    in flowy_document::managerset_document_awareness_local_state

🔄 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/5454 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 6/3/2024 **Status:** ✅ Merged **Merged:** 6/3/2024 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `workspace_id_issue` --- ### 📝 Commits (1) - [`04c05eb`](https://github.com/AppFlowy-IO/AppFlowy/commit/04c05eb4d000d52d519ae9aa58ddebedef635a86) fix: workspace id not match ### 📊 Changes **2 files changed** (+24 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `frontend/rust-lib/flowy-document/src/event_handler.rs` (+2 -0) 📝 `frontend/rust-lib/flowy-document/src/manager.rs` (+22 -4) </details> ### 📄 Description When switching to or creating a new workspace, there is a possibility that it will attempt to retrieve the previous workspace document using the current new workspace ID. For example, SET_DOCUMENT_AWARENESS_LOCAL_STATE will get document async. ```text {"msg":"[🟢 SET_DOCUMENT_AWARENESS_LOCAL_STATE - START]","time":"06-03 15:54:40","target":"flowy_document::manager"} {"msg":"[🟢 GET_DOCUMENT - START]","time":"06-03 15:54:40","target":"flowy_document::manager"} 2024-06-03 15:54:40 ERROR flowy_document::manager: error: Internal: "Call open document first" at flowy-document/src/manager.rs:138 in flowy_document::managerget_document with doc_id: "949be6c4-3804-480b-aa5a-278358d06371" in flowy_document::managerset_document_awareness_local_state ``` --- <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:50 +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#6823
No description provided.