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

[#3607] Refactor validation plugin, add BRK validator #3646

Merged
merged 14 commits into from
Jan 5, 2024

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Nov 29, 2023

Partly closes #3607

@Viicos Viicos force-pushed the feature/3607-brk-validator branch from 2b2e627 to a6eb071 Compare December 6, 2023 14:31
@Viicos Viicos force-pushed the feature/3607-brk-validator branch 4 times, most recently from 6c5ae2f to 507f855 Compare December 18, 2023 16:21
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (117de38) 96.06% compared to head (e11ab50) 96.09%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3646      +/-   ##
==========================================
+ Coverage   96.06%   96.09%   +0.03%     
==========================================
  Files         691      698       +7     
  Lines       22200    22398     +198     
  Branches     2565     2581      +16     
==========================================
+ Hits        21326    21524     +198     
  Misses        603      603              
  Partials      271      271              

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

@Viicos Viicos force-pushed the feature/3607-brk-validator branch 2 times, most recently from ab6929b to 70e2b6a Compare December 19, 2023 15:10
@Viicos Viicos marked this pull request as ready for review December 20, 2023 12:58
@sergei-maertens
Copy link
Member

Blocked by adding the formio-builder v0.11.0 in a separate PR

@Viicos Viicos force-pushed the feature/3607-brk-validator branch from 940910d to e41dac7 Compare December 27, 2023 16:25
src/openforms/contrib/brk/client.py Outdated Show resolved Hide resolved
src/openforms/contrib/brk/models.py Show resolved Hide resolved
src/openforms/api/drf_spectacular/plumbing.py Outdated Show resolved Hide resolved
src/openforms/contrib/brk/tests/test_validators.py Outdated Show resolved Hide resolved
src/openforms/contrib/brk/tests/test_validators.py Outdated Show resolved Hide resolved
src/openforms/validations/registry.py Outdated Show resolved Hide resolved
src/openforms/validations/registry.py Outdated Show resolved Hide resolved
src/openforms/validations/registry.py Show resolved Hide resolved
src/openforms/validations/registry.py Show resolved Hide resolved
Comment on lines +57 to +46
def function_validator(value, submission):
if value != "VALID":
raise DjangoValidationError("not VALID value")


function_validator.value_serializer = StringValueSerializer
Copy link
Member

Choose a reason for hiding this comment

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

oh this only concerns tests to set the attribute? If we don't have any actual function-based validator implementations, just drop support for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the next refactor PR handles this

@Viicos Viicos force-pushed the feature/3607-brk-validator branch from ddba05f to 3324c2f Compare January 3, 2024 13:57
src/openforms/contrib/brk/client.py Outdated Show resolved Hide resolved
src/openforms/contrib/brk/client.py Show resolved Hide resolved
src/openforms/contrib/brk/client.py Outdated Show resolved Hide resolved
src/openforms/contrib/brk/tests/base.py Show resolved Hide resolved
src/openforms/contrib/brk/validators.py Show resolved Hide resolved
src/openforms/formio/formatters/custom.py Outdated Show resolved Hide resolved
src/openforms/validations/tests/test_api.py Outdated Show resolved Hide resolved
src/openforms/validations/tests/test_registry.py Outdated Show resolved Hide resolved
@Viicos Viicos force-pushed the feature/3607-brk-validator branch from 97ae267 to aab22d0 Compare January 4, 2024 09:40
Copy link
Member

@sergei-maertens sergei-maertens left a comment

Choose a reason for hiding this comment

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

Nice, now as a final step before this can get merged, a cleanup of the commit history is in order I think 😬

@Viicos Viicos force-pushed the feature/3607-brk-validator branch from f7634c8 to aa5b890 Compare January 5, 2024 10:34
@Viicos Viicos force-pushed the feature/3607-brk-validator branch from aa5b890 to e11ab50 Compare January 5, 2024 11:39
@sergei-maertens sergei-maertens merged commit 3b16fff into master Jan 5, 2024
27 checks passed
@sergei-maertens sergei-maertens deleted the feature/3607-brk-validator branch January 5, 2024 12:03
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.

Als gemeente wil ik user-input valideren dmv data uit het Basisregistratie Kadaster (BRK)
3 participants