nixonwidjaja / pe

0 stars 0 forks source link

Customer phone too restrictive #3

Open nixonwidjaja opened 10 months ago

nixonwidjaja commented 10 months ago

Screenshot 2023-11-17 at 16.25.48.png

nus-pe-script commented 10 months ago

Team's Response

No details provided by team.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

Phone Numbers shouldn't be restricted to Eight Digits

Phone numbers, as specified in the UG, can only be eight digits. Any attempt to add a phone number not consisting of eight digits, for instance: customer add --name Name --phone 123456789 --email abc@def --address address

...is met with the error message:

Phone numbers should only contain numbers, and it should be 8 digits long.

However, phone numbers may not be eight digits long, especially overseas. Hence, is this overzealous input validation? Perhaps a warning could be displayed instead of blocking the input entirely.


[original: nus-cs2103-AY2324S1/pe-interim#758] [original labels: severity.Low type.FeatureFlaw]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

This bug report would be accepted, however, it would be a documentation bug instead as the UG was not specific enough in stating that the rationale for eight digits is because we only want Singapore phone numbers as we are catering only for Singapore customers with Singapore phone number.

Screenshot 2023-11-20 at 10.48.40 AM.png

Furthermore, our examples all state Singapore addresses and Singapore phone numbers, thus, we always had it in mind that we the customers are from Singapore but did not state it down explicitly.

photo_2023-11-20 10.51.11.jpeg

photo_2023-11-20 10.50.17.jpeg

Items for the Tester to Verify

:question: Issue duplicate status

Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)

Reason for disagreement: [replace this with your explanation]


## :question: Issue type Team chose [`type.DocumentationBug`] Originally [`type.FeatureFlaw`] - [ ] I disagree **Reason for disagreement:** [replace this with your explanation]