Skip to content

✨ [#175] link a document to a zaak - #207

Open
OlhaZahoruiko wants to merge 1 commit into
mainfrom
feature/175-link-a-document-to-a-zaak
Open

✨ [#175] link a document to a zaak#207
OlhaZahoruiko wants to merge 1 commit into
mainfrom
feature/175-link-a-document-to-a-zaak

Conversation

@OlhaZahoruiko

@OlhaZahoruiko OlhaZahoruiko commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #175

Changes

[Describe the changes here]

@codecov-commenter

codecov-commenter commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.18%. Comparing base (2f6dfde) to head (35dd8ab).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #207      +/-   ##
==========================================
+ Coverage   77.86%   78.18%   +0.32%     
==========================================
  Files          79       79              
  Lines        2665     2705      +40     
  Branches      154      154              
==========================================
+ Hits         2075     2115      +40     
  Misses        557      557              
  Partials       33       33              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@OlhaZahoruiko
OlhaZahoruiko force-pushed the feature/175-link-a-document-to-a-zaak branch 2 times, most recently from 998ef2d to c6e8cd8 Compare June 10, 2026 12:47
@OlhaZahoruiko
OlhaZahoruiko marked this pull request as ready for review June 10, 2026 12:49
@OlhaZahoruiko
OlhaZahoruiko requested a review from CharString June 10, 2026 12:50

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you rebase onto main, you'll see a different pattern in the client you can follow.

Comment thread src/opendms/api/viewsets.py Outdated
Comment thread src/opendms/api/tests/test_zaak.py Outdated
Comment thread src/opendms/api/tests/test_zaak.py Fixed
Comment thread src/opendms/api/tests/test_zaak.py Fixed
@OlhaZahoruiko
OlhaZahoruiko force-pushed the feature/175-link-a-document-to-a-zaak branch from d8b28a7 to d053f83 Compare June 16, 2026 09:41
@OlhaZahoruiko
OlhaZahoruiko requested a review from CharString June 16, 2026 09:45
Comment on lines 48 to 85
def get_items(self, params: Mapping[str, object] = {}) -> Iterable[Zaak]:
"""
Fetch all zaken using pagination, this is used for retrieving zaken for the API.
"""
data = self.make_request(
self.endpoint,
params=params,
headers=CRS_HEADERS,
parse_into=PaginatedResponseData[Zaak],
)
return pagination_helper(self, data) # pyright: ignore[reportArgumentType]

def get_paginated_items(
self, params: Mapping[str, object] = {}
) -> PaginatedResponse[Zaak]:
return self.make_request(
self.endpoint,
params=params,
headers=CRS_HEADERS,
parse_into=PaginatedResponse[Zaak],
)

def get_paginated_items_by_zaaktype(
self,
zaaktype_url: str,
params: Mapping[str, object] = {},
) -> PaginatedResponse[Zaak]:
return self.make_request(
self.endpoint,
params={**params, "zaaktype": zaaktype_url},
headers=CRS_HEADERS,
parse_into=PaginatedResponse[Zaak],
)

def get_item_by_uuid(self, uuid: str) -> Zaak | None:
return self.make_request(
f"{self.endpoint}/{uuid}", headers=CRS_HEADERS, parse_into=Zaak
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Right. This is the pattern I meant.

@OlhaZahoruiko
OlhaZahoruiko force-pushed the feature/175-link-a-document-to-a-zaak branch from 2fc29fc to 35dd8ab Compare June 22, 2026 12:09
@OlhaZahoruiko
OlhaZahoruiko requested a review from CharString June 22, 2026 12:09
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.

As a developer I want to link a document to a zaak

3 participants