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

[#1149] Implemented e-Suite form's open submission API and added to cases views #502

Merged
merged 4 commits into from
Mar 2, 2023

Conversation

Bartvaderkin
Copy link
Contributor

@Bartvaderkin Bartvaderkin commented Feb 27, 2023

Note: the zgw-consumers update was needed because e-Suite's returns bad pagination fields and I had to modify the get_paginated_results utility. (and then it also had some changes itself in the way it ships the enum-choices).

Bart van der Schoor added 3 commits February 27, 2023 11:18

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ases views
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2023

Codecov Report

Merging #502 (63a2251) into develop (1747ff2) will increase coverage by 0.00%.
The diff coverage is 91.60%.

@@            Coverage Diff            @@
##           develop     #502    +/-   ##
=========================================
  Coverage    96.51%   96.51%            
=========================================
  Files          514      523     +9     
  Lines        18569    18891   +322     
=========================================
+ Hits         17921    18232   +311     
- Misses         648      659    +11     
Impacted Files Coverage Δ
src/open_inwoner/openzaak/api_models.py 99.32% <50.00%> (ø)
src/open_inwoner/openzaak/clients.py 85.71% <75.00%> (-4.77%) ⬇️
src/open_inwoner/openzaak/formapi.py 76.47% <76.47%> (ø)
src/open_inwoner/accounts/urls.py 100.00% <100.00%> (ø)
src/open_inwoner/accounts/views/cases.py 98.04% <100.00%> (+0.52%) ⬆️
src/open_inwoner/openzaak/admin.py 90.35% <100.00%> (ø)
...aak/migrations/0015_openzaakconfig_form_service.py 100.00% <100.00%> (ø)
src/open_inwoner/openzaak/models.py 97.84% <100.00%> (+0.02%) ⬆️
src/open_inwoner/openzaak/tests/shared.py 100.00% <100.00%> (ø)
src/open_inwoner/openzaak/tests/test_formapi.py 100.00% <100.00%> (ø)
... and 35 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -190,7 +190,7 @@ def test_get_role_name_display(self):
"voornamen": "",
},
)
expected = RolTypes.labels[RolTypes.natuurlijk_persoon]
expected = RolTypes.natuurlijk_persoon.label
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because the zgw-consumers dependency update

Comment on lines 142 to 147
def get_betrokkene_type_display(self):
return RolTypes.values[self.betrokkene_type]
return RolTypes[self.betrokkene_type].label

def get_omschrijving_generiek_display(self):
return RolOmschrijving.values[self.omschrijving_generiek]
return RolOmschrijving[self.omschrijving_generiek].label

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is because the zgw-consumers dependency update

@Bartvaderkin Bartvaderkin marked this pull request as ready for review March 1, 2023 11:30
@Bartvaderkin Bartvaderkin requested a review from vaszig March 1, 2023 11:30
Copy link
Contributor

@vaszig vaszig 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 change the order of the fields in admin as well. Now the FormsAPI is all the way at the bottom and does not help too much.
Tested locally and works fine!

@Bartvaderkin
Copy link
Contributor Author

@vaszig I removed the template variable and defined a fieldset for the OpenZaakConfigAdmin (also put the less interesting/huge things in a collapse group).

@alextreme alextreme merged commit 6bd7ec2 into develop Mar 2, 2023
@alextreme alextreme deleted the feature/open-submissions branch March 2, 2023 17:45
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.

None yet

4 participants