chore: add sqlite feature flag (#1683)

* chore: add sqlite feature flag

* chore: fix clippy warings

* ci: fix clippy

* chore: add rev file persistence

* ci: fix clippy

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Nathan.fooo
2023-01-12 13:09:08 +08:00
committed by GitHub
parent 860c5d100b
commit 6a36bcd31d
74 changed files with 281 additions and 226 deletions

View File

@ -70,13 +70,12 @@ async fn create_workspace(sdk: &FlowySDKTest, name: &str, desc: &str) -> Workspa
desc: desc.to_owned(),
};
let workspace = FolderEventBuilder::new(sdk.clone())
FolderEventBuilder::new(sdk.clone())
.event(CreateWorkspace)
.payload(request)
.async_send()
.await
.parse::<WorkspacePB>();
workspace
.parse::<WorkspacePB>()
}
async fn open_workspace(sdk: &FlowySDKTest, workspace_id: &str) {
@ -98,13 +97,12 @@ async fn create_app(sdk: &FlowySDKTest, name: &str, desc: &str, workspace_id: &s
color_style: Default::default(),
};
let app = FolderEventBuilder::new(sdk.clone())
FolderEventBuilder::new(sdk.clone())
.event(CreateApp)
.payload(create_app_request)
.async_send()
.await
.parse::<AppPB>();
app
.parse::<AppPB>()
}
async fn create_view(
@ -124,13 +122,12 @@ async fn create_view(
view_content_data: data,
};
let view = FolderEventBuilder::new(sdk.clone())
FolderEventBuilder::new(sdk.clone())
.event(CreateView)
.payload(request)
.async_send()
.await
.parse::<ViewPB>();
view
.parse::<ViewPB>()
}
pub fn root_dir() -> String {

View File

@ -45,8 +45,7 @@ impl FlowySDKTest {
}
pub async fn sign_up(&self) -> SignUpContext {
let context = async_sign_up(self.inner.dispatcher()).await;
context
async_sign_up(self.inner.dispatcher()).await
}
pub async fn init_user(&self) -> UserProfilePB {