mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
slightly decouple sql_json, queries, and results http endpoints from … (#8626)
* slightly decouple sql_json, queries, and results http endpoints from biz logic * fix syntax errors * add some type annotations, fix a bug * remove unnecessary var decl and assign * add a lot more type annotations to fix tests * fix mypy issues
This commit is contained in:
@@ -645,13 +645,13 @@ def pessimistic_connection_handling(some_engine):
|
||||
class QueryStatus:
|
||||
"""Enum-type class for query statuses"""
|
||||
|
||||
STOPPED = "stopped"
|
||||
FAILED = "failed"
|
||||
PENDING = "pending"
|
||||
RUNNING = "running"
|
||||
SCHEDULED = "scheduled"
|
||||
SUCCESS = "success"
|
||||
TIMED_OUT = "timed_out"
|
||||
STOPPED: str = "stopped"
|
||||
FAILED: str = "failed"
|
||||
PENDING: str = "pending"
|
||||
RUNNING: str = "running"
|
||||
SCHEDULED: str = "scheduled"
|
||||
SUCCESS: str = "success"
|
||||
TIMED_OUT: str = "timed_out"
|
||||
|
||||
|
||||
def notify_user_about_perm_udate(granter, user, role, datasource, tpl_name, config):
|
||||
|
||||
Reference in New Issue
Block a user