-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature/233 fix values partij identificatoren #291
Feature/233 fix values partij identificatoren #291
Conversation
c90b055
to
d395b24
Compare
d395b24
to
8a83b40
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #291 +/- ##
==========================================
+ Coverage 97.10% 97.21% +0.11%
==========================================
Files 177 180 +3
Lines 8656 8998 +342
==========================================
+ Hits 8405 8747 +342
Misses 251 251 ☔ View full report in Codecov by Sentry. |
3a04c9d
to
634a0f3
Compare
src/openklant/components/klantinteracties/tests/test_validators.py
Outdated
Show resolved
Hide resolved
5011d28
to
88b0cf2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some final comments/thoughts.
09dcfc5
to
9269b0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just two questions about potential cleanup. Make sure to rebase on master before merging
[#233] Fix tests [#233] Install django-digid-eherkenning [#233] Fix tests [#233] Improve Validator [#233] Fix tests [#233] Isort and Flake8 [#233] Improvements [#233] Remove django-digid-eherkenning [#233] Fix requirements [#233] Fix requirements 2 [#233] Fix tests [#233] Flake8 [#233] Fix validation errors [#233] Update class [#233] Remove unused import [#233] Update klantinteracties.json and help_text in migrations [#233] Update overig constants [#233] Pass variables through constructor [#233] Change PartijIdentificatorValidator call [#233] Use validators from vng_api_commons [#233] Fix import [#233] Fix validate api [#233] Fix REGISTERS structure [#233] Fix tests [#233] Improve validator [#233] Fix messages [#233] Fix Flake [#233] Update kvk_nummer naming [#233] Update vestigingsnummer naming [#233] Update some names [#233] Update some names [#233] Update migration file [#233] Update naming [#233] Fix test messages [#233] Fix some tests [#233] Improve error message [#233] Fix third level check [#233] Fix partij_identificator_object_id message [#233] Fix tests and pre-merge [#233] Update migrations [#233] bin/generate_schema_for_component.sh klantinteracties and contactgegevens [#233] Fix test [#233] Fix test messages and create new [#233] Change dict in list
980da3f
to
f41c29f
Compare
Fixes #233
ChoiceFields:
partij_identificator_code_register
partij_identificator_code_objecttype
partij_identificator_code_soort_object_id
Created a validator for the hierarchy specified in this #233 (comment)
In particular, each choice must be part of the group admitted by the top level choice.
If the top level choice is
overige
or isNone
, the rule no longer applies.PartijIdentificatorCodeRegister
->PartijIdentificatorCodeObjectType
->PartijIdentificatorCodeSoortObjectId
Upgraded the
commonground-api-common
to 2.4.1bin/generate_schema_for_component.sh
Allowed cases:
Not allowd cases: all those that do not respect the hierarchy, and those where the level in between is overig, because once the register is chosen the whole structure must be respected