mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[CRUD] Improving performance by disabling editing Associated Chart] (#5238)
This commit is contained in:
parent
0509d7aefd
commit
d7d5327ef7
@ -211,7 +211,7 @@ class DruidDatasourceModelView(DatasourceModelView, DeleteMixin, YamlExportMixin
|
|||||||
order_columns = ['datasource_link', 'modified']
|
order_columns = ['datasource_link', 'modified']
|
||||||
related_views = [DruidColumnInlineView, DruidMetricInlineView]
|
related_views = [DruidColumnInlineView, DruidMetricInlineView]
|
||||||
edit_columns = [
|
edit_columns = [
|
||||||
'datasource_name', 'cluster', 'slices', 'description', 'owner',
|
'datasource_name', 'cluster', 'description', 'owner',
|
||||||
'is_hidden',
|
'is_hidden',
|
||||||
'filter_select_enabled', 'fetch_values_from',
|
'filter_select_enabled', 'fetch_values_from',
|
||||||
'default_endpoint', 'offset', 'cache_timeout']
|
'default_endpoint', 'offset', 'cache_timeout']
|
||||||
@ -219,7 +219,7 @@ class DruidDatasourceModelView(DatasourceModelView, DeleteMixin, YamlExportMixin
|
|||||||
'datasource_name', 'cluster', 'description', 'owner',
|
'datasource_name', 'cluster', 'description', 'owner',
|
||||||
)
|
)
|
||||||
add_columns = edit_columns
|
add_columns = edit_columns
|
||||||
show_columns = add_columns + ['perm']
|
show_columns = add_columns + ['perm', 'slices']
|
||||||
page_size = 500
|
page_size = 500
|
||||||
base_order = ('datasource_name', 'asc')
|
base_order = ('datasource_name', 'asc')
|
||||||
description_columns = {
|
description_columns = {
|
||||||
|
Loading…
Reference in New Issue
Block a user