Open TY1Fan opened 2 weeks ago
While it is true that the longest North Korean numbers have at most 17 digits, the rest of the world should follow the international guidelines on phone numbers.
International specifications provide guidelines that [international phone numbers are 15 digits long.](https://en.wikipedia.org/wiki/Telephone_numbering_plan#:~:text=The%20International%20Telecommunication%20Union%20(ITU,15%20digits%20to%20telephone%20numbers.)
In addition, North Koreans are unlikely to be users given that sanctions/international trade are not permitted with users of the country, hence the chances of a North Korean using our app and encountering this problem is very little and very rare. Hence the severity is reduced to low.
However, a future iteration may improve on this to allow 17 digits.
Team chose [response.NotInScope
]
Reason for disagreement: Thank you for agreeing with my view that this feature is indeed flawed. However, I feel that the response to this issue should be Accepted
instead because of the following:
public static final int MAXIMUM_LENGTH = 16; public static final String VALIDATION_REGEX = "\d{3,}";
- The changes required to ease the phone number restriction does not require much effort as the dev team only needs to update the validation regex, help message and documentation, which should not take more than 7 lines of codes.
Based on the course website (2nd point of the screenshot),
I feel that this issue should be Accepted
, since the dev team has agreed that this feature could have been made better (as evident from their choice of NotInScope
) and the changes could be implemented without much additional effort (as justified above).
Steps to reproduce:
Expected: According to the World Population Review, the longest phone number in the world is 17 digits (North Korea).
Actual: Error is thrown.
Suggestion/ Why it is problematic: According to your value proposition, you did not mention that your app is not available to North Koreans. Hence, by restricting your phone number to less than 16 digits would mean that North Koreans are unable to use your app. While most user are still able to use the app , I feel that the restrictions would still affect the usability for users with contacts from North korea.