mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
refactor: rename struct & add documentation
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use crate::grid::grid_editor::GridEditorTest;
|
||||
use flowy_grid::entities::RowInfo;
|
||||
use flowy_grid::entities::Row;
|
||||
use flowy_grid::services::row::{CreateRowRevisionBuilder, CreateRowRevisionPayload};
|
||||
use flowy_grid_data_model::revision::{
|
||||
FieldRevision, GridBlockMetaRevision, GridBlockMetaRevisionChangeset, RowMetaChangeset, RowRevision,
|
||||
@ -90,7 +90,7 @@ impl GridRowTest {
|
||||
let row_orders = row_ids
|
||||
.into_iter()
|
||||
.map(|row_id| self.row_order_by_row_id.get(&row_id).unwrap().clone())
|
||||
.collect::<Vec<RowInfo>>();
|
||||
.collect::<Vec<Row>>();
|
||||
|
||||
self.editor.delete_rows(row_orders).await.unwrap();
|
||||
self.row_revs = self.get_row_revs().await;
|
||||
|
@ -30,7 +30,7 @@ pub struct GridEditorTest {
|
||||
pub block_meta_revs: Vec<Arc<GridBlockMetaRevision>>,
|
||||
pub row_revs: Vec<Arc<RowRevision>>,
|
||||
pub field_count: usize,
|
||||
pub row_order_by_row_id: HashMap<String, RowInfo>,
|
||||
pub row_order_by_row_id: HashMap<String, Row>,
|
||||
}
|
||||
|
||||
impl GridEditorTest {
|
||||
|
Reference in New Issue
Block a user