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
[druid] Making scaning/refreshing Druid datasource view items optional #8995
[druid] Making scaning/refreshing Druid datasource view items optional #8995
Conversation
YASSSS...LGTM |
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.
2 nits, otherwise lgtm
superset/config.py
Outdated
DRUID_IS_ACTIVE = True | ||
|
||
# If Druid is active whether to include the links to scan/refresh Druid datasources. | ||
# This should be disable if you are trying to wean yourself off of the Druid NoSQL |
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.
sp nit: This should be disabled
superset/config.py
Outdated
# If Druid is active whether to include the links to scan/refresh Druid datasources. | ||
# This should be disable if you are trying to wean yourself off of the Druid NoSQL | ||
# connector. | ||
DRUID_METADATA_VIEW_LINKS = True |
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.
maybe DRUID_METADATA_LINKS_ENABLED
?
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.
Agreed. The VIEW
term related to FAB views but the way it reads it's misleading.
4991c3a
to
b3c863d
Compare
b3c863d
to
f6366bb
Compare
Codecov Report
@@ Coverage Diff @@
## master #8995 +/- ##
==========================================
- Coverage 59.16% 59.16% -0.01%
==========================================
Files 367 367
Lines 11679 11680 +1
Branches 2862 2863 +1
==========================================
Hits 6910 6910
- Misses 4590 4591 +1
Partials 179 179
Continue to review full report at Codecov.
|
CATEGORY
Choose one
SUMMARY
Some deployments with charts backed by the legacy Druid NoSQL connector can't simply go cold turkey on fully disabling Druid however we would like to wean ourselves off of Druid starting by removing the option to scan for new or refresh the metadata of the Druid datasources. Note the later menu item is somewhat of a misnomer as it refreshes all Druid datasource from the source and not just those currently registered in Superset.
This PR adds a config option to simply remove the view items for scanning/refreshing Druid datasources.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE
When
DRUID_IS_ACTIVE = True
(non-default) andDRUID_METADATA_LINKS_ENABLED = True
(default)AFTER
When
DRUID_IS_ACTIVE = True
(non-default) andDRUID_METADATA_LINKS_ENABLED = False
(non-default)TEST PLAN
CI and tested locally.
ADDITIONAL INFORMATION
REVIEWERS
to: @michellethomas @mistercrunch @willbarrett