Skip to content

Conversation

@jerry609
Copy link

@jerry609 jerry609 commented Jan 5, 2026

主要变更

  • 将原 Dashboard 后端/前端迁移并收敛到 tools/dashboard/(backend/ -> tools/
    dashboard/backend,前端在 tools/dashboard/frontend),新增统一 tools/dashboard/Dockerfile、tools/dashboard/deploy-all-in-one.sh、Helm 示例 Chart tools/dashboard/helm-example,新增对应文档描述。
  • 后端能力:
    • 新增健康检查与版本接口:/health(z)、/ready(z)、/version
    • 新增 Swagger/OpenAPI:/swagger/doc.json、/swagger/ui/index.html
    • 新增平台配置相关 RBAC(Role/RoleBinding:ConfigMap/Secret)
    • 日志:根据日志策略推断允许的查询 hosts,优化错误提示;日志策略模型支持Elasticsearch 配置
    • 备份/诊断:备份输入校验与错误处理增强,支持备份 tar.gz 下载;诊断与 Pod 状态处理优化;
    • 重建场景补齐按 XStore 上下文列 Pod 与初始加载
  • 前端体验:
    • UI/兼容性与交互体验提升(Layout/Connect/Nodes 等页面更新)
    • XStore follower 管理增强:目标 Pod 选择、角色展示、日志/进度/Pod 详情等弹窗
    • 备份管理增强:校验/错误提示/进度计算策略优化
    • 集群创建:补齐 ProtocolVersion 与 RPCProtocolVersion
  • 其他:新增运维/测试辅助工具(如 tools/flowcontrol-stress、tools/monitoring-autofix)

jerry609 and others added 19 commits December 23, 2025 11:49
- Move dashboard backend/frontend under tools/dashboard\n- Add Dockerfile, all-in-one deploy script, and Helm example chart\n- Add optional Ingress template for helm-example\n- Standardize K8s object names (svc/deploy/config/secret) to polardbx-dashboard-backend\n- Docs: add minikube/kind image loading + local port-forward + cloud LB/Ingress guidance\n- Sync monitoring/logs/backup UI flows and related backend API changes
Change *.mod* to *.mod.c and *.mod.o to be more specific,
preventing TypeScript model files from being ignored.
- Introduced Swagger API documentation with OpenAPI v3 specification.
- Implemented health check endpoints: /health, /ready, and /version.
- Enhanced error handling for Swagger spec retrieval.
- Added unit tests for Swagger spec generation to ensure correctness.
…r creation

- Add ProtocolVersion based on MySQL version (8 for 8.x, 5 for 5.x)
- Set RPCProtocolVersion to '2' in CN static config
- Set EnableCoroutine to true

This fixes the cluster creation error:
- spec.protocolVersion: Unsupported value: 0
- status.specSnapshot.config.cn.static.RPCProtocolVersion: Unsupported value: 0
…lasticsearch configuration and improve UI form handling
…om log strategies and improving error messages
Copilot AI review requested due to automatic review settings January 5, 2026 12:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the Dashboard backend and frontend to tools/dashboard/, consolidating the application structure and enhancing the management experience for logs, backups, and follower nodes. The changes include new deployment scripts, health check endpoints, Swagger documentation, and improved RBAC for platform configuration. The frontend receives UI/UX improvements including better XStore follower management and backup validation.

Key changes:

  • Migration of Dashboard backend and frontend to unified tools/dashboard/ directory structure
  • Addition of deployment infrastructure (Dockerfile, deployment scripts, Helm charts)
  • Backend enhancements: health/version endpoints, Swagger API documentation, RBAC for ConfigMap/Secret
  • Frontend improvements: XStore follower management UI, backup validation, cluster creation wizard enhancements

Reviewed changes

Copilot reviewed 127 out of 580 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/dashboard/QUICK-START.md Documentation for deploying Dashboard to Kubernetes
tools/dashboard/Dockerfile Multi-stage build for frontend and backend
polardbx-ui/src/app/pages/nodes/nodes.component.ts Removed nodes listing page component
polardbx-ui/src/app/pages/node-detail/node-detail.component.ts Removed node detail page component
polardbx-ui/src/app/pages/connect/connect.component.ts Removed connection page component
polardbx-ui/src/app/models/logs.model.ts Removed log query models
polardbx-ui/src/app/components/xstore-rebuild/*.ts Removed XStore rebuild UI components
polardbx-ui/src/app/components/restore-job-management/restore-job-management.component.ts Removed restore job management component
polardbx-ui/src/app/components/logs-query/logs-query.component.ts Removed logs query component
polardbx-ui/src/app/components/cluster-creation-wizard/*.ts Removed cluster creation wizard
backend/pkg/k8s/client.go Removed K8s client wrapper functions
backend/pkg/config/config.go Removed image registry configuration
backend/pkg/api/*/endpoints.go Removed various API endpoint handlers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jerry609 jerry609 changed the title feat(dashboard): 迁移到 tools/dashboard 并增强日志/备份/从库管理体验 feat(dashboard): 完善后端架构并增强日志/备份/从库管理体验 Jan 5, 2026
@vettalwu vettalwu self-assigned this Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants