You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by xx...@apache.org on 2020/10/10 03:56:03 UTC

[kylin] branch master updated: KYLIN-4581 Modify the REST API url of update cube build engine

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

xxyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new 35fe9ad  KYLIN-4581 Modify the REST API url of update cube build engine
35fe9ad is described below

commit 35fe9ad17b9fc0355303dce2cbddbd9c1d1211fe
Author: yaqian.zhang <59...@qq.com>
AuthorDate: Fri Oct 9 19:03:39 2020 +0800

    KYLIN-4581 Modify the REST API url of update cube build engine
---
 build/smoke-test/testBuildCube.py                                       | 2 +-
 .../src/main/java/org/apache/kylin/rest/controller/CubeController.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/build/smoke-test/testBuildCube.py b/build/smoke-test/testBuildCube.py
index 733d1eb..18e6d46 100644
--- a/build/smoke-test/testBuildCube.py
+++ b/build/smoke-test/testBuildCube.py
@@ -47,7 +47,7 @@ class testBuildCube(unittest.TestCase):
                    'cubeName': cube_name}
         response = requests.request("PUT", self._clone_cube_url, json=payload, headers=self._headers)
         self.assertEqual(response.status_code, 200, 'Clone cube : ' + cube_name + ' failed.')
-        update_engine_url = self._base_url + "/cubes/" + cube_name + "/" + engine_type
+        update_engine_url = self._base_url + "/cubes/engine/" + cube_name + "/" + engine_type
         response = requests.request("PUT", update_engine_url, headers=self._headers)
         self.assertEqual(response.status_code, 200, 'Update engine type of cube : ' + cube_name + ' failed.')
 
diff --git a/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java b/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
index 76eb77e..70fc3e6 100644
--- a/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
+++ b/server-base/src/main/java/org/apache/kylin/rest/controller/CubeController.java
@@ -783,7 +783,7 @@ public class CubeController extends BasicController {
         return cubeRequest;
     }
 
-    @RequestMapping(value = "/{cubeName}/{engineType}", method = RequestMethod.PUT)
+    @RequestMapping(value = "/{cubeName}/engine/{engineType}", method = RequestMethod.PUT)
     @ResponseBody
     public void updateCubeEngineType(@PathVariable String cubeName, @PathVariable String engineType) throws IOException {
         checkCubeExists(cubeName);