feat: Data sync on signup (#3283)

* chore: sync all data

* chore: sync database row and document in the row

* chore: sync inline view id

* chore: sync row and document in row

* fix: tests

* fix: migrate document in row

* chore: retry when create collab fail

* fix: invalid secret cause rerun application

* chore: fix clippy warnnings
This commit is contained in:
Nathan.fooo
2023-08-28 13:28:24 +08:00
committed by GitHub
parent 41ec2d992e
commit 4e67282f2b
66 changed files with 1492 additions and 513 deletions

View File

@ -20,7 +20,7 @@ async fn supabase_user_sign_up_test() {
let user: SignUpResponse = user_service.sign_up(BoxAny::new(params)).await.unwrap();
assert!(!user.latest_workspace.id.is_empty());
assert!(!user.user_workspaces.is_empty());
assert!(!user.latest_workspace.database_storage_id.is_empty());
assert!(!user.latest_workspace.database_views_aggregate_id.is_empty());
}
#[tokio::test]
@ -37,7 +37,7 @@ async fn supabase_user_sign_up_with_existing_uuid_test() {
.unwrap();
let user: SignUpResponse = user_service.sign_up(BoxAny::new(params)).await.unwrap();
assert!(!user.latest_workspace.id.is_empty());
assert!(!user.latest_workspace.database_storage_id.is_empty());
assert!(!user.latest_workspace.database_views_aggregate_id.is_empty());
assert!(!user.user_workspaces.is_empty());
}