You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/06/07 03:48:31 UTC

[incubator-linkis] branch dev-1.2.0 updated: [Feature] In the engine material refresh interface, refeshAll and refesh are changed to refreshAll and refresh (#2215)

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

peacewong pushed a commit to branch dev-1.2.0
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git


The following commit(s) were added to refs/heads/dev-1.2.0 by this push:
     new 9d82e9bd7 [Feature] In the engine material refresh interface, refeshAll and refesh are changed to refreshAll and refresh (#2215)
9d82e9bd7 is described below

commit 9d82e9bd7d7f3324e9437826dd9d015ea51fc68e
Author: weixiao <le...@gmail.com>
AuthorDate: Tue Jun 7 11:48:25 2022 +0800

    [Feature] In the engine material refresh interface, refeshAll and refesh are changed to refreshAll and refresh (#2215)
---
 .../engineplugin/server/restful/EnginePluginRestful.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/linkis-engineconn-plugins/linkis-engineconn-plugin-framework/linkis-engineconn-plugin-server/src/main/java/org/apache/linkis/engineplugin/server/restful/EnginePluginRestful.java b/linkis-engineconn-plugins/linkis-engineconn-plugin-framework/linkis-engineconn-plugin-server/src/main/java/org/apache/linkis/engineplugin/server/restful/EnginePluginRestful.java
index e08c8c5b2..1beca04cb 100644
--- a/linkis-engineconn-plugins/linkis-engineconn-plugin-framework/linkis-engineconn-plugin-server/src/main/java/org/apache/linkis/engineplugin/server/restful/EnginePluginRestful.java
+++ b/linkis-engineconn-plugins/linkis-engineconn-plugin-framework/linkis-engineconn-plugin-server/src/main/java/org/apache/linkis/engineplugin/server/restful/EnginePluginRestful.java
@@ -42,9 +42,9 @@ public class EnginePluginRestful {
 
     @Autowired private EngineConnResourceService engineConnResourceService;
 
-    @RequestMapping(path = "/refeshAll", method = RequestMethod.GET)
-    public Message refeshAll(HttpServletRequest req) {
-        String username = ModuleUserUtils.getOperationUser(req, "refeshAll");
+    @RequestMapping(path = "/refreshAll", method = RequestMethod.GET)
+    public Message refreshAll(HttpServletRequest req) {
+        String username = ModuleUserUtils.getOperationUser(req, "refreshAll");
         if (Configuration.isAdmin(username)) {
             log.info("{} start to refresh all ec resource", username);
             engineConnResourceService.refreshAll(true);
@@ -55,12 +55,12 @@ public class EnginePluginRestful {
         }
     }
 
-    @RequestMapping(path = "/refesh", method = RequestMethod.GET)
-    public Message refeshAll(
+    @RequestMapping(path = "/refresh", method = RequestMethod.GET)
+    public Message refreshOne(
             HttpServletRequest req,
             @RequestParam(value = "ecType") String ecType,
             @RequestParam(value = "version", required = false) String version) {
-        String username = ModuleUserUtils.getOperationUser(req, "refeshAll");
+        String username = ModuleUserUtils.getOperationUser(req, "refreshOne");
         if (Configuration.isAdmin(username)) {
             log.info("{} start to refresh {} ec resource", username, ecType);
             RefreshEngineConnResourceRequest refreshEngineConnResourceRequest =


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org