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

[#3215] Prefill with bewindvoering/machtigen #3241

Merged
merged 13 commits into from
Jul 17, 2023

Conversation

SilviaAmAm
Copy link
Contributor

@SilviaAmAm SilviaAmAm commented Jul 10, 2023

Fixes #3215

Related PR in the new builder: open-formulieren/formio-builder#26

@SilviaAmAm SilviaAmAm marked this pull request as draft July 10, 2023 12:06
@SilviaAmAm SilviaAmAm force-pushed the feature/3215-eherkenning-bewinfvoering-prefill branch from 3d93719 to 7f4609c Compare July 10, 2023 13:23
@SilviaAmAm SilviaAmAm force-pushed the feature/3215-eherkenning-bewinfvoering-prefill branch from 7f4609c to e07b4bf Compare July 10, 2023 15:51
@SilviaAmAm SilviaAmAm marked this pull request as ready for review July 10, 2023 15:51
@codecov
Copy link

codecov bot commented Jul 10, 2023

Codecov Report

Patch coverage: 96.70% and project coverage change: +0.04 🎉

Comparison is base (cfe03ca) 94.87% compared to head (32a8f8a) 94.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3241      +/-   ##
==========================================
+ Coverage   94.87%   94.91%   +0.04%     
==========================================
  Files         623      624       +1     
  Lines       19622    19672      +50     
  Branches     2220     2234      +14     
==========================================
+ Hits        18616    18672      +56     
+ Misses        716      708       -8     
- Partials      290      292       +2     
Impacted Files Coverage Δ
src/openforms/forms/admin/form_variable.py 100.00% <ø> (ø)
...c/openforms/forms/api/serializers/form_variable.py 100.00% <ø> (ø)
src/openforms/prefill/contrib/demo/plugin.py 90.47% <ø> (ø)
src/openforms/prefill/base.py 92.85% <83.33%> (-7.15%) ⬇️
src/openforms/prefill/contrib/stufbg/plugin.py 95.23% <90.00%> (+3.13%) ⬆️
...c/openforms/prefill/contrib/haalcentraal/plugin.py 92.13% <92.30%> (-0.55%) ⬇️
...ntication/contrib/digid_eherkenning_oidc/plugin.py 84.07% <100.00%> (+6.08%) ⬆️
src/openforms/forms/models/form_definition.py 92.07% <100.00%> (ø)
src/openforms/forms/models/form_variable.py 98.55% <100.00%> (+0.04%) ⬆️
src/openforms/prefill/__init__.py 92.77% <100.00%> (+0.99%) ⬆️
... and 4 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@CharString CharString left a comment

Choose a reason for hiding this comment

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

I find the codecov messages in the plugin weird. I'd expect there would already have been tests for these codepaths.

docs/manual/forms/form_fields.rst Outdated Show resolved Hide resolved
docs/manual/forms/form_fields.rst Outdated Show resolved Hide resolved
src/openforms/prefill/__init__.py Outdated Show resolved Hide resolved
src/openforms/prefill/tests/test_prefill_hook.py Outdated Show resolved Hide resolved
src/openforms/prefill/tests/test_prefill_hook.py Outdated Show resolved Hide resolved
@SilviaAmAm SilviaAmAm force-pushed the feature/3215-eherkenning-bewinfvoering-prefill branch from 30ca07b to 466e840 Compare July 11, 2023 08:53
Copy link
Member

@sergei-maertens sergei-maertens left a comment

Choose a reason for hiding this comment

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

Can you also use the constant/choices you defined instead of using the magic string "main" for defaults/fallbacks?

We should also properly document in the release notes that this contains breaking changes for the prefill plugin developers, as the public API now requires additional fields (and method signatures have changed).

src/openforms/prefill/__init__.py Outdated Show resolved Hide resolved
src/openforms/prefill/base.py Outdated Show resolved Hide resolved
src/openforms/prefill/contrib/haalcentraal/plugin.py Outdated Show resolved Hide resolved
src/openforms/prefill/contrib/haalcentraal/plugin.py Outdated Show resolved Hide resolved
src/openforms/prefill/contrib/haalcentraal/plugin.py Outdated Show resolved Hide resolved
@SilviaAmAm SilviaAmAm force-pushed the feature/3215-eherkenning-bewinfvoering-prefill branch from ad7761a to 15713b4 Compare July 14, 2023 08:24
Copy link
Member

@sergei-maertens sergei-maertens left a comment

Choose a reason for hiding this comment

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

Ship it!

@sergei-maertens sergei-maertens merged commit 2a24b94 into master Jul 17, 2023
26 of 27 checks passed
@sergei-maertens sergei-maertens deleted the feature/3215-eherkenning-bewinfvoering-prefill branch July 17, 2023 07:51
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.

Prefill data when using eHerkenning Bewindvoering
3 participants