[database] Fix, Removes the limit for the page size (#7987)
Old FAB API had no limits by default, this will keep this behaviour but only for this endpoint
This commit is contained in:
parent
0c817e5fa9
commit
8db419fe99
|
|
@ -218,7 +218,8 @@ export default class TableSelector extends React.PureComponent {
|
|||
'/api/v1/database/?q=' +
|
||||
'(keys:!(none),' +
|
||||
'filters:!((col:expose_in_sqllab,opr:eq,value:!t)),' +
|
||||
'order_columns:database_name,order_direction:asc)'
|
||||
'order_columns:database_name,order_direction:asc,' +
|
||||
'page:0,page_size:-1)'
|
||||
}
|
||||
onChange={this.onDatabaseChange}
|
||||
onAsyncError={() => this.props.handleError(t('Error while fetching database list'))}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,8 @@ class DatabaseRestApi(DatabaseMixin, ModelRestApi):
|
|||
"allows_subquery",
|
||||
"backend",
|
||||
]
|
||||
# Removes the local limit for the page size
|
||||
max_page_size = -1
|
||||
|
||||
|
||||
appbuilder.add_api(DatabaseRestApi)
|
||||
|
|
|
|||
Loading…
Reference in New Issue