[druid] Making scaning/refreshing Druid datasource view items optional (#8995)

This commit is contained in:
John Bodley 2020-01-22 15:53:16 -08:00 committed by GitHub
parent 5a04f30104
commit d56abc3d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 19 deletions

View File

@ -411,6 +411,8 @@ class SupersetAppInitializer:
appbuilder.add_view_no_menu(DruidMetricInlineView) appbuilder.add_view_no_menu(DruidMetricInlineView)
appbuilder.add_view_no_menu(DruidColumnInlineView) appbuilder.add_view_no_menu(DruidColumnInlineView)
appbuilder.add_view_no_menu(Druid) appbuilder.add_view_no_menu(Druid)
if self.config["DRUID_METADATA_LINKS_ENABLED"]:
appbuilder.add_link( appbuilder.add_link(
"Scan New Datasources", "Scan New Datasources",
label=__("Scan New Datasources"), label=__("Scan New Datasources"),

View File

@ -191,12 +191,17 @@ FAB_API_SWAGGER_UI = True
DRUID_TZ = tz.tzutc() DRUID_TZ = tz.tzutc()
DRUID_ANALYSIS_TYPES = ["cardinality"] DRUID_ANALYSIS_TYPES = ["cardinality"]
# Legacy Druid connector # Legacy Druid NoSQL (native) connector
# Druid supports a SQL interface in its newer versions. # Druid supports a SQL interface in its newer versions.
# Setting this flag to True enables the deprecated, API-based Druid # Setting this flag to True enables the deprecated, API-based Druid
# connector. This feature may be removed at a future date. # connector. This feature may be removed at a future date.
DRUID_IS_ACTIVE = False DRUID_IS_ACTIVE = False
# If Druid is active whether to include the links to scan/refresh Druid datasources.
# This should be disabled if you are trying to wean yourself off of the Druid NoSQL
# connector.
DRUID_METADATA_LINKS_ENABLED = True
# ---------------------------------------------------- # ----------------------------------------------------
# AUTHENTICATION CONFIG # AUTHENTICATION CONFIG
# ---------------------------------------------------- # ----------------------------------------------------