-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: zaak geometry should not be deleted on zaak update #2588
fix: zaak geometry should not be deleted on zaak update #2588
Conversation
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.
license-eye has checked 2319 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
2021 | 1 | 297 | 0 |
Click to see the invalid file list
- src/main/java/net/atos/client/zgw/zrc/model/GeometryToBeDeleted.kt
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
Codecov ReportAttention: Patch coverage is
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #2588 +/- ##
============================================
+ Coverage 54.77% 54.81% +0.04%
- Complexity 3365 3372 +7
============================================
Files 1002 1003 +1
Lines 22747 22762 +15
Branches 1771 1777 +6
============================================
+ Hits 12459 12478 +19
- Misses 9376 9490 +114
+ Partials 912 794 -118
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…es (where the zaakgeometrie is not updated); work in progress
… custom JSONB serializer for geometry objects that can dynamically either set or delete a geometry in a zaak patch request
… custom JSONB serializer for geometry objects that can dynamically either set or delete a geometry in a zaak patch request
…d.kt Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
e473395
to
0eb7c84
Compare
src/test/kotlin/nl/info/client/zgw/zrc/jsonb/GeometryJsonbSerializerTest.kt
Outdated
Show resolved
Hide resolved
…alizerTest.kt Co-authored-by: Hristo Iliev <[email protected]>
Fixed issue where zaak geometry was deleted on every zaak update and fixed issue where zaak geometry update and deletions sometimes worked and sometimes did not. The issue was that for deletions a @JsonbNillable annotation was used on the Zaak object in the ZrcClient but for normal updates not. However this annotation is static and there is only one zaak patch method in the ZrcClient and this resulted in inconsistent behaviour. This was solved by introducing a custom JSONB serializer for the zaak Geometry class that dynamically either writes a null (for deletions) or the geometry (Point only for now) object to JSON.
Solves PZ-5299