Skip to content

Conversation

@speed2exe
Copy link
Contributor

@speed2exe speed2exe commented Dec 5, 2024

Adding test cases and improvement for cell type option json serialization and deserialization

  • Rich Text
  • Select
  • Checkbox
  • Number
  • Date
  • URL

@speed2exe speed2exe marked this pull request as ready for review December 5, 2024 15:48
@speed2exe speed2exe requested a review from appflowy December 5, 2024 15:48
fn convert_json_to_cell(&self, json_value: Value) -> Cell {
let cell_data = serde_json::from_value::<DateCellData>(json_value).unwrap();
Cell::from(&cell_data)
let date_cell_data: DateCellData = match json_value {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use stringify_cell which will format the string as predefine format.

@appflowy appflowy merged commit b6c74cf into main Dec 8, 2024
6 checks passed
@appflowy appflowy deleted the feat/enhanced-serde-to-cell branch December 8, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants