[GH-ISSUE #5360] [Bug] changing field type from text to checkbox causes exception #2381

Closed
opened 2026-03-23 21:21:55 +00:00 by mirror · 4 comments
Owner

Originally created by @zoli on GitHub (May 18, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5360

Originally assigned to: @zoli on GitHub.

Bug Description

In board view changing field type from text to checkbox throws an exception when you hover the cursor on the card.
'CellController<CheckboxCellDataPB, String>' is not a subtype of type 'CellController<String, String>' in type

How to Reproduce

Open a card and create new field which its type is text by default. Change the field type to checkbox and close the card. Hover on any card and you get exception.
converting any field from CellController<String, String> to a CellController<SomeCellDataPB, String> causes exception.

Expected Behavior

Not throwing any exception.

Operating System

Linux

AppFlowy Version(s)

v0.5.7

Screenshots

No response

Additional Context

No response

Originally created by @zoli on GitHub (May 18, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5360 Originally assigned to: @zoli on GitHub. ### Bug Description In board view changing field type from text to checkbox throws an exception when you hover the cursor on the card. `'CellController<CheckboxCellDataPB, String>' is not a subtype of type 'CellController<String, String>' in type` ### How to Reproduce Open a card and create new field which its type is text by default. Change the field type to checkbox and close the card. Hover on any card and you get exception. converting any field from `CellController<String, String>` to a `CellController<SomeCellDataPB, String>` causes exception. ### Expected Behavior Not throwing any exception. ### Operating System Linux ### AppFlowy Version(s) v0.5.7 ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 21:21:55 +00:00
Author
Owner

@zoli commented on GitHub (May 18, 2024):

From what I've learned the problem is TextCardCell not getting disposed. The field type changes from text to checkbox but it's still going with TextCardCell.

<!-- gh-comment-id:2118840243 --> @zoli commented on GitHub (May 18, 2024): From what I've learned the problem is `TextCardCell` not getting disposed. The field type changes from text to checkbox but it's still going with `TextCardCell`.
Author
Owner

@Xazin commented on GitHub (May 18, 2024):

From what I've learned the problem is TextCardCell not getting disposed. The field type changes from text to checkbox but it's still going with TextCardCell.

Most likely caused by recent changes to the database by @richardshiue, however he is on leave at the moment.

Do you want to pick up this issue @zoli? Else I'll find some time to resolve it before version 0.5.9.

<!-- gh-comment-id:2118846083 --> @Xazin commented on GitHub (May 18, 2024): > From what I've learned the problem is `TextCardCell` not getting disposed. The field type changes from text to checkbox but it's still going with `TextCardCell`. Most likely caused by recent changes to the database by @richardshiue, however he is on leave at the moment. Do you want to pick up this issue @zoli? Else I'll find some time to resolve it before version 0.5.9.
Author
Owner

@zoli commented on GitHub (May 18, 2024):

Do you want to pick up this issue @zoli? Else I'll find some time to resolve it before version 0.5.9.

Yes, Currently I'm looking into it. When are you going to release 0.5.9?

<!-- gh-comment-id:2118847306 --> @zoli commented on GitHub (May 18, 2024): > Do you want to pick up this issue @zoli? Else I'll find some time to resolve it before version 0.5.9. Yes, Currently I'm looking into it. When are you going to release 0.5.9?
Author
Owner

@Xazin commented on GitHub (May 18, 2024):

Do you want to pick up this issue @zoli? Else I'll find some time to resolve it before version 0.5.9.

Yes, Currently I'm looking into it. When are you going to release 0.5.9?

0.5.9 is scheduled for release on June 3rd, so still a little over 2 weeks left.

<!-- gh-comment-id:2118896428 --> @Xazin commented on GitHub (May 18, 2024): > > Do you want to pick up this issue @zoli? Else I'll find some time to resolve it before version 0.5.9. > > Yes, Currently I'm looking into it. When are you going to release 0.5.9? 0.5.9 is scheduled for release on June 3rd, so still a little over 2 weeks left.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2381
No description provided.