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 <[email protected]> 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.  -### 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 - - - -2. Debug a offline route - - - -3. Debug a published route with query params - - - -4. Debug a published route with header params - - - -5. Debug a published route with body params - - - -6. Debug a published route with basic auth - - - ## Setting  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) - } } ]
