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

Avoid resolving zgw objects in contactmomenten client #1328

Merged

Conversation

swrichards
Copy link
Contributor

The immediate trigger for this is that passing a zaken_client to the objectcontactmomenten is fraught now we support multiple zgw backends: which backend do we pass to resolve the zaak?

More generally: resolving does not belong in the API client, which should focus on fetching data from a service and returning it to the caller, which is a distinct concern from enriching the objects thus retrieved.

The immediate trigger for this is that passing a zaken_client
to the objectcontactmomenten is fraught now we support multiple
zgw backends: which backend do we pass to resolve the zaak?

More generally: resolving does not belong in the API client, which
should focus on fetching data from a service and returning it to
the caller, which is a distinct concern from enriching the objects
thus retrieved.
@swrichards swrichards marked this pull request as ready for review August 1, 2024 08:55
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.11%. Comparing base (451e3b4) to head (7381657).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1328      +/-   ##
===========================================
+ Coverage    95.09%   95.11%   +0.02%     
===========================================
  Files          993      993              
  Lines        36184    36173      -11     
===========================================
- Hits         34408    34407       -1     
+ Misses        1776     1766      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@swrichards swrichards merged commit 056f8e8 into develop Aug 1, 2024
18 checks passed
@swrichards swrichards deleted the avoid-resolving-in-objectcontactmomenten-client branch August 1, 2024 09:42
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.

3 participants