fix: methods incorrect type and update deprecated targets (#23935)

This commit is contained in:
Daniel Vaz Gaspar
2023-05-05 18:57:27 +01:00
committed by GitHub
parent 841726d432
commit 694f93326d
45 changed files with 253 additions and 192 deletions

View File

@@ -47,7 +47,7 @@ class DashboardPermalinkRestApi(BaseSupersetApi):
openapi_spec_tag = "Dashboard Permanent Link"
openapi_spec_component_schemas = (DashboardPermalinkPostSchema,)
@expose("/<pk>/permalink", methods=["POST"])
@expose("/<pk>/permalink", methods=("POST",))
@protect()
@safe
@event_logger.log_this_with_context(
@@ -114,7 +114,7 @@ class DashboardPermalinkRestApi(BaseSupersetApi):
except DashboardNotFoundError as ex:
return self.response(404, message=str(ex))
@expose("/permalink/<string:key>", methods=["GET"])
@expose("/permalink/<string:key>", methods=("GET",))
@protect()
@safe
@event_logger.log_this_with_context(