-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
feature: support import user data with multiple workspaces #7822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
appflowy
wants to merge
1
commit into
main
Choose a base branch
from
refactor_import_data
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reviewer's Guide by SourceryThis pull request introduces the functionality to import user data with multiple workspaces. It includes new protobuf definitions for handling user data, modifications to user data migrations, new event handlers, and a new module for managing the import process. The changes also involve updating functions to use user ID and workspace ID directly, instead of a session object. Sequence diagram for previewing user data foldersequenceDiagram
participant FE as Frontend
participant BE as Backend
participant UM as UserManager
FE->>BE: PreviewAppFlowyUserData(UserDataPathPB)
BE->>UM: preview_user_data_folder_handler(UserDataPathPB)
UM->>UM: user_data_preview(path)
UM-->>BE: UserDataPreviewPB
BE-->>FE: UserDataPreviewPB
Sequence diagram for importing user data foldersequenceDiagram
participant FE as Frontend
participant BE as Backend
participant UM as UserManager
FE->>BE: ImportAppFlowyUserData(ImportUserDataPB)
BE->>UM: import_user_data_folder_handler(ImportUserDataPB, UserManager)
UM->>UM: get_import_user_data(ImportUserDataPB, version)
UM->>UM: import_user_data(ImportedUserData)
UM-->>BE: Result<(), FlowyError>
BE-->>FE: Result<(), FlowyError>
Updated class diagram for Import Data EntitiesclassDiagram
class ImportAppFlowyDataPB {
path: String
parent_view_id: Option<String>
}
class UserDataPathPB {
path: String
}
class ImportUserDataPB {
path: String
parent_view_id: Option<String>
workspaces: Vec<WorkspaceDataPreviewPB>
}
class WorkspaceDataPreviewPB {
name: String
created_at: i64
workspace_id: String
workspace_database_id: String
}
class UserDataPreviewPB {
user_name: String
workspaces: Vec<WorkspaceDataPreviewPB>
}
ImportUserDataPB -- WorkspaceDataPreviewPB : contains
UserDataPreviewPB -- WorkspaceDataPreviewPB : contains
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature Preview
PR Checklist
Summary by Sourcery
Add support for importing user data across multiple workspaces, including preview and import functionality for AppFlowy user data
New Features:
Enhancements:
Chores: