nus-cs2113-AY2122S1 / pe-dev-response

0 stars 0 forks source link

No checking if a year is legitimate or not #1351

Open nus-se-bot opened 3 years ago

nus-se-bot commented 3 years ago

Year must be in a YYYY format and must be numeric, yet there is no validation check for years.

image.png


[original: nus-cs2113-AY2122S1/pe-interim#1330] [original labels: severity.Low type.FeatureFlaw]

YEOWEIHNGWHYELAB commented 3 years ago

Team's Response

This app allows one to track their budget not just in recent or current years. Including the year 0000 and 9999, as there could be cases where users uses this app to track very old records or project their future budget records. Having the ability to have budget data base from year 0000 up to 9999 makes this app more versatile.

In the case if you want to validate years, what would you consider as a valid date range? Say from 1900 to 2100, then again what if there are still users wanting to use the app after year 2100?

Duplicate status (if any):

--