Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: fix test error
appflowy3a7c3815b02e
diff --git a/frontend/app_flowy/pubspec.lock b/frontend/app_flowy/pubspec.lockindex 0348536cb8..0f9421a563 100644--- a/frontend/app_flowy/pubspec.lock+++ b/frontend/app_flowy/pubspec.lock@@ -35,7 +35,7 @@ packages:path: "packages/appflowy_editor"relative: truesource: path- version: "0.0.1"+ version: "0.0.2"args:dependency: transitivedescription:diff --git a/frontend/rust-lib/flowy-folder/src/manager.rs b/frontend/rust-lib/flowy-folder/src/manager.rsindex 69d1f618d5..008476a397 100644--- a/frontend/rust-lib/flowy-folder/src/manager.rs+++ b/frontend/rust-lib/flowy-folder/src/manager.rs@@ -261,7 +261,7 @@ pub trait ViewDataProcessor {&self,user_id: &str,view_id: &str,- sub_data_type: ViewLayoutTypePB,+ layout: ViewLayoutTypePB,) -> FutureResult<Bytes, FlowyError>;fn create_view_from_delta_data(diff --git a/frontend/rust-lib/flowy-folder/tests/workspace/folder_test.rs b/frontend/rust-lib/flowy-folder/tests/workspace/folder_test.rsindex 9872641d9a..068619f785 100644--- a/frontend/rust-lib/flowy-folder/tests/workspace/folder_test.rs+++ b/frontend/rust-lib/flowy-folder/tests/workspace/folder_test.rs@@ -136,13 +136,13 @@ async fn app_create_with_view() {name: "View A".to_owned(),desc: "View A description".to_owned(),data_type: ViewDataTypePB::Text,- layout: ViewLayoutTypePB::Document,+ layout: ViewLayoutTypePB::Grid,},CreateView {name: "Grid".to_owned(),desc: "Grid description".to_owned(),data_type: ViewDataTypePB::Database,- layout: ViewLayoutTypePB::Document,+ layout: ViewLayoutTypePB::Grid,},ReadApp(app.id),])@@ -202,13 +202,13 @@ async fn view_delete_all() {name: "View A".to_owned(),desc: "View A description".to_owned(),data_type: ViewDataTypePB::Text,- layout: ViewLayoutTypePB::Document,+ layout: ViewLayoutTypePB::Grid,},CreateView {name: "Grid".to_owned(),desc: "Grid description".to_owned(),data_type: ViewDataTypePB::Database,- layout: ViewLayoutTypePB::Document,+ layout: ViewLayoutTypePB::Grid,},ReadApp(app.id.clone()),])@@ -237,7 +237,7 @@ async fn view_delete_all_permanent() {name: "View A".to_owned(),desc: "View A description".to_owned(),data_type: ViewDataTypePB::Text,- layout: ViewLayoutTypePB::Document,+ layout: ViewLayoutTypePB::Grid,},ReadApp(app.id.clone()),])@@ -337,7 +337,7 @@ async fn folder_sync_revision_with_new_view() {name: view_name.clone(),desc: view_desc.clone(),data_type: ViewDataTypePB::Text,- layout: ViewLayoutTypePB::Document,+ layout: ViewLayoutTypePB::Grid,},AssertCurrentRevId(3),AssertNextSyncRevId(Some(3)),diff --git a/frontend/rust-lib/flowy-sdk/src/deps_resolve/folder_deps.rs b/frontend/rust-lib/flowy-sdk/src/deps_resolve/folder_deps.rsindex 3fb08e484a..150ff831a2 100644--- a/frontend/rust-lib/flowy-sdk/src/deps_resolve/folder_deps.rs+++ b/frontend/rust-lib/flowy-sdk/src/deps_resolve/folder_deps.rs@@ -184,7 +184,7 @@ impl ViewDataProcessor for TextBlockViewDataProcessor {&self,user_id: &str,view_id: &str,- _sub_data_type: ViewLayoutTypePB,+ layout: ViewLayoutTypePB,) -> FutureResult<Bytes, FlowyError> {let user_id = user_id.to_string();let view_id = view_id.to_string();