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: add limitation when importing csv file (#5381)
Nathan.foooe85dbe724c9c
diff --git a/frontend/rust-lib/flowy-database2/src/manager.rs b/frontend/rust-lib/flowy-database2/src/manager.rsindex 77d9a477bc..283ad989c1 100644--- a/frontend/rust-lib/flowy-database2/src/manager.rs+++ b/frontend/rust-lib/flowy-database2/src/manager.rs@@ -347,6 +347,12 @@ impl DatabaseManager {}).await.map_err(internal_error)??;++ // Currently, we only support importing up to 500 rows. We can support more rows in the future.+ if !cfg!(debug_assertions) && params.rows.len() > 500 {+ return Err(FlowyError::internal().with_context("The number of rows exceeds the limit"));+ }+let result = ImportResult {database_id: params.database_id.clone(),view_id: params.inline_view_id.clone(),