Internal Server Error when searching with partial dates in Find a Record #3331
Labels
help wanted
Community contributors can implement this
ready
Ready for implementation
type: bug
Something isn't working
work: backend
Related to Python, Django, and simple SQL
Milestone
Description
Sometimes when partially entering the date in the Record Search Field, it randomly throws internal server errors.
Sometimes it throws the intended
InvalidDateFormatAPIException
but other times itUnboundLocalError
.Here is a recording of the behaviour:
Screen.Recording.2023-12-03.at.1.33.13.PM.mov
Also, it would be good UI/UX to show the user the date is invalid. In case when the user has just put an incorrect date time format and the server returns a 400 BAD REQUEST InvalidDateFormatAPIException. The user won't know as the table still shows the loading state.
Expected behavior
To Reproduce
Environment
Additional context
The text was updated successfully, but these errors were encountered: