✨ [#2440] Add config checks framework#2441
Draft
OlhaZahoruiko wants to merge 2 commits intodevelopfrom
Draft
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #2441 +/- ##
===========================================
- Coverage 93.96% 93.90% -0.07%
===========================================
Files 1214 1221 +7
Lines 48027 48126 +99
===========================================
+ Hits 45130 45192 +62
- Misses 2897 2934 +37 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
swrichards
reviewed
Apr 22, 2026
Collaborator
swrichards
left a comment
There was a problem hiding this comment.
@OlhaZahoruiko will continue this later when #2380 is done -- started here and realized the other should be done first.
Collaborator
There was a problem hiding this comment.
Let's have this in the openzaak model, to follow the pattern {django_app}/config_checks.py (or django_app/config_checks/fetch_cases.py if we want to separate them out)
|
|
||
| class FetchCasesCheck: | ||
| identifier = "fetch_cases" | ||
| label = "Fetch cases for BSN" |
| return request.user.is_active and request.user.is_superuser | ||
|
|
||
| def get_error_message(self, obj=None): | ||
| return "Only superusers may run configuration checks." |
| from .views import run_config_check | ||
|
|
||
| urlpatterns = [ | ||
| path( |
| success=True, | ||
| identifier=self.identifier, | ||
| verbose_name=self.label, | ||
| message=f"Check executed for BSN {bsn}", |
| identifier = "fetch_cases" | ||
| label = "Fetch cases for BSN" | ||
| form_class = FetchCasesForm | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Issue References
Checklist
docker-compose.ymlenvironment variablesenvironment variables