You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ch...@apache.org on 2021/05/23 10:13:30 UTC

[apisix-dashboard] 02/04: chore: cherry-pick 9728a430193331d135da4fd5661cd4100308afbf

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

chenjunxu pushed a commit to branch release/2.6.1
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git

commit e40977f85297827efc0c3639c12e698d951aeea9
Author: liuxiran <li...@apache.org>
AuthorDate: Tue May 18 17:36:39 2021 +0800

    chore: cherry-pick 9728a430193331d135da4fd5661cd4100308afbf
---
 api/internal/route.go                              |  2 --
 .../route_online_debug_suite_test.go               |  2 +-
 docs/en/latest/USER_GUIDE.md                       | 28 ----------------------
 web/src/pages/Route/List.tsx                       |  8 +------
 4 files changed, 2 insertions(+), 38 deletions(-)

diff --git a/api/internal/route.go b/api/internal/route.go
index ff101f0..c286743 100644
--- a/api/internal/route.go
+++ b/api/internal/route.go
@@ -35,7 +35,6 @@ import (
 	"github.com/apisix/manager-api/internal/handler/label"
 	"github.com/apisix/manager-api/internal/handler/plugin_config"
 	"github.com/apisix/manager-api/internal/handler/route"
-	"github.com/apisix/manager-api/internal/handler/route_online_debug"
 	"github.com/apisix/manager-api/internal/handler/schema"
 	"github.com/apisix/manager-api/internal/handler/server_info"
 	"github.com/apisix/manager-api/internal/handler/service"
@@ -70,7 +69,6 @@ func SetUpRouter() *gin.Engine {
 		healthz.NewHandler,
 		authentication.NewHandler,
 		global_rule.NewHandler,
-		route_online_debug.NewHandler,
 		server_info.NewHandler,
 		label.NewHandler,
 		data_loader.NewHandler,
diff --git a/api/test/e2enew/route_online_debug/route_online_debug_suite_test.go b/api/test/e2enew/route_online_debug/route_online_debug_suite_test.go
index 06b97a0..219d8d3 100644
--- a/api/test/e2enew/route_online_debug/route_online_debug_suite_test.go
+++ b/api/test/e2enew/route_online_debug/route_online_debug_suite_test.go
@@ -28,7 +28,7 @@ import (
 
 func TestRoute(t *testing.T) {
 	gomega.RegisterFailHandler(ginkgo.Fail)
-	ginkgo.RunSpecs(t, "route online debug suite")
+	//ginkgo.RunSpecs(t, "route online debug suite")
 }
 
 var _ = ginkgo.AfterSuite(func() {
diff --git a/docs/en/latest/USER_GUIDE.md b/docs/en/latest/USER_GUIDE.md
index b37b4e9..9058cd9 100644
--- a/docs/en/latest/USER_GUIDE.md
+++ b/docs/en/latest/USER_GUIDE.md
@@ -49,34 +49,6 @@ The Route module aims to control routes by UI instead of calling APIs.
 
 ![route-create-done-list-en](https://user-images.githubusercontent.com/40708551/112923280-a0a94080-912b-11eb-8b83-3960778ecf8a.png)
 
-### Online debug
-
-We can debug a route both published or offline with the online debug function, which is located in the routes list page.
-
-1. Debug a published route
-
-![route-debug-published](../../assets/images/route-debug-published.png)
-
-2. Debug a offline route
-
-![route-debug-offline](https://user-images.githubusercontent.com/40708551/112923419-e5cd7280-912b-11eb-8e7e-57c3c4fe31ef.png)
-
-3. Debug a published route with query params
-
-![route-debug-query-params](../../assets/images/route-debug-query-params.png)
-
-4. Debug a published route with header params
-
-![route-debug-header-params](../../assets/images/route-debug-header-params.png)
-
-5. Debug a published route with body params
-
-![route-debug-body-params](../../assets/images/route-debug-body-params.png)
-
-6. Debug a published route with basic auth
-
-![route-debug-basic-auth](../../assets/images/route-debug-basic-auth.png)
-
 ## Setting
 
 ![setting](https://user-images.githubusercontent.com/40708551/112923561-22996980-912c-11eb-926f-45177500eb65.png)
diff --git a/web/src/pages/Route/List.tsx b/web/src/pages/Route/List.tsx
index c494478..bff638f 100644
--- a/web/src/pages/Route/List.tsx
+++ b/web/src/pages/Route/List.tsx
@@ -35,7 +35,7 @@ import {
   Dropdown,
 } from 'antd';
 import { history, useIntl } from 'umi';
-import { PlusOutlined, BugOutlined, ExportOutlined, ImportOutlined, DownOutlined } from '@ant-design/icons';
+import { PlusOutlined, ExportOutlined, ImportOutlined, DownOutlined } from '@ant-design/icons';
 import { js_beautify } from 'js-beautify';
 import yaml from 'js-yaml';
 import moment from 'moment';
@@ -204,12 +204,6 @@ const Page: React.FC = () => {
           setUploadFileList([]);
           setShowImportModal(true);
         }
-      }, {
-        name: formatMessage({ id: 'page.route.onlineDebug' }),
-        icon: <BugOutlined />,
-        onClick: () => {
-          setDebugDrawVisible(true)
-        }
       }
     ]