Skip to content

Commit

Permalink
fix: small cleanup for created by me dashboards API
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar committed Apr 18, 2022
1 parent 57157c8 commit 2e5bb26
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion superset/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ class RouteMethod: # pylint: disable=too-few-public-methods

MODEL_API_RW_METHOD_PERMISSION_MAP = {
"bulk_delete": "write",
"created_by_me": "read",
"delete": "write",
"distinct": "read",
"get": "read",
Expand Down
1 change: 0 additions & 1 deletion superset/dashboards/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def ensure_thumbnails_enabled(self) -> Optional[Response]:
"set_embedded",
"delete_embedded",
"thumbnail",
"created_by_me",
}
resource_name = "dashboard"
allow_browser_login = True
Expand Down
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@ def fave_dashboards(self, user_id: int) -> FlaskResponse:
@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__,
Expand Down

0 comments on commit 2e5bb26

Please sign in to comment.