imbajin opened a new pull request, #834: URL: https://github.com/apache/hugegraph-toolchain/pull/834
## Purpose of the PR Graph-space usage below one GB appears as zero, and Hubble labels any quota above 99999 as unlimited. Creation defaults also differ between the form, backend, and Server. Paired Server/PD fix: https://github.com/hugegraph/hugegraph/pull/328 ## Main Changes - Carry optional `storage_used_kb` through the Java client and Hubble entity serialization. Keep the legacy integer-GB field and exclude usage metrics from mutation requests. - Display usage in KB/MB/GB and derive percentages from precise KB usage and the GB limit. Positive ratios below 0.01% display as `<0.01%`, including when the legacy Server ratio is zero. Share quota formatting between cards and tables; only the legacy `Integer.MAX_VALUE` sentinel displays as unlimited. - Align form and backend defaults: 128 CPU cores, 128 GB memory, 128 compute cores, 128 GB compute memory and 10240 GB storage. Keep graph/role limits at 100 and preserve explicitly supplied limits. API requests that omit compute limits inherit the request's CPU/memory values; all-omitted defaults remain 128/128. - Update English/Chinese form help and document the behavior with Chrome screenshots. The Server PR supplies precise usage and finite defaults for newly bootstrapped DEFAULT spaces. Existing persisted quotas are not migrated. This UI also works with older Servers through the legacy usage fallback. ## Verifying these changes - [x] Java Client `GraphSpaceAPITest`: 2 tests pass. - [x] Hubble `GraphSpaceControllerTest`: 11 tests pass, using the documented isolated candidate SDK and `-Dsdk.validation.mode=candidate`. - [x] Graph-space Jest tests: 41 pass with `--runInBand --testTimeout=15000`. - [x] TypeScript, scoped ESLint, i18n checks, and production Vite build pass. - [x] Chromium: login and anonymous modes, creation defaults, GraphSpace/graph round-trip switching (`ecommerce/orders` → `DEFAULT/people` → `ecommerce/orders`), account visibility, and sub-GB usage display. These checks use local API fixtures; screenshots are in the README. - Live cluster integration remains unverified: this environment has no live Server/PD/Store deployment. The current UI has one deployment connection (direct URL or PD discovery), not a Server connection selector. Chrome checks exercise its GraphSpace/graph selectors and retain screenshots before/after switching. ## Does this PR potentially affect the following parts? - [ ] Nope - [ ] Dependencies - [x] Modify configurations: creation defaults - [x] The public API: optional client response field - [x] Other affects: graph-space display ## Documentation Status - [x] `Doc - Done`: `hugegraph-hubble/README.md` and linked screenshots. ## 图解  图空间用量显示与配额语义:精度字段透传、旧版兼容回退、小占比可见及默认值一致。显示逻辑示意,不代表真实集群验收。 --- Source community PR: https://github.com/hugegraph/hugegraph-toolchain/pull/81. This upstream draft reuses the same branch. Figure PR numbers refer to that community source. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
