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

Added 11 digit restriction for toll free numbers #4294

Merged
merged 5 commits into from
Dec 18, 2022
Merged

Conversation

skks1212
Copy link
Member

@skks1212 skks1212 commented Dec 13, 2022

Proposed Changes

Backend Changes Required

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

@skks1212 skks1212 requested a review from a team December 13, 2022 08:33
@skks1212 skks1212 requested a review from a team as a code owner December 13, 2022 08:33
@vercel
Copy link

vercel bot commented Dec 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
care-storybook ✅ Ready (Inspect) Visit Preview Dec 18, 2022 at 6:05AM (UTC)

@netlify
Copy link

netlify bot commented Dec 13, 2022

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 6ffc143
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/639ead59188592000805943f
😎 Deploy Preview https://deploy-preview-4294--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@skks1212 skks1212 added needs testing P1 breaking issue or vital feature labels Dec 13, 2022
@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Dec 13, 2022
@nihal467
Copy link
Member

nihal467 commented Dec 13, 2022

@skks1212 Currently, there is no limit for the number on the platform, which doesn't look good.

is it possible only for the customer care number inside the asset creation form to have 11 number restrictions? and all other phone numbers remain to have 10 number restriction

@gigincg @khavinshankar what are your opnion

@nihal467 nihal467 added the question Further information is requested label Dec 13, 2022
@khavinshankar
Copy link
Member

@nihal467 @skks1212 I agree, may be on top of it we could have some kind of isValidPhoneNumber regex or function to validate it 🤔

@skks1212 skks1212 changed the title Removed 10 digit restriction for phone numbers Added 11 digit restriction for toll free numbers Dec 13, 2022
@skks1212
Copy link
Member Author

@nihal467 @gigincg @khavinshankar I have now only allowed 11 digits to be entered if the number starts with 1800

@skks1212 skks1212 removed the question Further information is requested label Dec 13, 2022
@github-actions github-actions bot removed the cypress failed pull request with cypress test failure label Dec 13, 2022
@nihal467
Copy link
Member

@skks1212
Copy link
Member Author

@nihal467 will have to create a backend PR to handle backend validation. Marking PR as waiting

@nihal467
Copy link
Member

@skks1212
image

still not working

@khavinshankar
Copy link
Member

@skks1212 can you check this and clear it out as soon as possible

@nihal467
Copy link
Member

@skks1212 the PR is not working
image

@skks1212
Copy link
Member Author

@khavinshankar @nihal467 There appears to be a problem with care backend not deploying. Im adding a waiting for backend label to the PR again.

@skks1212
Copy link
Member Author

@nihal467
image
Looks like Deploy issue has been fixed. Can you try testing again? 🥲

@nihal467
Copy link
Member

@skks1212 https://app.flonnect.com/view/video/nihalcct/639ea4a6f31aaa756ef93aa9

when we are typing 18001801234, there is a bouncing happening after the number 1800,

@sonarcloud
Copy link

sonarcloud bot commented Dec 18, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nihal467
Copy link
Member

@khavinshankar
image

now the normal phone number has become 11 digit and it is not the solution we discussed

@github-actions github-actions bot added the cypress failed pull request with cypress test failure label Dec 18, 2022
@khavinshankar
Copy link
Member

@nihal467 merging this pr as it is a p1 issue, following this issue in a new pr

@nihal467
Copy link
Member

@khavinshankar @skks1212 conditionally approving this solution, as it is temporarily solving purpose, but the improved solution needs to be pushed before next week's release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cypress failed pull request with cypress test failure P1 breaking issue or vital feature tested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify customer care number condition in asset creation page
3 participants