This is an automated email from the ASF dual-hosted git repository.

erikrit pushed a commit to branch etr2460--annotationlayermodelview-read
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 3f187ca3796259c8da45642ca01f2cc169909536
Author: Erik Ritter <erik.rit...@airbnb.com>
AuthorDate: Wed Apr 1 18:01:13 2020 -0700

    Re-enable the AnnotationLayerModelView read API
---
 superset/views/annotations.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/views/annotations.py b/superset/views/annotations.py
index 5ba9750..7a81b18 100644
--- a/superset/views/annotations.py
+++ b/superset/views/annotations.py
@@ -95,7 +95,7 @@ class AnnotationLayerModelView(
     SupersetModelView, DeleteMixin
 ):  # pylint: disable=too-many-ancestors
     datamodel = SQLAInterface(AnnotationLayer)
-    include_route_methods = RouteMethod.CRUD_SET
+    include_route_methods = RouteMethod.CRUD_SET | { RouteMethod.API_READ }
 
     list_title = _("List Annotation Layer")
     show_title = _("Show Annotation Layer")

Reply via email to