This is an automated email from the ASF dual-hosted git repository. villebro pushed a commit to branch 0.35 in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit bb5f5fc335d270e13c96214cab4bf334cfdab8f5 Author: Daniel Vaz Gaspar <[email protected]> AuthorDate: Fri Jan 3 16:35:12 2020 +0000 [database] [log] Fix, Limit the amount of info on response (#8918) --- superset/views/database/api.py | 2 ++ superset/views/log/api.py | 1 + 2 files changed, 3 insertions(+) diff --git a/superset/views/database/api.py b/superset/views/database/api.py index 54448b7..493de1d 100644 --- a/superset/views/database/api.py +++ b/superset/views/database/api.py @@ -52,6 +52,8 @@ class DatabaseRestApi(DatabaseMixin, ModelRestApi): "allows_cost_estimate", "backend", ] + show_columns = list_columns + # Removes the local limit for the page size max_page_size = -1 validators_columns = {"sqlalchemy_uri": sqlalchemy_uri_validator} diff --git a/superset/views/log/api.py b/superset/views/log/api.py index 0ebbd5d..8658e32 100644 --- a/superset/views/log/api.py +++ b/superset/views/log/api.py @@ -38,6 +38,7 @@ class LogRestApi(LogMixin, ModelRestApi): resource_name = "log" allow_browser_login = True list_columns = ("user.username", "action", "dttm") + show_columns = list_columns if (
