fix: small cleanup for created by me dashboards API (#19755)

This commit is contained in:
Daniel Vaz Gaspar 2022-04-20 12:11:38 +01:00 committed by GitHub
parent 22a92ed722
commit f06db796b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View File

@ -100,7 +100,6 @@ MODEL_VIEW_RW_METHOD_PERMISSION_MAP = {
MODEL_API_RW_METHOD_PERMISSION_MAP = {
"bulk_delete": "write",
"created_by_me": "read",
"delete": "write",
"distinct": "read",
"get": "read",

View File

@ -140,7 +140,6 @@ class DashboardRestApi(BaseSupersetModelRestApi):
"set_embedded",
"delete_embedded",
"thumbnail",
"created_by_me",
}
resource_name = "dashboard"
allow_browser_login = True

View File

@ -1587,7 +1587,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
@event_logger.log_this
@expose("/created_dashboards/<int:user_id>/", methods=["GET"])
def created_dashboards(self, user_id: int) -> FlaskResponse:
logging.warning(
logger.warning(
"%s.created_dashboards "
"This API endpoint is deprecated and will be removed in version 3.0.0",
self.__class__.__name__,