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

Fix plugin validators being AND-ed instead of OR-ed in the backend validation. #4136

Merged

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Apr 8, 2024

Closes #4131

I am schtewpid

@sergei-maertens sergei-maertens added the needs-backport Fix must be backported to stable release branch label Apr 8, 2024
Copy link
Contributor

@Viicos Viicos left a comment

Choose a reason for hiding this comment

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

I'm wondering why it started appearing in #4121

@sergei-maertens
Copy link
Member Author

I'm wondering why it started appearing in #4121

I had the wrong issue number, should have been 4131

The frontend applies OR-logic when evaluating validation plugins
on a Formio component, which the backend did not replicate
correctly.
@sergei-maertens sergei-maertens force-pushed the issue/4121-plugin-validators-must-be-or-instead-of-and branch from 61eb2be to 107845c Compare April 8, 2024 16:34
Copy link

codecov bot commented Apr 8, 2024

Codecov Report

Attention: Patch coverage is 94.73684% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 96.10%. Comparing base (5bf9d90) to head (107845c).
Report is 3 commits behind head on master.

Files Patch % Lines
src/openforms/formio/components/custom.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4136      +/-   ##
==========================================
+ Coverage   96.09%   96.10%   +0.01%     
==========================================
  Files         730      730              
  Lines       23130    23134       +4     
  Branches     2705     2699       -6     
==========================================
+ Hits        22226    22234       +8     
+ Misses        641      638       -3     
+ Partials      263      262       -1     

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

@sergei-maertens sergei-maertens merged commit b44b3e6 into master Apr 8, 2024
26 of 27 checks passed
@sergei-maertens sergei-maertens deleted the issue/4121-plugin-validators-must-be-or-instead-of-and branch April 8, 2024 16:53
sergei-maertens added a commit that referenced this pull request Apr 8, 2024
The frontend applies OR-logic when evaluating validation plugins
on a Formio component, which the backend did not replicate
correctly.

Backport-of: #4136
@sergei-maertens
Copy link
Member Author

Backported to 2.6.x via 5e8bb37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-backport Fix must be backported to stable release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backend validation on phone numbers fails
2 participants