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

🐛 [#1904] Fix Case list crashing due to reused Statustypen #876

Merged

Conversation

stevenbal
Copy link
Contributor

task: https://taiga.maykinmedia.nl/project/open-inwoner/task/1904

if the ZGW APIs reuse StatusTypen for different ZaakTypen, we end up with multiple ZaakTypeStatusTypeConfig that have the same statustype_url, which led to errors when retrieving these configs. To fix this we explicitly filter for the correct ZaakTypeConfig as well

@stevenbal stevenbal marked this pull request as draft December 4, 2023 11:24
task: https://taiga.maykinmedia.nl/project/open-inwoner/task/1904

if the ZGW APIs reuse StatusTypen for different ZaakTypen, we end up with multiple `ZaakTypeStatusTypeConfig` that have the same `statustype_url`, which led to errors when retrieving these configs. To fix this we explicitly filter for the correct `ZaakTypeConfig` as well
@stevenbal stevenbal force-pushed the issue/1904-case-list-failure-zaaktypestatustypeconfig branch 2 times, most recently from 2a27bc1 to 9851e94 Compare December 4, 2023 12:17
@stevenbal stevenbal marked this pull request as ready for review December 4, 2023 13:03
Copy link
Contributor

@pi-sigma pi-sigma left a comment

Choose a reason for hiding this comment

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

I would document the use of the second status type in the test; otherwise this will likely appear mysterious in the future. Otherwise this looks good to me.

src/open_inwoner/openzaak/tests/test_cases.py Outdated Show resolved Hide resolved
@stevenbal stevenbal force-pushed the issue/1904-case-list-failure-zaaktypestatustypeconfig branch from 9851e94 to a1de2a8 Compare December 4, 2023 16:10
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (97ca46d) 92.80% compared to head (a1de2a8) 92.81%.
Report is 4 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #876   +/-   ##
========================================
  Coverage    92.80%   92.81%           
========================================
  Files          800      802    +2     
  Lines        27495    27525   +30     
========================================
+ Hits         25517    25547   +30     
  Misses        1978     1978           

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

@alextreme alextreme merged commit cf4458b into develop Dec 4, 2023
14 checks passed
@alextreme alextreme deleted the issue/1904-case-list-failure-zaaktypestatustypeconfig branch December 4, 2023 19:19
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.

4 participants