Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[dashboard] fix, enable info endpoint (apache#9015)
Browse files Browse the repository at this point in the history
* [dashboard] fix, enable info endpoint

* add info to REST_MODEL_VIEW_CRUD_SET

(cherry picked from commit c552c85)
  • Loading branch information
nytai authored and John Bodley committed Jan 25, 2020
1 parent b52dfd3 commit c732690
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class RouteMethod: # pylint: disable=too-few-public-methods
EDIT = "edit"
LIST = "list"
SHOW = "show"
INFO = "info"

# RestModelView specific
EXPORT = "export"
Expand All @@ -58,4 +59,4 @@ class RouteMethod: # pylint: disable=too-few-public-methods
# Commonly used sets
CRUD_SET = {ADD, LIST, EDIT, DELETE, ACTION_POST}
RELATED_VIEW_SET = {ADD, LIST, EDIT, DELETE}
REST_MODEL_VIEW_CRUD_SET = {DELETE, GET, GET_LIST, POST, PUT}
REST_MODEL_VIEW_CRUD_SET = {DELETE, GET, GET_LIST, POST, PUT, INFO}

0 comments on commit c732690

Please sign in to comment.