mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: fix test error
This commit is contained in:
parent
0680b20579
commit
3a7c3815b0
@ -35,7 +35,7 @@ packages:
|
|||||||
path: "packages/appflowy_editor"
|
path: "packages/appflowy_editor"
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.0.1"
|
version: "0.0.2"
|
||||||
args:
|
args:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -261,7 +261,7 @@ pub trait ViewDataProcessor {
|
|||||||
&self,
|
&self,
|
||||||
user_id: &str,
|
user_id: &str,
|
||||||
view_id: &str,
|
view_id: &str,
|
||||||
sub_data_type: ViewLayoutTypePB,
|
layout: ViewLayoutTypePB,
|
||||||
) -> FutureResult<Bytes, FlowyError>;
|
) -> FutureResult<Bytes, FlowyError>;
|
||||||
|
|
||||||
fn create_view_from_delta_data(
|
fn create_view_from_delta_data(
|
||||||
|
@ -136,13 +136,13 @@ async fn app_create_with_view() {
|
|||||||
name: "View A".to_owned(),
|
name: "View A".to_owned(),
|
||||||
desc: "View A description".to_owned(),
|
desc: "View A description".to_owned(),
|
||||||
data_type: ViewDataTypePB::Text,
|
data_type: ViewDataTypePB::Text,
|
||||||
layout: ViewLayoutTypePB::Document,
|
layout: ViewLayoutTypePB::Grid,
|
||||||
},
|
},
|
||||||
CreateView {
|
CreateView {
|
||||||
name: "Grid".to_owned(),
|
name: "Grid".to_owned(),
|
||||||
desc: "Grid description".to_owned(),
|
desc: "Grid description".to_owned(),
|
||||||
data_type: ViewDataTypePB::Database,
|
data_type: ViewDataTypePB::Database,
|
||||||
layout: ViewLayoutTypePB::Document,
|
layout: ViewLayoutTypePB::Grid,
|
||||||
},
|
},
|
||||||
ReadApp(app.id),
|
ReadApp(app.id),
|
||||||
])
|
])
|
||||||
@ -202,13 +202,13 @@ async fn view_delete_all() {
|
|||||||
name: "View A".to_owned(),
|
name: "View A".to_owned(),
|
||||||
desc: "View A description".to_owned(),
|
desc: "View A description".to_owned(),
|
||||||
data_type: ViewDataTypePB::Text,
|
data_type: ViewDataTypePB::Text,
|
||||||
layout: ViewLayoutTypePB::Document,
|
layout: ViewLayoutTypePB::Grid,
|
||||||
},
|
},
|
||||||
CreateView {
|
CreateView {
|
||||||
name: "Grid".to_owned(),
|
name: "Grid".to_owned(),
|
||||||
desc: "Grid description".to_owned(),
|
desc: "Grid description".to_owned(),
|
||||||
data_type: ViewDataTypePB::Database,
|
data_type: ViewDataTypePB::Database,
|
||||||
layout: ViewLayoutTypePB::Document,
|
layout: ViewLayoutTypePB::Grid,
|
||||||
},
|
},
|
||||||
ReadApp(app.id.clone()),
|
ReadApp(app.id.clone()),
|
||||||
])
|
])
|
||||||
@ -237,7 +237,7 @@ async fn view_delete_all_permanent() {
|
|||||||
name: "View A".to_owned(),
|
name: "View A".to_owned(),
|
||||||
desc: "View A description".to_owned(),
|
desc: "View A description".to_owned(),
|
||||||
data_type: ViewDataTypePB::Text,
|
data_type: ViewDataTypePB::Text,
|
||||||
layout: ViewLayoutTypePB::Document,
|
layout: ViewLayoutTypePB::Grid,
|
||||||
},
|
},
|
||||||
ReadApp(app.id.clone()),
|
ReadApp(app.id.clone()),
|
||||||
])
|
])
|
||||||
@ -337,7 +337,7 @@ async fn folder_sync_revision_with_new_view() {
|
|||||||
name: view_name.clone(),
|
name: view_name.clone(),
|
||||||
desc: view_desc.clone(),
|
desc: view_desc.clone(),
|
||||||
data_type: ViewDataTypePB::Text,
|
data_type: ViewDataTypePB::Text,
|
||||||
layout: ViewLayoutTypePB::Document,
|
layout: ViewLayoutTypePB::Grid,
|
||||||
},
|
},
|
||||||
AssertCurrentRevId(3),
|
AssertCurrentRevId(3),
|
||||||
AssertNextSyncRevId(Some(3)),
|
AssertNextSyncRevId(Some(3)),
|
||||||
|
@ -184,7 +184,7 @@ impl ViewDataProcessor for TextBlockViewDataProcessor {
|
|||||||
&self,
|
&self,
|
||||||
user_id: &str,
|
user_id: &str,
|
||||||
view_id: &str,
|
view_id: &str,
|
||||||
_sub_data_type: ViewLayoutTypePB,
|
layout: ViewLayoutTypePB,
|
||||||
) -> FutureResult<Bytes, FlowyError> {
|
) -> FutureResult<Bytes, FlowyError> {
|
||||||
let user_id = user_id.to_string();
|
let user_id = user_id.to_string();
|
||||||
let view_id = view_id.to_string();
|
let view_id = view_id.to_string();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user