fix(cubeops): preserve unknown sandbox states - #1350
Conversation
Review: fix(cubeops): preserve unknown sandbox states (#1350)SummaryThis PR fixes a display bug in CubeOps: The fix is correct and internally consistent:
Findings1. [Low] Test coverage gap — string-form statuses (translator_test.go)
2. [Low] Behavior change for status 0/2 — worth confirming (translator.go:155) The default-case change also affects statuses the PR doesn't target: a freshly created sandbox (status 0) will now briefly display as 3. [Suggestion, follow-up] WebUI actions don't account for Now that AI-generated review — based on the PR diff and the base-branch workspace; not a human approval. |
Return unknown instead of reporting unsupported CubeMaster states as running. Synchronize the SandboxState OpenAPI schema and generated frontend types. Signed-off-by: kamilu <kamilu@tencent.com>
e69d59e to
6a4a44f
Compare
sandbox may fail to pause or resume, and its state will goto
unknown, current webui has display errorbefore
after