You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "LauraXia123 (via GitHub)" <gi...@apache.org> on 2026/06/05 10:09:46 UTC
[PR] [#11335] setting web v2 ui as default [gravitino]
LauraXia123 opened a new pull request, #11458:
URL: https://github.com/apache/gravitino/pull/11458
### What changes were proposed in this pull request?
1. set `GRAVITINO_USE_WEB_V2=${GRAVITINO_USE_WEB_V2:-true}`
2. update comment
<img width="2684" height="1384" alt="image" src="https://github.com/user-attachments/assets/a3234612-d0a2-4120-8c36-d215a0c35765" />
### Why are the changes needed?
N/A
Fix: #11335
### Does this PR introduce _any_ user-facing change?
N/A
### How was this patch tested?
manually
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11335] setting web v2 ui as default [gravitino]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #11458:
URL: https://github.com/apache/gravitino/pull/11458#discussion_r3361987066
##########
conf/gravitino-env.sh.template:
##########
@@ -33,6 +33,7 @@ GRAVITINO_VERSION=GRAVITINO_VERSION_PLACEHOLDER
# # Appended to JAVA_OPTS by launch scripts; set GRAVITINO_MEM to change heap/metaspace sizes.
# UI selection behaviour:
-# - By default this template does not set `GRAVITINO_USE_WEB_V2`, so the container or environment can control which UI is used.
-# - To force the v1 UI, explicitly set it to `false`; to enable the v2 UI, set it to `true` (for example: `export GRAVITINO_USE_WEB_V2=true`).
-# GRAVITINO_USE_WEB_V2=false
\ No newline at end of file
+# - Default to the v2 UI when GRAVITINO_USE_WEB_V2 is unset.
+# - If GRAVITINO_USE_WEB_V2 is already provided by container/k8s env, keep that value.
+# - To force the v1 UI, set GRAVITINO_USE_WEB_V2=false.
+export GRAVITINO_USE_WEB_V2=${GRAVITINO_USE_WEB_V2:-true}
Review Comment:
The comment says the default applies only when GRAVITINO_USE_WEB_V2 is "unset", and that a container/k8s-provided value is kept. However, the `${VAR:-default}` expansion also treats an explicitly-empty value as absent and replaces it with `true`, so an empty-but-set env var will not be kept. Also, quoting the expansion avoids any unintended word-splitting.
##########
conf/gravitino-env.sh.template:
##########
@@ -33,6 +33,7 @@ GRAVITINO_VERSION=GRAVITINO_VERSION_PLACEHOLDER
# # Appended to JAVA_OPTS by launch scripts; set GRAVITINO_MEM to change heap/metaspace sizes.
# UI selection behaviour:
-# - By default this template does not set `GRAVITINO_USE_WEB_V2`, so the container or environment can control which UI is used.
-# - To force the v1 UI, explicitly set it to `false`; to enable the v2 UI, set it to `true` (for example: `export GRAVITINO_USE_WEB_V2=true`).
-# GRAVITINO_USE_WEB_V2=false
\ No newline at end of file
+# - Default to the v2 UI when GRAVITINO_USE_WEB_V2 is unset.
+# - If GRAVITINO_USE_WEB_V2 is already provided by container/k8s env, keep that value.
+# - To force the v1 UI, set GRAVITINO_USE_WEB_V2=false.
+export GRAVITINO_USE_WEB_V2=${GRAVITINO_USE_WEB_V2:-true}
Review Comment:
This change flips the default UI selection to v2, but some user-facing docs still describe the old behavior (e.g., README.md says the template defaults to `false` and docs/webui-v2.md says the template does not set GRAVITINO_USE_WEB_V2). These should be updated to avoid misleading users about the new default and how to revert to v1.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11335] setting web v2 ui as default [gravitino]
Posted by "mchades (via GitHub)" <gi...@apache.org>.
mchades merged PR #11458:
URL: https://github.com/apache/gravitino/pull/11458
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#11335] setting web v2 ui as default [gravitino]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #11458:
URL: https://github.com/apache/gravitino/pull/11458#issuecomment-4631315980
<!-- coverage-report -->
### Code Coverage Report
|Overall Project|66.93%|:green_circle:|
|:-|:-|:-:|
|Files changed|No Java source files changed|-|
<br>
|Module|Coverage||
|:-|:-|:-:|
|aliyun|1.72%|:red_circle:|
|api|46.8%|:green_circle:|
|authorization-common|85.96%|:green_circle:|
|aws|3.66%|:red_circle:|
|azure|2.47%|:red_circle:|
|catalog-common|10.04%|:red_circle:|
|catalog-fileset|80.35%|:green_circle:|
|catalog-glue|66.67%|:green_circle:|
|catalog-hive|79.35%|:green_circle:|
|catalog-jdbc-clickhouse|80.02%|:green_circle:|
|catalog-jdbc-common|45.31%|:green_circle:|
|catalog-jdbc-doris|80.28%|:green_circle:|
|catalog-jdbc-hologres|54.03%|:green_circle:|
|catalog-jdbc-mysql|79.23%|:green_circle:|
|catalog-jdbc-oceanbase|78.38%|:green_circle:|
|catalog-jdbc-postgresql|82.29%|:green_circle:|
|catalog-jdbc-starrocks|78.51%|:green_circle:|
|catalog-kafka|77.01%|:green_circle:|
|catalog-lakehouse-generic|44.89%|:green_circle:|
|catalog-lakehouse-hudi|79.1%|:green_circle:|
|catalog-lakehouse-iceberg|85.66%|:green_circle:|
|catalog-lakehouse-paimon|79.29%|:green_circle:|
|catalog-model|77.72%|:green_circle:|
|cli|44.51%|:green_circle:|
|client-java|77.91%|:green_circle:|
|common|50.17%|:green_circle:|
|core|82.49%|:green_circle:|
|filesystem-hadoop3|76.97%|:green_circle:|
|flink|0.0%|:red_circle:|
|flink-common|46.09%|:green_circle:|
|flink-runtime|0.0%|:red_circle:|
|gcp|14.12%|:red_circle:|
|hadoop-common|10.39%|:red_circle:|
|hive-metastore-common|53.42%|:green_circle:|
|iceberg-common|56.54%|:green_circle:|
|iceberg-rest-server|73.5%|:green_circle:|
|idp-basic|85.99%|:green_circle:|
|integration-test-common|0.0%|:red_circle:|
|jobs|66.17%|:green_circle:|
|lance-common|20.83%|:red_circle:|
|lance-rest-server|60.27%|:green_circle:|
|lineage|53.02%|:green_circle:|
|optimizer|82.87%|:green_circle:|
|optimizer-api|21.95%|:red_circle:|
|server|85.73%|:green_circle:|
|server-common|73.28%|:green_circle:|
|spark|29.85%|:red_circle:|
|spark-common|41.01%|:green_circle:|
|trino-connector|39.97%|:red_circle:|
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org