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

Validations/4773 phone numbers #4813

Merged
merged 4 commits into from
May 12, 2023

Conversation

Tscasady
Copy link
Contributor

What github issue is this PR for, if any?

Resolves #4773

What changed, and why

Phone number fields do not insist on 12 digit phone numbers - allows user to provide 10 digits. '+1' country code added for the user before it is stored in the database.

How will this affect user permissions?

  • Volunteer permissions:
  • Supervisor permissions:
  • Admin permissions:

How is this tested? (please write tests!) 💖💪

Adds a test for the 10 digit case in PhoneNumberHelper spec

Screenshots please :)

Screenshot 2023-05-12 at 4 19 13 PM
Screenshot 2023-05-12 at 4 19 44 PM

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels May 12, 2023
Copy link
Collaborator

@compwron compwron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)
fix lint and merge!

@compwron compwron merged commit 3352e14 into rubyforgood:main May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the validation of the phone number field
2 participants