avniproject / avni-client

Android app for the fieldworkers.
https://avniproject.org
GNU Affero General Public License v3.0
7 stars 21 forks source link

Invalid Dates Allowed When Changing Duration #1406

Open BEULAHEVANJALIN opened 6 months ago

BEULAHEVANJALIN commented 6 months ago

Describe the bug Invalid dates are being allowed by the client app and stored in the database, leading to errors in the ETL service. example: "Dec 21, -10323." This issue occurs when changing the duration rather than selecting or entering a date directly.

Expected behavior The application should validate the date input to ensure it is a valid and realistic date before allowing it to be stored in the database. An error message should be displayed for invalid dates.

Screenshots image

Additional context Invalid dates in the database are causing downstream errors in the ETL service. Error logs from the ETL service are attached for reference. wrror_logs_invalid_date_range.txt

Developer Checklist Developer fixing the bug should fill this checklist.

mahalakshme commented 6 months ago

could be duplicate of https://github.com/avniproject/avni-client/issues/1346