mirror of https://github.com/apache/superset.git
Increasing page_size to 500 in crud
This commit is contained in:
parent
4941565a41
commit
0e0ae7bc92
|
@ -37,7 +37,7 @@ class DeleteMixin(object):
|
||||||
|
|
||||||
|
|
||||||
class PanoramixModelView(ModelView):
|
class PanoramixModelView(ModelView):
|
||||||
page_size = 100
|
page_size = 500
|
||||||
|
|
||||||
|
|
||||||
class TableColumnInlineView(CompactCRUDMixin, PanoramixModelView):
|
class TableColumnInlineView(CompactCRUDMixin, PanoramixModelView):
|
||||||
|
@ -50,7 +50,7 @@ class TableColumnInlineView(CompactCRUDMixin, PanoramixModelView):
|
||||||
list_columns = [
|
list_columns = [
|
||||||
'column_name', 'type', 'groupby', 'filterable', 'count_distinct',
|
'column_name', 'type', 'groupby', 'filterable', 'count_distinct',
|
||||||
'sum', 'min', 'max', 'is_dttm']
|
'sum', 'min', 'max', 'is_dttm']
|
||||||
page_size = 100
|
page_size = 500
|
||||||
description_columns = {
|
description_columns = {
|
||||||
'is_dttm': (
|
'is_dttm': (
|
||||||
"Whether to make this column available as a "
|
"Whether to make this column available as a "
|
||||||
|
@ -77,7 +77,7 @@ class ColumnInlineView(CompactCRUDMixin, PanoramixModelView):
|
||||||
'column_name', 'type', 'groupby', 'filterable', 'count_distinct',
|
'column_name', 'type', 'groupby', 'filterable', 'count_distinct',
|
||||||
'sum', 'min', 'max']
|
'sum', 'min', 'max']
|
||||||
can_delete = False
|
can_delete = False
|
||||||
page_size = 100
|
page_size = 500
|
||||||
|
|
||||||
def post_update(self, col):
|
def post_update(self, col):
|
||||||
col.generate_metrics()
|
col.generate_metrics()
|
||||||
|
@ -92,7 +92,7 @@ class SqlMetricInlineView(CompactCRUDMixin, PanoramixModelView):
|
||||||
'metric_name', 'description', 'verbose_name', 'metric_type',
|
'metric_name', 'description', 'verbose_name', 'metric_type',
|
||||||
'expression', 'table']
|
'expression', 'table']
|
||||||
add_columns = edit_columns
|
add_columns = edit_columns
|
||||||
page_size = 100
|
page_size = 500
|
||||||
appbuilder.add_view_no_menu(SqlMetricInlineView)
|
appbuilder.add_view_no_menu(SqlMetricInlineView)
|
||||||
|
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ class MetricInlineView(CompactCRUDMixin, PanoramixModelView):
|
||||||
'datasource', 'json']
|
'datasource', 'json']
|
||||||
add_columns = [
|
add_columns = [
|
||||||
'metric_name', 'verbose_name', 'metric_type', 'datasource', 'json']
|
'metric_name', 'verbose_name', 'metric_type', 'datasource', 'json']
|
||||||
page_size = 100
|
page_size = 500
|
||||||
validators_columns = {
|
validators_columns = {
|
||||||
'json': [validate_json],
|
'json': [validate_json],
|
||||||
}
|
}
|
||||||
|
@ -279,7 +279,7 @@ class DatasourceModelView(PanoramixModelView, DeleteMixin):
|
||||||
edit_columns = [
|
edit_columns = [
|
||||||
'datasource_name', 'cluster', 'description', 'owner',
|
'datasource_name', 'cluster', 'description', 'owner',
|
||||||
'is_featured', 'is_hidden', 'default_endpoint', 'offset']
|
'is_featured', 'is_hidden', 'default_endpoint', 'offset']
|
||||||
page_size = 100
|
page_size = 500
|
||||||
base_order = ('datasource_name', 'asc')
|
base_order = ('datasource_name', 'asc')
|
||||||
description_columns = {
|
description_columns = {
|
||||||
'offset': "Timezone offset (in hours) for this datasource",
|
'offset': "Timezone offset (in hours) for this datasource",
|
||||||
|
|
Loading…
Reference in New Issue