Coders-Living-Instant-Work-Journal / coders-living-instant-journal-client

A CLI based work journal, allowing coders to take quick notes from the terminal, and automatically sending scheduled e-mails containing notes from the configured time period.
MIT License
0 stars 0 forks source link

Bug: Client app hanging on updating entry #60

Open eugenemonnier opened 4 years ago

eugenemonnier commented 4 years ago

@tylersayvetz discovered a bug that can cause the client app to hang, requiring the user to press Ctrl+C to force quit. The user can cause this to happen by deleting the category string and not replacing it with anything. We should probably change this so that if the user clears the field and then press enter, it either requires the user to enter a string for the category or defaults back to the original category string.

Expected Behavior Given a user that is logged in and has previously created a journal entry. When the user uses the terminal UI to select an entry. And the user edits that entry, clearing the category field. Then after hitting Enter after editing the entry the app will not change the category name.

Actual Behavior Given a user that is logged in and has previously created a journal entry. When the user uses the terminal UI to select an entry. And the user edits that entry, clearing the category field. Then after hitting Enter after editing the entry the app will hang.

Acceptance Criteria Given a user that is logged in and has previously created a journal entry. When the user uses the terminal UI to select an entry. And the user edits that entry, clearing the category field. Then the app will either inform the user that the text entry field is required Or the app will not change the category information.