Open jeffrey-jian opened 12 months ago
While designing this feature, we have researched what is a valid course code. Link to NUS website
However, CS2103/T is not a valid course code according to our documentation. Our app has the expected behaviour of clearing all data when the json file is invalid, which in this case has correct behaviour.
Course codes should start with 2-3 alphabets, followed by 4 numbers, and optionally end with an alphabet.
is the error message that is given when a user tries to add CS2103/T
.
This should be added as CS2103T
.
Using the /
character will cause issues will cause problems with the current implementation of AB3. We can look into how we can handle the /
character in a future iteration, therefore it is currently not in scope.
Team chose [response.NotInScope
]
Reason for disagreement: [replace this with your explanation]
Steps to reproduce:
CS2103T
toCS2103/T
.Justification
I labelled this issue as
High
for severity because there does exist courses in NUS that have the/
within their course codes. Within the UG, it is not mentioned that there are certain constraints on what the course codes can be, and it is also mentioned thatCOURSE_CODE
isString in valid NUS course code format
.In the DG, I acknowledge that it does mention that a planned enhancement is to include a
Add Course Command
, which I believe would have these strict requirements set in place to not allow users to include/
. However, it is important to let users know the current workaround (which is to edit the courses.json file directly), and the limitations of this workaround.