mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Some column description clarifications (#2536)
This commit is contained in:
parent
dcc6f2a18f
commit
c31210b96d
@ -45,6 +45,9 @@ class DruidColumnInlineView(CompactCRUDMixin, SupersetModelView): # noqa
|
|||||||
'max': _("Max"),
|
'max': _("Max"),
|
||||||
}
|
}
|
||||||
description_columns = {
|
description_columns = {
|
||||||
|
'filterable': _(
|
||||||
|
"Whether this column is exposed in the `Filters` section "
|
||||||
|
"of the explore view."),
|
||||||
'dimension_spec_json': utils.markdown(
|
'dimension_spec_json': utils.markdown(
|
||||||
"this field can be used to specify "
|
"this field can be used to specify "
|
||||||
"a `dimensionSpec` as documented [here]"
|
"a `dimensionSpec` as documented [here]"
|
||||||
@ -166,7 +169,18 @@ class DruidDatasourceModelView(SupersetModelView, DeleteMixin): # noqa
|
|||||||
"https://daringfireball.net/projects/markdown/'>markdown</a>"),
|
"https://daringfireball.net/projects/markdown/'>markdown</a>"),
|
||||||
'fetch_values_from': _(
|
'fetch_values_from': _(
|
||||||
"Time expression to use as a predicate when retrieving "
|
"Time expression to use as a predicate when retrieving "
|
||||||
"distinct values to populate the filter component"),
|
"distinct values to populate the filter component. "
|
||||||
|
"Only applies when `Enable Filter Select` is on. If "
|
||||||
|
"you enter `7 days ago`, the distinct list of values in "
|
||||||
|
"the filter will be populated based on the distinct value over "
|
||||||
|
"the past week"),
|
||||||
|
'filter_select_enabled': _(
|
||||||
|
"Whether to populate the filter's dropdown in the explore "
|
||||||
|
"view's filter section with a list of distinct values fetched "
|
||||||
|
"from the backend on the fly"),
|
||||||
|
'default_endpoint': _(
|
||||||
|
"Redirects to this endpoint when clicking on the datasource "
|
||||||
|
"from the datasource list"),
|
||||||
}
|
}
|
||||||
base_filters = [['id', DatasourceFilter, lambda: []]]
|
base_filters = [['id', DatasourceFilter, lambda: []]]
|
||||||
label_columns = {
|
label_columns = {
|
||||||
|
@ -40,6 +40,9 @@ class TableColumnInlineView(CompactCRUDMixin, SupersetModelView): # noqa
|
|||||||
"Whether to make this column available as a "
|
"Whether to make this column available as a "
|
||||||
"[Time Granularity] option, column has to be DATETIME or "
|
"[Time Granularity] option, column has to be DATETIME or "
|
||||||
"DATETIME-like"),
|
"DATETIME-like"),
|
||||||
|
'filterable': _(
|
||||||
|
"Whether this column is exposed in the `Filters` section "
|
||||||
|
"of the explore view."),
|
||||||
'type': _(
|
'type': _(
|
||||||
"The data type that was inferred by the database. "
|
"The data type that was inferred by the database. "
|
||||||
"It may be necessary to input a type manually for "
|
"It may be necessary to input a type manually for "
|
||||||
@ -163,8 +166,16 @@ class TableModelView(SupersetModelView, DeleteMixin): # noqa
|
|||||||
'fetch_values_predicate': _(
|
'fetch_values_predicate': _(
|
||||||
"Predicate applied when fetching distinct value to "
|
"Predicate applied when fetching distinct value to "
|
||||||
"populate the filter control component. Supports "
|
"populate the filter control component. Supports "
|
||||||
"jinja template syntax."
|
"jinja template syntax. Applies only when "
|
||||||
|
"`Enable Filter Select` is on."
|
||||||
),
|
),
|
||||||
|
'default_endpoint': _(
|
||||||
|
"Redirects to this endpoint when clicking on the table "
|
||||||
|
"from the table list"),
|
||||||
|
'filter_select_enabled': _(
|
||||||
|
"Whether to populate the filter's dropdown in the explore "
|
||||||
|
"view's filter section with a list of distinct values fetched "
|
||||||
|
"from the backend on the fly"),
|
||||||
}
|
}
|
||||||
base_filters = [['id', DatasourceFilter, lambda: []]]
|
base_filters = [['id', DatasourceFilter, lambda: []]]
|
||||||
label_columns = {
|
label_columns = {
|
||||||
@ -174,7 +185,9 @@ class TableModelView(SupersetModelView, DeleteMixin): # noqa
|
|||||||
'changed_on_': _("Last Changed"),
|
'changed_on_': _("Last Changed"),
|
||||||
'filter_select_enabled': _("Enable Filter Select"),
|
'filter_select_enabled': _("Enable Filter Select"),
|
||||||
'schema': _("Schema"),
|
'schema': _("Schema"),
|
||||||
'default_endpoint': _("Default Endpoint"),
|
'default_endpoint': _(
|
||||||
|
"Redirects to this endpoint when clicking on the datasource "
|
||||||
|
"from the datasource list"),
|
||||||
'offset': _("Offset"),
|
'offset': _("Offset"),
|
||||||
'cache_timeout': _("Cache Timeout"),
|
'cache_timeout': _("Cache Timeout"),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user