-
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
✨ [#246] Add is_standaard_adres for DigitaalAdres #269
Conversation
e9eabe8
to
b139ff3
Compare
b139ff3
to
c93f378
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.
You should also change the validation for the voorkeur digitaal adress
to only allow these default addresses. Because I don't see a scenario where this would be wanted behavior.
@bart-maykin @joeribekker hmm you're right, though upon looking at this again, I don't know if what I implemented here makes sense to begin with actually, because with the current logic there can only be three default addresses in total (one for each type). Should I add the |
refinement: So, Partij should be included in the unique check. We should allow something like this, where preference is not necessarily a default option (this should be enforced by the client app if needed). default = per type, per party a. email: [email protected] (default, preference) |
c93f378
to
c47e98a
Compare
this was discussed on monday and as Joeri mentioned, we will not enforce this but leave it to client applications to enforce this if needed |
c47e98a
to
33ccbd7
Compare
@annashamray this PR is ready for review. I was working on splitting DigitaalAdres (#277) into two separate resources (one linked to Partij and one to Betrokkene), but as we talked about on slack we should probably discuss this next week, since it would be a breaking change |
33ccbd7
to
1eb0343
Compare
is_standaard_adres=True is unique per soort_digitaal_adres and setting a new default, revokes the other default
1eb0343
to
8076b6a
Compare
Fixes #246
Changes