Skip to content

Commit 1e51388

Browse files
author
root
committed
fix monitor
1 parent f9d042b commit 1e51388

82 files changed

Lines changed: 7329 additions & 1625 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Note.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Current version
166166
3. Status 列应该表示这个组件的真实运行态,installed 其实不属于这个态。
167167

168168

169-
server detail 的所有tab,当 Connection 都要验证ssh 连接是否存在,如何无法连接,直接显示无法连接,而不是默认的布局
169+
170170

171171

172172
ports tab 不稳定,经常打开显示 somethins wrong

backend/cmd/openapi/gen.go

Lines changed: 293 additions & 59 deletions
Large diffs are not rendered by default.

backend/cmd/openapi/gen_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func TestScanFile_WithHelperSeedsDiscoversSoftwareRoutes(t *testing.T) {
5858
t.Fatalf("load route function seeds: %v", err)
5959
}
6060

61-
routes, _ := scanFile(filepath.Join(routesDir, "software.go"), seeds)
61+
routes, _ := scanFile(filepath.Join(routesDir, "software.go"), seeds, handlerMetadata{})
6262
if len(routes) == 0 {
6363
t.Fatal("expected software routes to be discovered")
6464
}
@@ -70,6 +70,7 @@ func TestScanFile_WithHelperSeedsDiscoversSoftwareRoutes(t *testing.T) {
7070
"GET /api/servers/{serverId}/software/capabilities": "auth",
7171
"GET /api/servers/{serverId}/software/operations": "auth",
7272
"GET /api/servers/{serverId}/software/operations/{operationId}": "auth",
73+
"DELETE /api/servers/{serverId}/software/operations/{operationId}": "auth",
7374
"GET /api/software/local": "auth",
7475
"GET /api/software/local/{componentKey}": "auth",
7576
"GET /api/software/server-catalog": "auth",
@@ -103,7 +104,7 @@ func TestScanFile_WithInlineGroupHelperDiscoversSecretsRoutes(t *testing.T) {
103104
t.Fatalf("load route function seeds: %v", err)
104105
}
105106

106-
routes, _ := scanFile(filepath.Join(routesDir, "secrets.go"), seeds)
107+
routes, _ := scanFile(filepath.Join(routesDir, "secrets.go"), seeds, handlerMetadata{})
107108
if len(routes) == 0 {
108109
t.Fatal("expected secrets routes to be discovered")
109110
}

backend/cmd/openapi/schema.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ import (
1616
)
1717

1818
type swaggerSchemaHint struct {
19-
container string
20-
dataType string
19+
container string
20+
dataType string
21+
description string
2122
}
2223

2324
func (h swaggerSchemaHint) normalizedType() string {

0 commit comments

Comments
 (0)