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

✨ [#147] Convenience endpoint for Klantcontact/Betrokkene/Onderwerpobject #260

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

Conversation

stevenbal
Copy link
Collaborator

@stevenbal stevenbal commented Oct 3, 2024

Fixes #147

questions:

  • should it be possible to pass Onderwerpobject.wasKlantcontact via convenience endpoint? Why does this field exist in the first place?
  • should it be possible to create without Onderwerpobject?
  • why does Betrokkene have had_klantcontact/klantcontact and was_partij/partij?

Changes

  • Convenience endpoint for Klantcontact/Betrokkene/Onderwerpobject
  • Fix incorrect viewname for onderwerpobject URL attribute
  • Add typehints to remove redoc warnings
  • Fix tests not running in CI due to changed-files action

previously this used the Klantcontact view, causing incorrect URLs to appear in the detail response for the Onderwerpobject endpoint
@stevenbal stevenbal marked this pull request as draft October 3, 2024 13:38
@stevenbal stevenbal force-pushed the feature/147-convenience-endpoint branch 4 times, most recently from 3d77381 to 4709654 Compare October 3, 2024 14:22
@stevenbal stevenbal force-pushed the feature/147-convenience-endpoint branch from 4709654 to d03fd1b Compare October 3, 2024 14:38
@stevenbal stevenbal marked this pull request as ready for review October 3, 2024 14:42
@@ -48,6 +49,11 @@
router.register("betrokkenen", BetrokkeneViewSet)
router.register("onderwerpobjecten", OnderwerpobjectViewSet)
router.register("bijlagen", BijlageViewSet)
router.register(
"klantcontact-convenience",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure how else I could name it without being way too long 😬

@stevenbal
Copy link
Collaborator Author

I had several questions, mostly related to the datamodel itself, because I haven't looked at it before:

  • should it be possible to pass Onderwerpobject.wasKlantcontact via convenience endpoint? Why does this field exist in the first place?
  • should it be possible to create without Onderwerpobject?
  • why does Betrokkene have had_klantcontact/klantcontact and was_partij/partij?

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.

Gecombineerd API endpoint om klantcontact, betrokkene en onderwerpobject te maken
1 participant