You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/09/14 16:25:47 UTC
[GitHub] [incubator-superset] bkyryliuk commented on a change in pull request #10836: feat: Stop pending queries when user close dashboard
bkyryliuk commented on a change in pull request #10836:
URL: https://github.com/apache/incubator-superset/pull/10836#discussion_r488063666
##########
File path: superset/views/core.py
##########
@@ -1421,6 +1421,48 @@ def fave_slices( # pylint: disable=no-self-use
payload.append(dash)
return json_success(json.dumps(payload, default=utils.json_int_dttm_ser))
+ @api
+ @has_access_api
+ @event_logger.log_this
+ @expose("/dashboard/<dashboard_id>/stop/", methods=["POST"])
+ def stop_dashboard_queries( # pylint: disable=no-self-use
Review comment:
It may be useful to sync with @dpgaspar on using api v1.
Also please add some tests, we have presto on CI
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org