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

[OF#3383] Refactor phone number validation #553

Merged
merged 2 commits into from
Sep 29, 2023

Conversation

vaszig
Copy link
Contributor

@vaszig vaszig commented Sep 21, 2023

@vaszig vaszig marked this pull request as draft September 21, 2023 14:57
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (0f61b0f) 55.49% compared to head (25599dd) 70.83%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #553       +/-   ##
===========================================
+ Coverage   55.49%   70.83%   +15.34%     
===========================================
  Files         203      209        +6     
  Lines        3743     4300      +557     
  Branches      679     1162      +483     
===========================================
+ Hits         2077     3046      +969     
+ Misses       1475     1219      -256     
+ Partials      191       35      -156     
Files Coverage Δ
.../jstests/formio/components/fixtures/phonenumber.js 100.00% <100.00%> (ø)
src/jstests/formio/validators/mocks.js 100.00% <100.00%> (ø)
src/formio/validators/plugins.js 80.95% <78.94%> (+68.95%) ⬆️

... and 129 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vaszig vaszig force-pushed the of-task/3383-phone-number-validation branch 2 times, most recently from cff2ac5 to 37efe33 Compare September 26, 2023 14:41
@vaszig vaszig force-pushed the of-task/3383-phone-number-validation branch from 37efe33 to e6774dc Compare September 26, 2023 14:43
@vaszig vaszig marked this pull request as ready for review September 26, 2023 14:53
@vaszig vaszig requested a review from SilviaAmAm September 26, 2023 14:53
};
if (anyValid) return true;

return results.join('<br>');
Copy link
Contributor

Choose a reason for hiding this comment

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

When testing I don't see the new line 🤔
errors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discussed with @SilviaAmAm and @sergei-maertens - a separate issue(#558) has been created for this.

src/formio/validators/plugins.js Outdated Show resolved Hide resolved
src/formio/validators/plugins.js Show resolved Hide resolved
src/jstests/formio/components/fixtures/phonenumber.js Outdated Show resolved Hide resolved
src/jstests/formio/validators/pluginapivalidator.spec.js Outdated Show resolved Hide resolved
@sergei-maertens sergei-maertens merged commit 1f64a86 into main Sep 29, 2023
12 checks passed
@sergei-maertens sergei-maertens deleted the of-task/3383-phone-number-validation branch September 29, 2023 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Phone number validation
3 participants