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
Updating a zaaktype (PUT) raises an IntegrityError on gerelateerdeZaken #851
Comments
Publishing a zaaktype is done by making a However, those integrity errors need to be looked into. |
sergei-maertens
changed the title
Publishing a zaaktype creates a internal server error
Updating a zaaktype (PUT) raises an IntegrityError on gerelateerdeZaken
Feb 5, 2021
shea-maykinmedia
added a commit
that referenced
this issue
Feb 25, 2021
This was referenced Feb 25, 2021
shea-maykinmedia
added a commit
that referenced
this issue
Mar 12, 2021
shea-maykinmedia
added a commit
that referenced
this issue
Mar 12, 2021
shea-maykinmedia
added a commit
that referenced
this issue
Mar 12, 2021
shea-maykinmedia
added a commit
that referenced
this issue
Mar 12, 2021
shea-maykinmedia
added a commit
that referenced
this issue
Mar 12, 2021
sergei-maertens
pushed a commit
that referenced
this issue
Apr 15, 2021
sergei-maertens
pushed a commit
that referenced
this issue
Apr 15, 2021
sergei-maertens
pushed a commit
that referenced
this issue
Apr 15, 2021
sergei-maertens
pushed a commit
that referenced
this issue
Apr 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When we've already got a zaaktype on concept and we want to publish it (publicatieIndicatie set on true) we get an internal server error. The message in Open-Zaak log:
django.db.utils.IntegrityError: duplicate key value violates unique constraint "catalogi_zaaktypenrelati_zaaktype_id_gerelateerd__215fe641_uniq"
DETAIL: Key (zaaktype_id, gerelateerd_zaaktype)=(379, http://open-zaak.gemeentenet.local/catalogi/api/v1/zaaktypen/81256657-d7b1-4ddb-88de-054fccb0edfc) already exists.
It seems that we also need to update the attribute 'gerelateerdeZaaktypen'. Is this truly mandatory??? Can't we just keep the zaaktype the same and just publish it?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A http status 200 with a message that the zaaktype is now published or een error where it says that you can't have the same value at the attribute 'gerelateerdeZaaktypen'
The text was updated successfully, but these errors were encountered: