Skip to content

Commit e40977f

Browse files
liuxiranjohzchen
authored andcommitted
chore: cherry-pick 9728a43
1 parent 2360b52 commit e40977f

File tree

4 files changed

+2
-38
lines changed

4 files changed

+2
-38
lines changed

api/internal/route.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
"github.com/apisix/manager-api/internal/handler/label"
3636
"github.com/apisix/manager-api/internal/handler/plugin_config"
3737
"github.com/apisix/manager-api/internal/handler/route"
38-
"github.com/apisix/manager-api/internal/handler/route_online_debug"
3938
"github.com/apisix/manager-api/internal/handler/schema"
4039
"github.com/apisix/manager-api/internal/handler/server_info"
4140
"github.com/apisix/manager-api/internal/handler/service"
@@ -70,7 +69,6 @@ func SetUpRouter() *gin.Engine {
7069
healthz.NewHandler,
7170
authentication.NewHandler,
7271
global_rule.NewHandler,
73-
route_online_debug.NewHandler,
7472
server_info.NewHandler,
7573
label.NewHandler,
7674
data_loader.NewHandler,

api/test/e2enew/route_online_debug/route_online_debug_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
func TestRoute(t *testing.T) {
3030
gomega.RegisterFailHandler(ginkgo.Fail)
31-
ginkgo.RunSpecs(t, "route online debug suite")
31+
//ginkgo.RunSpecs(t, "route online debug suite")
3232
}
3333

3434
var _ = ginkgo.AfterSuite(func() {

docs/en/latest/USER_GUIDE.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -49,34 +49,6 @@ The Route module aims to control routes by UI instead of calling APIs.
4949

5050
![route-create-done-list-en](https://user-images.githubusercontent.com/40708551/112923280-a0a94080-912b-11eb-8b83-3960778ecf8a.png)
5151

52-
### Online debug
53-
54-
We can debug a route both published or offline with the online debug function, which is located in the routes list page.
55-
56-
1. Debug a published route
57-
58-
![route-debug-published](../../assets/images/route-debug-published.png)
59-
60-
2. Debug a offline route
61-
62-
![route-debug-offline](https://user-images.githubusercontent.com/40708551/112923419-e5cd7280-912b-11eb-8e7e-57c3c4fe31ef.png)
63-
64-
3. Debug a published route with query params
65-
66-
![route-debug-query-params](../../assets/images/route-debug-query-params.png)
67-
68-
4. Debug a published route with header params
69-
70-
![route-debug-header-params](../../assets/images/route-debug-header-params.png)
71-
72-
5. Debug a published route with body params
73-
74-
![route-debug-body-params](../../assets/images/route-debug-body-params.png)
75-
76-
6. Debug a published route with basic auth
77-
78-
![route-debug-basic-auth](../../assets/images/route-debug-basic-auth.png)
79-
8052
## Setting
8153

8254
![setting](https://user-images.githubusercontent.com/40708551/112923561-22996980-912c-11eb-926f-45177500eb65.png)

web/src/pages/Route/List.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
Dropdown,
3636
} from 'antd';
3737
import { history, useIntl } from 'umi';
38-
import { PlusOutlined, BugOutlined, ExportOutlined, ImportOutlined, DownOutlined } from '@ant-design/icons';
38+
import { PlusOutlined, ExportOutlined, ImportOutlined, DownOutlined } from '@ant-design/icons';
3939
import { js_beautify } from 'js-beautify';
4040
import yaml from 'js-yaml';
4141
import moment from 'moment';
@@ -204,12 +204,6 @@ const Page: React.FC = () => {
204204
setUploadFileList([]);
205205
setShowImportModal(true);
206206
}
207-
}, {
208-
name: formatMessage({ id: 'page.route.onlineDebug' }),
209-
icon: <BugOutlined />,
210-
onClick: () => {
211-
setDebugDrawVisible(true)
212-
}
213207
}
214208
]
215209

0 commit comments

Comments
 (0)