[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:
Daniel Vaz Gaspar 2019-08-06 06:52:43 +01:00 committed by Maxime Beauchemin
parent 0c817e5fa9
commit 8db419fe99
2 changed files with 4 additions and 1 deletions

View File

@ -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'))}

View File

@ -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)