Open SeaHogs opened 2 months ago
Hi! This is a feature flaw and not a functionality bug. The error message says that one condition is that "the loan start date must be before the return date". In this case, the loan start date is not before the loan return date as the start date 2023-02-29
does not exist (an invalid date cannot be before the return date as the former, being nonexistent, is not comparable in terms of "before" and "after"). Therefore, the condition that "the loan start date must be before the return date" is violated (i.e. it is NOT the condition that "Dates should be of the form yyyy-MM-dd" that is violated) and the error message is accurate, albeit ambiguous. We agree that the error message could be more specific about what is causing the issue, which is the invalid loan start date, and hence this is a feature flaw.
In our DG Planned Enhancements, we state that we want to improve the error message handling of the linkloan
command to be less ambiguous, specifically with date handling, as below:
Therefore, this feature flaw falls under that category and can be rejected.
Team chose [response.Rejected
]
Reason for disagreement: [replace this with your explanation]
command used: linkloan 1 v/500.00 s/2023-02-29 r/2025-02-15
used on preset data, person 1.
For years that doesn't have 29th of Feb, the app does detect that this is a invalid date but how every the error message only mention that "Dates should be of the form yyyy-MM-dd" but 2023-02-29 is indeed in yyyy-MM-dd format.
From this the user may not notice that the date they input is invalid but think that they used the invalid formatting for the date.