mirror of https://github.com/apache/superset.git
[druid] Making scaning/refreshing Druid datasource view items optional (#8995)
This commit is contained in:
parent
5a04f30104
commit
d56abc3d34
|
@ -411,24 +411,26 @@ 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)
|
||||||
appbuilder.add_link(
|
|
||||||
"Scan New Datasources",
|
if self.config["DRUID_METADATA_LINKS_ENABLED"]:
|
||||||
label=__("Scan New Datasources"),
|
appbuilder.add_link(
|
||||||
href="/druid/scan_new_datasources/",
|
"Scan New Datasources",
|
||||||
category="Sources",
|
label=__("Scan New Datasources"),
|
||||||
category_label=__("Sources"),
|
href="/druid/scan_new_datasources/",
|
||||||
category_icon="fa-database",
|
category="Sources",
|
||||||
icon="fa-refresh",
|
category_label=__("Sources"),
|
||||||
)
|
category_icon="fa-database",
|
||||||
appbuilder.add_link(
|
icon="fa-refresh",
|
||||||
"Refresh Druid Metadata",
|
)
|
||||||
label=__("Refresh Druid Metadata"),
|
appbuilder.add_link(
|
||||||
href="/druid/refresh_datasources/",
|
"Refresh Druid Metadata",
|
||||||
category="Sources",
|
label=__("Refresh Druid Metadata"),
|
||||||
category_label=__("Sources"),
|
href="/druid/refresh_datasources/",
|
||||||
category_icon="fa-database",
|
category="Sources",
|
||||||
icon="fa-cog",
|
category_label=__("Sources"),
|
||||||
)
|
category_icon="fa-database",
|
||||||
|
icon="fa-cog",
|
||||||
|
)
|
||||||
appbuilder.add_separator("Sources")
|
appbuilder.add_separator("Sources")
|
||||||
|
|
||||||
def init_app_in_ctx(self) -> None:
|
def init_app_in_ctx(self) -> None:
|
||||||
|
|
|
@ -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
|
||||||
# ----------------------------------------------------
|
# ----------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue