fix: Config for dataset health check#12906
Conversation
| logger.exception("Found but failed to import local superset_config") | ||
| raise | ||
|
|
||
| # It's possible to add a dataset health check logic which is specific to your system. |
There was a problem hiding this comment.
config listed below the overwrite function won't be overwritten. Have to move it up.
There was a problem hiding this comment.
Maybe add a comment block here to stop others from adding new config below this line?
# -------------------------------------------------------------------
# * WARNING: STOP EDITING HERE *
# -------------------------------------------------------------------
# Don't add config values below this line since local configs won't be
# able to override them.
There was a problem hiding this comment.
+1 for that warning, we've seen issues with config values being added after overrides are loaded.
| data_["template_params"] = self.template_params | ||
| data_["is_sqllab_view"] = self.is_sqllab_view | ||
| data_["health_check_message"] = self.health_check_message | ||
| data_["health_check_message"] = ( |
There was a problem hiding this comment.
Should not return health check message, when feature is disabled but had populated health check message before.
There was a problem hiding this comment.
Maybe add this comment to code as well?
# Don't return previously populated health check message in case
# the health check feature is turned off
ktmud
left a comment
There was a problem hiding this comment.
LGTM with some suggestions for code comments
Codecov Report
@@ Coverage Diff @@
## master #12906 +/- ##
==========================================
- Coverage 66.97% 63.42% -3.56%
==========================================
Files 1026 490 -536
Lines 50330 30256 -20074
Branches 5242 0 -5242
==========================================
- Hits 33711 19189 -14522
+ Misses 16485 11067 -5418
+ Partials 134 0 -134
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
* master: (23 commits) feat(explore): clear search on dataset change (apache#12909) chore: remove SIP-38 feature flag (apache#12894) fix: Config for dataset health check (apache#12906) fix(chart): allow null for most query object props (apache#12905) feat: add separate endpoint to fetch function names for autocomplete (apache#12840) chore: add required review on master (apache#12694) fix: comment typo (apache#12898) Migrates Radio component from Bootstrap to AntD. (apache#12738) fix: allow users to reset their passwords (apache#12886) fix(explore): missing select when groupby without metrics (apache#12890) refactor: dbapi exception mapping for dbapi's (apache#12869) feat(style-theme): add support for custom superset themes (apache#12858) chore(lint): fix pre-commit error (apache#12884) refactor(color-schemes): refactor setting of color schemes (apache#12857) feat(native-filters): Add defaultValue for Native filters modal (apache#12199) feat(release): add github token to changelog script (apache#12872) fix(menu): always show settings dropdown (apache#12877) Migrates Label component from Bootstrap to AntD. (apache#12774) [Helm] Automate datasource import (apache#10771) build: Skip loading example data from configs in CI (apache#12610) ...
SUMMARY
Found a couple issues when I tried to enable dataset health check in airbnb.
TEST PLAN
CI and manual test
ADDITIONAL INFORMATION