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

Feature/233 fix values partij identificatoren #291

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

danielmursa-dev
Copy link
Contributor

@danielmursa-dev danielmursa-dev commented Nov 25, 2024

Fixes #233

image

In this PR I have updated the fields so that they can be ChoiceFields:

  • partij_identificator_code_register
  • partij_identificator_code_objecttype
  • partij_identificator_code_soort_object_id

In addition to validating the fields, I created a validator so that the values chosen by the user follow rules/hierarchies, as written in this comment: #233 (comment)

In particular, each choice must be part of the group admitted by the superior choice.
If the superior choice is overige, the rule no longer applies.
PartijIdentificatorCodeRegister -> PartijIdentificatorCodeObjectType -> PartijIdentificatorCodeSoortObjectId

In commonground-api-common I created a new Validator for ObjectId: this is the PR
maykinmedia/commonground-api-common#58

PS:
I ask for a special check on Dutch translations

@danielmursa-dev danielmursa-dev force-pushed the feature/233-fix-values-partij-identificatoren branch 5 times, most recently from c90b055 to d395b24 Compare November 26, 2024 08:55
@danielmursa-dev danielmursa-dev force-pushed the feature/233-fix-values-partij-identificatoren branch from d395b24 to 8a83b40 Compare December 18, 2024 09:59
@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.21%. Comparing base (4715811) to head (e727954).
Report is 7 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@danielmursa-dev danielmursa-dev force-pushed the feature/233-fix-values-partij-identificatoren branch from d8e8384 to 28bf95d Compare December 20, 2024 11:16
[#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
@danielmursa-dev danielmursa-dev force-pushed the feature/233-fix-values-partij-identificatoren branch from 3a04c9d to 634a0f3 Compare December 23, 2024 13:11
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.

Fixed set of values for 'partij-identificatoren' (ENUM)
4 participants