mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[table editor] fix 'Autocomplete filters' checkbox doesn't stick
This commit is contained in:
parent
54ae215d11
commit
ba329440bc
@ -329,7 +329,7 @@ export class DatasourceEditor extends React.PureComponent {
|
|||||||
control={<TextControl />}
|
control={<TextControl />}
|
||||||
/>
|
/>
|
||||||
<Field
|
<Field
|
||||||
fieldKey="filter_select"
|
fieldKey="filter_select_enabled"
|
||||||
label={t('Autocomplete filters')}
|
label={t('Autocomplete filters')}
|
||||||
descr={t('Whether to populate autocomplete filters options')}
|
descr={t('Whether to populate autocomplete filters options')}
|
||||||
control={<CheckboxControl />}
|
control={<CheckboxControl />}
|
||||||
|
@ -188,7 +188,8 @@ class BaseDatasource(AuditMixinNullable, ImportMixin):
|
|||||||
'description': self.description,
|
'description': self.description,
|
||||||
'database': self.database.data, # pylint: disable=no-member
|
'database': self.database.data, # pylint: disable=no-member
|
||||||
'default_endpoint': self.default_endpoint,
|
'default_endpoint': self.default_endpoint,
|
||||||
'filter_select': self.filter_select_enabled,
|
'filter_select': self.filter_select_enabled, # TODO deprecate
|
||||||
|
'filter_select_enabled': self.filter_select_enabled,
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
'datasource_name': self.datasource_name,
|
'datasource_name': self.datasource_name,
|
||||||
'type': self.type,
|
'type': self.type,
|
||||||
|
@ -488,6 +488,7 @@ class DruidDatasource(Model, BaseDatasource):
|
|||||||
export_fields = (
|
export_fields = (
|
||||||
'datasource_name', 'is_hidden', 'description', 'default_endpoint',
|
'datasource_name', 'is_hidden', 'description', 'default_endpoint',
|
||||||
'cluster_name', 'offset', 'cache_timeout', 'params',
|
'cluster_name', 'offset', 'cache_timeout', 'params',
|
||||||
|
'filter_select_enabled',
|
||||||
)
|
)
|
||||||
update_from_object_fields = export_fields
|
update_from_object_fields = export_fields
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ class SqlaTable(Model, BaseDatasource):
|
|||||||
export_fields = (
|
export_fields = (
|
||||||
'table_name', 'main_dttm_col', 'description', 'default_endpoint',
|
'table_name', 'main_dttm_col', 'description', 'default_endpoint',
|
||||||
'database_id', 'offset', 'cache_timeout', 'schema',
|
'database_id', 'offset', 'cache_timeout', 'schema',
|
||||||
'sql', 'params', 'template_params')
|
'sql', 'params', 'template_params', 'filter_select_enabled')
|
||||||
update_from_object_fields = [
|
update_from_object_fields = [
|
||||||
f for f in export_fields if f not in ('table_name', 'database_id')]
|
f for f in export_fields if f not in ('table_name', 'database_id')]
|
||||||
export_parent = 'database'
|
export_parent = 'database'
|
||||||
|
Loading…
Reference in New Issue
Block a user