chore: Remove obsolete actor (#27147)

This commit is contained in:
John Bodley 2024-02-21 09:08:08 +13:00 committed by GitHub
parent c50dd3690a
commit 986e4178f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -17,12 +17,9 @@
from dataclasses import dataclass
from typing import Optional
from flask_appbuilder.security.sqla.models import User
@dataclass
class CommandParameters:
actor: User
permalink_key: Optional[str]
form_data_key: Optional[str]
datasource_id: Optional[int]

View File

@ -16,7 +16,7 @@
# under the License.
import logging
from flask import g, request, Response
from flask import request, Response
from flask_appbuilder.api import expose, protect, safe
from superset.commands.chart.exceptions import ChartNotFoundError
@ -106,7 +106,6 @@ class ExploreRestApi(BaseSupersetApi):
"""
try:
params = CommandParameters(
actor=g.user,
permalink_key=request.args.get("permalink_key", type=str),
form_data_key=request.args.get("form_data_key", type=str),
datasource_id=request.args.get("datasource_id", type=int),