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

Add a filter parameter to filter klantcontacten on a betrokkene's partij #256

Open
swrichards opened this issue Oct 2, 2024 · 0 comments
Labels
enhancement New feature or request triage

Comments

@swrichards
Copy link

Thema / Theme

Klantinteracties API

Omschrijving / Description

In addition to hadBetrokkene__uuid, and hadBetrokkene__url, add a new parameter hadBetrokkene__wasPartij__uuid to filter the klantcontacten list with reference to a specific Partij.

Toegevoegde waarde / Added value

"Give me all klantcontacten for a known Partij" is a common and obvious use-case, but currently has no easy path. You can either:

  1. Fetch all betrokkenen filtering by wasPartij__uuid, and then use the hadKlantcontact field to build up a list of klantcontacten. However, you then still have to fetch each klantcontact individually, which will require a lot of individual requests in order to build up the full list, which is undesirable.
  2. Fetch all klantcontacten with an expanded hadBetrokkenen.wasPartij and do the filtering by partij client-side. This is also undesirable, as you have to fetch the whole collection of klantcontacten to be sure all records for a particular Partij have been fetched.

Aanvullende opmerkingen / Additional context

No response

@swrichards swrichards added enhancement New feature or request triage labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
Status: Triage
Development

No branches or pull requests

1 participant