Open nus-se-script opened 10 months ago
Rejected based on the basis of extreme user behavior.
Firstly, the editing of the file welcome advanced users in order to manipulate the file directly. This would mean that a huge portion of users wont be manipulating the data file directly.
Secondly, due to the CLI aspect of the app, there is no way for a user to give a null input. This is because all inputs are string.
Thereby, the only introduction of null input into tag can only be done either 1. by direct access to the json data file or 2. by the developer.
In this case, 2 is not possible since we used defensive programming in order to verify non-null tags.
The point is, there will never be a null tag that shows up in your json file if you use the CLI. So the Hiring Manager will never be able to take reference from the data and try out a null value.
Thirdly, the probability of a Hiring Manager using the null keyword is extremely low. Since most of the tags have tagName and tagCategory and are formatted as Strings using " "
,
There is a reasonable expectation that Hiring Manager will follow such a format when keying in tags.
Thus the assumption that a null appears in tag will be
This deviates far too greatly from expected user behavior and would instead be a behavior of a user trying to break the application. With an extremely low probability of such an input and the logical case of using null close to 0, we therefore conclude this is a extreme user behaviour
--
Description
When there is null put into the tags section of the json file, the app does not launch.
Expected
App should launch but empty, to indicate that there is invalid data.
Actual
App does not even launch.
Steps to Reproduce
data/addressbook.json
and edit the tags to be as such:[original: nus-cs2103-AY2324S1/pe-interim#5047] [original labels: type.FeatureFlaw severity.Medium]