[PR #7873] [MERGED] fix: anon user can not locate its data #8178

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7873
Author: @appflowy
Created: 5/1/2025
Status: Merged
Merged: 5/1/2025
Merged by: @LucasXu0

Base: mainHead: fix_anon_upgrade


📝 Commits (4)

  • 246bfd2 fix: anon user can not locate its data
  • 319df17 chore: add test
  • 53d2509 chore: bump version 0.9.1
  • ad5ff33 chore: remove self-hosted ios ci

📊 Changes

12 files changed (+108 additions, -34 deletions)

View changed files

📝 .github/workflows/ios_ci.yaml (+0 -21)
📝 CHANGELOG.md (+22 -0)
📝 frontend/Makefile.toml (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart (+11 -2)
📝 frontend/appflowy_flutter/pubspec.yaml (+1 -1)
📝 frontend/rust-lib/event-integration-test/src/user_event.rs (+4 -1)
frontend/rust-lib/event-integration-test/tests/asset/089_local.zip (+0 -0)
📝 frontend/rust-lib/event-integration-test/tests/user/af_cloud_test/workspace_test.rs (+33 -1)
📝 frontend/rust-lib/flowy-user/src/migrations/anon_user_workspace.rs (+2 -2)
📝 frontend/rust-lib/flowy-user/src/migrations/session_migration.rs (+13 -2)
📝 frontend/rust-lib/flowy-user/src/services/data_import/appflowy_data_import.rs (+2 -2)
📝 frontend/rust-lib/flowy-user/src/user_manager/manager.rs (+19 -1)

📄 Description

Feature Preview


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.

Summary by Sourcery

Fix data retrieval and migration issues for anonymous users in AppFlowy

Bug Fixes:

  • Resolve issue preventing anonymous users from locating their workspace data
  • Ensure anonymous user workspaces are correctly handled during session migration

Enhancements:

  • Add fallback mechanism to determine workspace type for anonymous users
  • Update session migration to handle anonymous user data correctly

Tests:

  • Add test to verify anonymous user data retrieval after 0.8.9 update

🔄 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/7873 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 5/1/2025 **Status:** ✅ Merged **Merged:** 5/1/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `fix_anon_upgrade` --- ### 📝 Commits (4) - [`246bfd2`](https://github.com/AppFlowy-IO/AppFlowy/commit/246bfd281c19c6b40f5cecbddea01bfba96ef6a3) fix: anon user can not locate its data - [`319df17`](https://github.com/AppFlowy-IO/AppFlowy/commit/319df171e5757c5ce63caa8a9f966b0032c9128e) chore: add test - [`53d2509`](https://github.com/AppFlowy-IO/AppFlowy/commit/53d250952e7c08cf977193ed54290309a782e9bc) chore: bump version 0.9.1 - [`ad5ff33`](https://github.com/AppFlowy-IO/AppFlowy/commit/ad5ff33e1ae13ecc65219f37b68048f6f168c38e) chore: remove self-hosted ios ci ### 📊 Changes **12 files changed** (+108 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ios_ci.yaml` (+0 -21) 📝 `CHANGELOG.md` (+22 -0) 📝 `frontend/Makefile.toml` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/space/shared_widget.dart` (+11 -2) 📝 `frontend/appflowy_flutter/pubspec.yaml` (+1 -1) 📝 `frontend/rust-lib/event-integration-test/src/user_event.rs` (+4 -1) ➕ `frontend/rust-lib/event-integration-test/tests/asset/089_local.zip` (+0 -0) 📝 `frontend/rust-lib/event-integration-test/tests/user/af_cloud_test/workspace_test.rs` (+33 -1) 📝 `frontend/rust-lib/flowy-user/src/migrations/anon_user_workspace.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-user/src/migrations/session_migration.rs` (+13 -2) 📝 `frontend/rust-lib/flowy-user/src/services/data_import/appflowy_data_import.rs` (+2 -2) 📝 `frontend/rust-lib/flowy-user/src/user_manager/manager.rs` (+19 -1) </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### 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. ## Summary by Sourcery Fix data retrieval and migration issues for anonymous users in AppFlowy Bug Fixes: - Resolve issue preventing anonymous users from locating their workspace data - Ensure anonymous user workspaces are correctly handled during session migration Enhancements: - Add fallback mechanism to determine workspace type for anonymous users - Update session migration to handle anonymous user data correctly Tests: - Add test to verify anonymous user data retrieval after 0.8.9 update --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:22:58 +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#8178
No description provided.