Skip to content

Commit

Permalink
chore: Remove obsolete actor (apache#27147)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Feb 20, 2024
1 parent c50dd36 commit 986e417
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions superset/commands/explore/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions superset/explore/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -106,7 +106,6 @@ def get(self) -> Response:
"""
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),
Expand Down

0 comments on commit 986e417

Please sign in to comment.