[PR #3684] [MERGED] feat: af cloud database #5826

Closed
opened 2026-03-23 22:20:29 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3684
Author: @appflowy
Created: 10/12/2023
Status: Merged
Merged: 10/12/2023
Merged by: @appflowy

Base: mainHead: feat/af_cloud_database


📝 Commits (2)

  • 1f2baf3 chore: forece user to logout when token is invalid
  • ea021af chore: update client api rev

📊 Changes

18 files changed (+119 additions, -57 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/startup/startup.dart (+2 -0)
frontend/appflowy_flutter/lib/startup/tasks/appflowy_cloud_task.dart (+29 -0)
📝 frontend/appflowy_flutter/lib/user/application/supabase_realtime.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/user/application/user_auth_listener.dart (+6 -6)
📝 frontend/appflowy_tauri/src-tauri/Cargo.lock (+22 -8)
📝 frontend/appflowy_tauri/src-tauri/Cargo.toml (+1 -1)
📝 frontend/rust-lib/Cargo.lock (+8 -9)
📝 frontend/rust-lib/Cargo.toml (+1 -1)
📝 frontend/rust-lib/flowy-error/Cargo.toml (+1 -2)
📝 frontend/rust-lib/flowy-error/src/impl_from/mod.rs (+0 -3)
frontend/rust-lib/flowy-error/src/impl_from/tokio.rs (+0 -7)
📝 frontend/rust-lib/flowy-server/src/af_cloud/impls/user.rs (+1 -1)
📝 frontend/rust-lib/flowy-server/src/af_cloud/server.rs (+27 -11)
📝 frontend/rust-lib/flowy-server/src/local_server/impls/user.rs (+2 -1)
📝 frontend/rust-lib/flowy-server/src/supabase/api/user.rs (+2 -1)
📝 frontend/rust-lib/flowy-user-deps/src/cloud.rs (+8 -1)
📝 frontend/rust-lib/flowy-user/src/entities/auth.rs (+1 -1)
📝 frontend/rust-lib/flowy-user/src/manager.rs (+7 -3)

📄 Description

Fix:

  1. reconnect ws
  2. force login when user token is invalid
  3. sync database data using ws

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 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/3684 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 10/12/2023 **Status:** ✅ Merged **Merged:** 10/12/2023 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `feat/af_cloud_database` --- ### 📝 Commits (2) - [`1f2baf3`](https://github.com/AppFlowy-IO/AppFlowy/commit/1f2baf32324e282acc9ce8fb44801f0391dc171f) chore: forece user to logout when token is invalid - [`ea021af`](https://github.com/AppFlowy-IO/AppFlowy/commit/ea021afe5a028f6e335d7a8eabd866a5f7bb9f99) chore: update client api rev ### 📊 Changes **18 files changed** (+119 additions, -57 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/startup/startup.dart` (+2 -0) ➕ `frontend/appflowy_flutter/lib/startup/tasks/appflowy_cloud_task.dart` (+29 -0) 📝 `frontend/appflowy_flutter/lib/user/application/supabase_realtime.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/user/application/user_auth_listener.dart` (+6 -6) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.lock` (+22 -8) 📝 `frontend/appflowy_tauri/src-tauri/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/Cargo.lock` (+8 -9) 📝 `frontend/rust-lib/Cargo.toml` (+1 -1) 📝 `frontend/rust-lib/flowy-error/Cargo.toml` (+1 -2) 📝 `frontend/rust-lib/flowy-error/src/impl_from/mod.rs` (+0 -3) ➖ `frontend/rust-lib/flowy-error/src/impl_from/tokio.rs` (+0 -7) 📝 `frontend/rust-lib/flowy-server/src/af_cloud/impls/user.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-server/src/af_cloud/server.rs` (+27 -11) 📝 `frontend/rust-lib/flowy-server/src/local_server/impls/user.rs` (+2 -1) 📝 `frontend/rust-lib/flowy-server/src/supabase/api/user.rs` (+2 -1) 📝 `frontend/rust-lib/flowy-user-deps/src/cloud.rs` (+8 -1) 📝 `frontend/rust-lib/flowy-user/src/entities/auth.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-user/src/manager.rs` (+7 -3) </details> ### 📄 Description Fix: 1. reconnect ws 2. force login when user token is invalid 3. sync database data using ws #### PR Checklist - [ ] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [ ] I've listed at least one issue that this PR fixes in the description above. - [ ] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [ ] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 22:20:29 +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#5826
No description provided.