jfrag1 commented on code in PR #23853:
URL: https://github.com/apache/superset/pull/23853#discussion_r1197427055


##########
superset/cachekeys/api.py:
##########
@@ -40,9 +46,74 @@ class CacheRestApi(BaseSupersetModelRestApi):
     class_permission_name = "CacheRestApi"
     include_route_methods = {
         "invalidate",
+        "warm_up_cache",
     }
 
-    openapi_spec_component_schemas = (CacheInvalidationRequestSchema,)
+    openapi_spec_component_schemas = (
+        CacheInvalidationRequestSchema,
+        CacheWarmUpRequestSchema,
+        CacheWarmUpResponseSchema,
+    )
+
+    @expose("/warm_up_cache", methods=["PUT"])

Review Comment:
   keeping as `warm_up_cache` since I've moved the endpoint under 
`api/v1/charts/`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to