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
test: rename group test (#3790)
Nathan.fooo2b684ae7bf05
diff --git a/frontend/rust-lib/event-integration/tests/database/local_test/group_test.rs b/frontend/rust-lib/event-integration/tests/database/local_test/group_test.rsnew file mode 100644index 0000000000..033d2cb81a--- /dev/null+++ b/frontend/rust-lib/event-integration/tests/database/local_test/group_test.rs@@ -0,0 +1,30 @@+use event_integration::EventIntegrationTest;++#[tokio::test]+async fn update_group_name_test() {+ let test = EventIntegrationTest::new_with_guest_user().await;+ let current_workspace = test.get_current_workspace().await.workspace;+ let board_view = test+ .create_board(¤t_workspace.id, "my board view".to_owned(), vec![])+ .await;++ let groups = test.get_groups(&board_view.id).await;+ assert_eq!(groups.len(), 4);+ assert_eq!(groups[1].group_name, "To Do");+ assert_eq!(groups[2].group_name, "Doing");++ test+ .update_group(+ &board_view.id,+ &groups[1].group_id,+ &groups[1].field_id,+ Some("To Do?".to_string()),+ None,+ )+ .await;++ let groups = test.get_groups(&board_view.id).await;+ assert_eq!(groups.len(), 4);+ assert_eq!(groups[1].group_name, "To Do?");+ assert_eq!(groups[2].group_name, "Doing");+}diff --git a/frontend/rust-lib/event-integration/tests/database/local_test/mod.rs b/frontend/rust-lib/event-integration/tests/database/local_test/mod.rsindex 585722915d..8b91f85113 100644--- a/frontend/rust-lib/event-integration/tests/database/local_test/mod.rs+++ b/frontend/rust-lib/event-integration/tests/database/local_test/mod.rs@@ -1 +1,2 @@+mod group_test;mod test;diff --git a/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs b/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rsindex 767542d407..9d4f1ab4bd 100644--- a/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs+++ b/frontend/rust-lib/flowy-database2/src/services/database/database_editor.rs@@ -306,6 +306,8 @@ impl DatabaseEditor {Ok(())}+ /// Update the field type option data.+ /// Do nothing if the [TypeOptionData] is empty.pub async fn update_field_type_option(&self,view_id: &str,