chore: add logging for "dashboard" action (#10744)

This commit is contained in:
Grace Guo 2020-09-01 20:14:22 -07:00 committed by GitHub
parent c1f2214d7c
commit e0ad9935c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1584,6 +1584,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
session.commit() session.commit()
return json_success(json.dumps({"published": dash.published})) return json_success(json.dumps({"published": dash.published}))
@event_logger.log_this
@has_access @has_access
@expose("/dashboard/<dashboard_id_or_slug>/") @expose("/dashboard/<dashboard_id_or_slug>/")
def dashboard( # pylint: disable=too-many-locals def dashboard( # pylint: disable=too-many-locals