mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: stuck when importing large csv file (#4878)
* chore: fix import csv file * chore: update collab * chore: bump collab * chore: workaround for row creating * fix: test
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use collab::core::collab_state::SyncState;
|
||||
use collab_database::rows::RowId;
|
||||
use collab_database::user::DatabaseViewTracker;
|
||||
use collab_database::user::DatabaseMeta;
|
||||
use collab_database::views::DatabaseLayout;
|
||||
|
||||
use flowy_derive::ProtoBuf;
|
||||
@ -208,8 +208,8 @@ pub struct DatabaseDescriptionPB {
|
||||
pub database_id: String,
|
||||
}
|
||||
|
||||
impl From<DatabaseViewTracker> for DatabaseDescriptionPB {
|
||||
fn from(data: DatabaseViewTracker) -> Self {
|
||||
impl From<DatabaseMeta> for DatabaseDescriptionPB {
|
||||
fn from(data: DatabaseMeta) -> Self {
|
||||
Self {
|
||||
database_id: data.database_id,
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ impl DatabaseManager {
|
||||
let mut items = vec![];
|
||||
if let Ok(wdb) = self.get_workspace_database().await {
|
||||
items = wdb
|
||||
.get_all_databases()
|
||||
.get_all_database_meta()
|
||||
.into_iter()
|
||||
.map(DatabaseDescriptionPB::from)
|
||||
.collect();
|
||||
|
Reference in New Issue
Block a user