-
Notifications
You must be signed in to change notification settings - Fork 26
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
✨ [#4788] ConfigurationStep for Objects API registration config #4822
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4822 +/- ##
=======================================
Coverage 96.60% 96.60%
=======================================
Files 752 754 +2
Lines 25809 25853 +44
Branches 3411 3415 +4
=======================================
+ Hits 24932 24976 +44
Misses 613 613
Partials 264 264 ☔ View full report in Codecov by Sentry. |
dfdfd01
to
c52c208
Compare
1fe35d5
to
a4fde34
Compare
@sergei-maertens this PR of course depends on the changes in django-setup-configuration and zgw-consumers, but I figured it would be good if you could take a look at the implementation before I start working on #4789 |
b49b89b
to
e70f68a
Compare
0c8a7cb
to
3821f26
Compare
ecfece5
to
67390e6
Compare
5cb5618
to
4f92c5b
Compare
4f92c5b
to
0d16714
Compare
I've created a separate issue for the documentation (for all config steps) #4882 |
src/openforms/contrib/objects_api/setup_configuration/tests/test_objects_api_config.py
Outdated
Show resolved
Hide resolved
src/openforms/contrib/objects_api/setup_configuration/tests/test_objects_api_config.py
Outdated
Show resolved
Hide resolved
src/openforms/contrib/objects_api/setup_configuration/tests/test_objects_api_config.py
Outdated
Show resolved
Hide resolved
this is needed to load the Services required to setup configuration such as ObjectsAPIGroupConfig, etc.
add a web-init container and the required scripts for setup_configuration. Example data has been added to docker/setup_configuration
this step relies on the previously added ServiceConfigurationStep and can be used to set up the necessary configuration for the Objects API registration backend
to avoid having to bring up the Open Zaak and Objects/Objecttypes docker compose stacks for the CI tests to simulate upgrading Open Forms
to make sure there is a unique field that can be used to refer to the groups and identify them when they are loaded using setup-configuration
* Make Documenten and Catalogi API optional in config model * Add identifier * Use lowercase namespaces * Remove is_configured and validate_result * add tests for required fields, all fields and idempotency * Rename service_slug to service_identifier
identifiers were added instead of slugs, and the selftest functionality has been removed
since this is all tightly coupled with the objects API models, the steps and models should be defined there as well
* setup_configuration now only takes one yaml file as a source * remove legacy `is_configured` and `validate_result` hooks * change testing utils
currently django_model_refs are not recognized as attributes on the model, an upstream issue has been created for this
0d16714
to
edd2b72
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last polishing items, after that it's good to merge!
bin/setup_configuration.sh
Outdated
|
||
if [[ "${RUN_SETUP_CONFIG,,}" =~ ^(true|1|yes)$ ]]; then | ||
# wait for required services | ||
/wait_for_db.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/wait_for_db.sh | |
./wait_for_db.sh |
these scripts need to be debugged outside of docker context too, so you can't assume that they're available in the root of the system.
* add type: ignore to specific lines in steps.py instead of ignoring entire file with pyright * several docs improvements * remove unused SCRIPTPATH variable in wait_for_db.sh and setup_configuration.sh * move tests to objects_api.tests directory
edd2b72
to
07c23a6
Compare
Closes #4787
Changes
Checklist
Check off the items that are completed or not relevant.
Impact on features
Release management
I have updated the translations assets (you do NOT need to provide translations)
./bin/makemessages_js.sh
./bin/compilemessages_js.sh
Commit hygiene