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

Check for missing ZGW backend config in zgw_import_data command #1356

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

swrichards
Copy link
Contributor

Not having a ZGW backend configured is something that happens in the wild, and more broadly, it would be a good thing if the management command does not fail hard on a missing config (as now) but gracefully exits with an error message. Better reporting to users (including our Celery task wrapper for this command), and cuts down on false-positive Sentry pings.

@swrichards swrichards force-pushed the handle-missing-config-zgw-import-command branch from 2a25179 to 79e264e Compare August 16, 2024 17:27
@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.18%. Comparing base (f368210) to head (eb04350).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1356   +/-   ##
========================================
  Coverage    95.18%   95.18%           
========================================
  Files         1001     1001           
  Lines        37012    37025   +13     
========================================
+ Hits         35231    35244   +13     
  Misses        1781     1781           

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

@swrichards swrichards marked this pull request as ready for review August 19, 2024 07:18
Not having a ZGW backend configured is something that happens in
the wild, and more broadly, it would be a good thing if the
management command does not fail hard on a missing config (as now)
but gracefully exits with an error message. Better reporting to
users (including our Celery task wrapper for this command), and
cuts down on false-positive Sentry pings.
@swrichards swrichards force-pushed the handle-missing-config-zgw-import-command branch from 79e264e to eb04350 Compare August 19, 2024 07:37
@alextreme alextreme merged commit 9615907 into develop Aug 19, 2024
18 checks passed
@alextreme alextreme deleted the handle-missing-config-zgw-import-command branch August 19, 2024 14:05
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