A failed initial read of the database does not prevent saving #123

Closed
opened 2024-02-08 22:57:36 +01:00 by wojtek · 0 comments
Owner

If the initial database read fails, there is very little preventing the user from saving the empty state from being saved back to disk. Pressing q will trigger the save, even if the quit won't happen on the error screen. Preventing saving on error screens is also not enough. The user can dismiss the error and then the data may save.

There should be some mechanism to prevent the user from saving the invalid data. Perhaps a new "Catastrophic Error" state which has only one outgoing action - to exit without saving?

If the initial database read fails, there is very little preventing the user from saving the empty state from being saved back to disk. Pressing `q` will trigger the save, even if the quit won't happen on the error screen. Preventing saving on error screens is also not enough. The user can dismiss the error and then the data may save. There should be some mechanism to prevent the user from saving the invalid data. Perhaps a new "Catastrophic Error" state which has only one outgoing action - to exit without saving?
wojtek added the
bug
label 2024-02-08 22:57:55 +01:00
wojtek added this to the v0.2.0 milestone 2024-02-08 22:57:58 +01:00
wojtek added reference 123---a-failed-initial-read-of-the-database-does-not-prevent-saving 2024-02-09 19:24:56 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: wojtek/musichoard#123
No description provided.