Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Admin Tool Feature]: Get rid of number validation #684

Closed
2 tasks done
ssandino opened this issue Dec 21, 2023 · 3 comments · Fixed by #706
Closed
2 tasks done

[Admin Tool Feature]: Get rid of number validation #684

ssandino opened this issue Dec 21, 2023 · 3 comments · Fixed by #706
Assignees
Labels
admin tool Issues concerning Admin Tool

Comments

@ssandino
Copy link
Member

ssandino commented Dec 21, 2023

Is there an existing request for this feature?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe.

Our system currently restricts input to only Sierra Leonean phone numbers. This was initially implemented to prevent NGOs from entering incorrect numbers (such as those missing prefixes). However, NGOs no longer have access to the admin tool, making this restriction unnecessary. Additionally, this limitation complicates testing since most of our test numbers are not from Sierra Leone, requiring manual changes directly in Firestore.

Describe the solution/feature

Remove the restriction that checks and allows only Sierra Leonean phone numbers. This change will facilitate easier and more efficient testing with diverse phone numbers.

Validation is done here recipients properties

Describe alternatives you've considered

No response

Criteria for Completion

No response

Anything else?

Screenshot 2023-12-21 at 10 10 10

Code of Conduct

  • I've read the Code of Conduct and understand my responsibilities as a member of the Social Income community
@ssandino ssandino added feature admin tool Issues concerning Admin Tool labels Dec 21, 2023
@micharied
Copy link
Contributor

Hello,
I would like to contribute to this project and looked at this issue as a start. Should there be no validation at all or should there be a validation for the length of the number?
Greetings Micha

@ssandino
Copy link
Member Author

Hi @micharied – great, this is actually a good issue to start with!

The validation is done in RecipientsProperties.ts. Removing the validation would already fulfill the issue's goal.

Your question about adding another validation is totally valid. You can of course add a validation, such as limiting the digits to 15 – this is recommended by the ITU (E.164). The minimum length of a valid international phone number is not straightforward, and as such, not validating this seems to be the best approach.

I've assigned this task to you. Please let us know if you need any help along the way. Also, if you notice any steps that haven't been documented for new contributors in the README, thanks for updating it!

@ssandino ssandino linked a pull request Jan 26, 2024 that will close this issue
@ssandino
Copy link
Member Author

Great job, @micharied. I close the issue.

The comment of @mkue in the PR #706 I added as new issue #719. However, this change might have some effects on the mobile app and must first be discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin tool Issues concerning Admin Tool
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants