[database] [log] Fix, Limit the amount of info on response (#8918)

This commit is contained in:
Daniel Vaz Gaspar 2020-01-03 16:35:12 +00:00 committed by GitHub
parent 1dbf17bebb
commit 4f8bf2b04d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,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}

View File

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