[SQLLab] Fix, database api unlimited page size v2 (#8002)

* [database] Fix, Removes the limit for the page size, Bump FAB to 2.1.8

Old FAB API had no limits by default, this will keep this behaviour
but only for this endpoint

* [sqllab] Add test for database API

* [sqllab] Add test for database API

* [sqllab] Include page zero on request

* [sqllab] Fix, Black and requirements

* [sqllab] Make database API return unlimited results

* [sqllab] just a test

* [sqllab] Bump FAB to 2.1.9

* [sqllab] Remove unused import
This commit is contained in:
Daniel Vaz Gaspar
2019-08-08 19:37:00 +01:00
committed by Maxime Beauchemin
parent 2f2a3b79b4
commit 73cdad2375
5 changed files with 25 additions and 10 deletions

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)