You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by ni...@apache.org on 2024/07/10 11:25:46 UTC

(paimon-webui) branch branch-0.1 updated (58eda59b -> 3dcd2437)

This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a change to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git


    from 58eda59b [Improvement] Add parameter validation in backend interface (#469)
     new f2d83f30 [Bugfix] Fix the loading state of the submit button (#486)
     new 280419e3 [Improvement] Support SessionController and JobController obtaining cluster through deployment mode (#484)
     new 98697e85 [Improvement] Optimize creating user button with icon (#480)
     new 1f86d0fd [Improvement] Enhance cluster query fields with deploymentMode (#478)
     new 5e820af3 [Improvement] Support indeterminate keys with the permission configuration of role creation (#474)
     new edbcac9b [Improvement] Add cluster heartbeat detection on cluster management page (#476)
     new 76b8ff08 [Improvement] Support indeterminate keys for permission configuration of role creation (#489)
     new 14bd7120 [Improvement] Remove unnecessary logging of cluster interface (#491)
     new 5d725e16 [Improvement] The query module obtains the cluster name through deploymentMode (#482)
     new ba651e63 [Bugfix] Fix zero number of rows in the query result (#488)
     new 3dcd2437 [Improvement] Optimize quick start documentation (#493)

The 11 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docs/.vitepress/config.mts                         |   7 +-
 docs/index.md                                      |  32 ++++-----
 docs/public/img/img_1.png                          | Bin 116184 -> 276810 bytes
 docs/public/img/img_2.png                          | Bin 140666 -> 446134 bytes
 docs/src/guide/about.md                            |  31 ++++-----
 docs/src/guide/quick-start.md                      |  39 +++++------
 paimon-web-server/pom.xml                          |   8 +++
 .../web/server/controller/SessionController.java   |   5 +-
 .../paimon/web/server/data/model/SysRole.java      |   4 ++
 .../server/service/impl/ClusterServiceImpl.java    |   3 -
 .../web/server/service/impl/JobServiceImpl.java    |   5 +-
 .../server/service/impl/SysRoleServiceImpl.java    |  20 ++++--
 .../src/main/resources/mapper/ClusterMapper.xml    |   5 +-
 .../web/server/controller/JobControllerTest.java   |   1 +
 .../server/controller/SessionControllerTest.java   |   1 +
 paimon-web-ui/src/api/models/cluster/index.ts      |  23 +++++-
 paimon-web-ui/src/api/models/cluster/types.ts      |   4 ++
 paimon-web-ui/src/api/models/role/types.ts         |   1 +
 paimon-web-ui/src/locales/en/modules/system.ts     |   5 ++
 paimon-web-ui/src/locales/zh/modules/system.ts     |   5 ++
 paimon-web-ui/src/store/job/index.ts               |   4 +-
 .../components/query/components/debugger/index.tsx |   7 +-
 .../cluster/components/cluster-form/index.tsx      |  58 +++++++++++++++-
 paimon-web-ui/src/views/system/cluster/index.tsx   |  77 +++++++++++++++++++--
 .../system/role/components/role-form/index.tsx     |  11 ++-
 paimon-web-ui/src/views/system/role/index.tsx      |  59 +++++++++++++++-
 paimon-web-ui/src/views/system/user/index.tsx      |   8 ++-
 27 files changed, 340 insertions(+), 83 deletions(-)


(paimon-webui) 06/11: [Improvement] Add cluster heartbeat detection on cluster management page (#476)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit edbcac9bafe1dbfc9fb9a770778246dc3551ae7f
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Wed Jul 10 11:33:19 2024 +0800

    [Improvement] Add cluster heartbeat detection on cluster management page (#476)
---
 paimon-web-ui/src/api/models/cluster/index.ts      | 10 +++
 paimon-web-ui/src/api/models/cluster/types.ts      |  4 ++
 paimon-web-ui/src/locales/en/modules/system.ts     |  5 ++
 paimon-web-ui/src/locales/zh/modules/system.ts     |  5 ++
 .../cluster/components/cluster-form/index.tsx      | 58 +++++++++++++++-
 paimon-web-ui/src/views/system/cluster/index.tsx   | 77 ++++++++++++++++++++--
 6 files changed, 154 insertions(+), 5 deletions(-)

diff --git a/paimon-web-ui/src/api/models/cluster/index.ts b/paimon-web-ui/src/api/models/cluster/index.ts
index d14c112e..c6445196 100644
--- a/paimon-web-ui/src/api/models/cluster/index.ts
+++ b/paimon-web-ui/src/api/models/cluster/index.ts
@@ -66,3 +66,13 @@ export function updateCluster() {
 export function deleteCluster(userId: number) {
   return httpRequest.delete!<unknown, ClusterDTO>(`/cluster/${userId}`)
 }
+
+/**
+ * # Check Cluster Status
+ */
+export function checkClusterStatus() {
+  return httpRequest.createHooks!<unknown, ClusterDTO>({
+    url: '/cluster/check',
+    method: 'post',
+  })
+}
diff --git a/paimon-web-ui/src/api/models/cluster/types.ts b/paimon-web-ui/src/api/models/cluster/types.ts
index 0a1dd559..17bc7aef 100644
--- a/paimon-web-ui/src/api/models/cluster/types.ts
+++ b/paimon-web-ui/src/api/models/cluster/types.ts
@@ -23,7 +23,9 @@ export interface Cluster {
   host: string
   port: number
   type: string
+  deploymentMode: string
   enabled: boolean
+  heartbeatStatus: string
 }
 
 export interface ClusterNameParams {
@@ -38,7 +40,9 @@ export interface ClusterDTO {
   host: string
   port: number
   type: string
+  deploymentMode: string
   enabled: boolean
+  heartbeatStatus?: string
   createTime?: string
   updateTime?: string
 }
diff --git a/paimon-web-ui/src/locales/en/modules/system.ts b/paimon-web-ui/src/locales/en/modules/system.ts
index 8ac69135..24458a60 100644
--- a/paimon-web-ui/src/locales/en/modules/system.ts
+++ b/paimon-web-ui/src/locales/en/modules/system.ts
@@ -102,11 +102,16 @@ const roleKey = {
 const cluster = {
   cluster_name: 'Cluster Name',
   cluster_type: 'Cluster Type',
+  cluster_status: 'Cluster Status',
+  deployment_type: 'Deployment Mode',
   cluster_host: 'Cluster Host',
   cluster_port: 'Cluster Port',
+  test_cluster: 'Testing Cluster Connectivity',
   enabled: 'Enabled',
   create: 'Create Cluster',
   update: 'Update Cluster',
+  cluster_status_check_success: 'Cluster status checked successfully',
+  cluster_status_check_error: 'Error checking cluster status:',
 }
 
 export default { user, role, roleKey, cluster }
diff --git a/paimon-web-ui/src/locales/zh/modules/system.ts b/paimon-web-ui/src/locales/zh/modules/system.ts
index 298f1c9a..0193c5da 100644
--- a/paimon-web-ui/src/locales/zh/modules/system.ts
+++ b/paimon-web-ui/src/locales/zh/modules/system.ts
@@ -102,11 +102,16 @@ const roleKey = {
 const cluster = {
   cluster_name: '集群名称',
   cluster_type: '集群类型',
+  cluster_status: '集群状态',
+  deployment_type: '部署模式',
   cluster_host: '集群地址',
   cluster_port: '集群端口',
+  test_cluster: '测试集群连通性',
   enabled: '是否启用',
   create: '新增集群',
   update: '更新集群',
+  cluster_status_check_success: '集群状态检查成功',
+  cluster_status_check_error: '检查集群状态时出错:',
 }
 
 export default { user, role, roleKey, cluster }
diff --git a/paimon-web-ui/src/views/system/cluster/components/cluster-form/index.tsx b/paimon-web-ui/src/views/system/cluster/components/cluster-form/index.tsx
index 7484d7e9..fd1eb0a1 100644
--- a/paimon-web-ui/src/views/system/cluster/components/cluster-form/index.tsx
+++ b/paimon-web-ui/src/views/system/cluster/components/cluster-form/index.tsx
@@ -39,21 +39,54 @@ const props = {
       port: 0,
       enabled: true,
       type: '',
+      deploymentMode: '',
     }),
   },
   'onUpdate:formValue': [Function, Object] as PropType<((value: ClusterDTO) => void) | undefined>,
   'onConfirm': Function,
+  'onCheckClusterStatus': Function as PropType<(cluster: ClusterDTO) => void>,
 }
 
 export default defineComponent({
-  name: 'UserForm',
+  name: 'ClusterForm',
   props,
   setup(props) {
+    interface DeploymentOption {
+      label: string
+      value: string
+    }
+
     const typeOptions = [
       { label: 'Flink', value: 'Flink' },
       { label: 'Spark', value: 'Spark' },
     ]
 
+    const deploymentModeFlink = [
+      { label: 'Yarn Session', value: 'yarn-session' },
+      { label: 'Flink SQL Gateway', value: 'flink-sql-gateway' },
+    ]
+
+    const deploymentModeSpark: DeploymentOption[] = []
+
+    const deploymentModeOptions = computed(() => {
+      if (props.formValue.type === 'Flink') {
+        return deploymentModeFlink
+      }
+      else if (props.formValue.type === 'Spark') {
+        return deploymentModeSpark
+      }
+      return []
+    })
+
+    watch(() => props.formValue.type, (newType) => {
+      if (newType === 'Spark' && deploymentModeSpark.length === 0) {
+        props['onUpdate:formValue']?.({ ...props.formValue, deploymentMode: '' })
+      }
+      else if (newType === 'Flink') {
+        props['onUpdate:formValue']?.({ ...props.formValue, deploymentMode: deploymentModeFlink[0].value })
+      }
+    })
+
     const rules = {
       clusterName: {
         required: true,
@@ -76,6 +109,11 @@ export default defineComponent({
         trigger: ['blur', 'input'],
         message: 'type required',
       },
+      deploymentMode: {
+        required: true,
+        trigger: ['blur', 'input'],
+        message: 'deploymentMode required',
+      },
     }
 
     const { t } = useLocaleHooks()
@@ -101,12 +139,14 @@ export default defineComponent({
         port: 0,
         enabled: true,
         type: '',
+        deploymentMode: '',
       })
     }
 
     return {
       ...toRefs(props),
       typeOptions,
+      deploymentModeOptions,
       formRef,
       rules,
       handleCloseModal,
@@ -146,6 +186,22 @@ export default defineComponent({
                     options={this.typeOptions}
                   />
                 </n-form-item>
+                <n-form-item label={this.t('system.cluster.deployment_type')} path="deploymentMode">
+                  <n-select
+                    v-model:value={this.formValue.deploymentMode}
+                    options={this.deploymentModeOptions}
+                  />
+                </n-form-item>
+                <n-link
+                  onClick={() => {
+                    if (this.onCheckClusterStatus) {
+                      this.onCheckClusterStatus(this.formValue)
+                    }
+                  }}
+                  style="color: #007BFF; cursor: pointer; text-decoration: underline;"
+                >
+                  {this.t('system.cluster.test_cluster')}
+                </n-link>
               </n-form>
             ),
             action: () => (
diff --git a/paimon-web-ui/src/views/system/cluster/index.tsx b/paimon-web-ui/src/views/system/cluster/index.tsx
index d07a0862..ff2862d4 100644
--- a/paimon-web-ui/src/views/system/cluster/index.tsx
+++ b/paimon-web-ui/src/views/system/cluster/index.tsx
@@ -17,14 +17,15 @@ under the License. */
 
 import type { TableColumns } from 'naive-ui/es/data-table/src/interface'
 import dayjs from 'dayjs'
-import { EditOutlined } from '@vicons/antd'
+import { EditOutlined, HeartTwotone } from '@vicons/antd'
+import { Add } from '@vicons/ionicons5'
 
 import ClusterForm from './components/cluster-form'
 import ClusterDelete from './components/cluster-delete'
 
 import styles from './index.module.scss'
 
-import { createCluster, getClusterList, updateCluster } from '@/api/models/cluster'
+import { checkClusterStatus, createCluster, getClusterList, updateCluster } from '@/api/models/cluster'
 
 import type { ClusterDTO } from '@/api/models/cluster/types'
 
@@ -39,29 +40,59 @@ export default defineComponent({
       {
         title: () => t('system.cluster.cluster_name'),
         key: 'clusterName',
+        width: 160,
       },
       {
         title: () => t('system.cluster.cluster_host'),
         key: 'host',
+        width: 150,
       },
       {
         title: () => t('system.cluster.cluster_port'),
         key: 'port',
+        width: 120,
       },
       {
         title: () => t('system.cluster.cluster_type'),
         key: 'type',
+        width: 120,
+      },
+      {
+        title: () => t('system.cluster.deployment_type'),
+        key: 'deploymentMode',
+        width: 160,
+        render: (row: ClusterDTO) => {
+          switch (row.deploymentMode) {
+            case 'flink-sql-gateway':
+              return 'Flink SQL Gateway'
+            case 'yarn-session':
+              return 'Yarn Session'
+            default:
+              return row.deploymentMode
+          }
+        },
       },
       {
         title: () => t('system.cluster.enabled'),
         key: 'enabled',
+        width: 100,
         render: (row: ClusterDTO) => {
           return row.enabled ? t('common.yes') : t('common.no')
         },
       },
+      {
+        title: () => t('system.cluster.cluster_status'),
+        key: 'heartbeatStatus',
+        width: 120,
+        render: (row) => {
+          const status = String(row.heartbeatStatus).toLowerCase()
+          return status.charAt(0).toUpperCase() + status.slice(1)
+        },
+      },
       {
         title: () => t('common.create_time'),
         key: 'createTime',
+        width: 160,
         render: (row: ClusterDTO) => {
           return row?.createTime ? dayjs(row?.createTime).format('YYYY-MM-DD HH:mm') : '-'
         },
@@ -69,6 +100,7 @@ export default defineComponent({
       {
         title: () => t('common.update_time'),
         key: 'updateTime',
+        width: 160,
         render: (row: ClusterDTO) => {
           return row?.updateTime ? dayjs(row?.updateTime).format('YYYY-MM-DD HH:mm') : '-'
         },
@@ -76,7 +108,9 @@ export default defineComponent({
       {
         title: () => t('common.action'),
         key: 'actions',
+        fixed: 'right',
         resizable: true,
+        width: 150,
         render: (row: ClusterDTO) => {
           return (
             <n-space>
@@ -85,6 +119,11 @@ export default defineComponent({
                   icon: () => <n-icon component={EditOutlined} />,
                 }}
               </n-button>
+              <n-button onClick={() => handleCheckClusterStatus(row)} strong secondary circle type="success">
+                {{
+                  icon: () => <n-icon component={HeartTwotone} />,
+                }}
+              </n-button>
               <ClusterDelete clusterId={row?.id} onDelete={getTableData} />
             </n-space>
           )
@@ -104,6 +143,7 @@ export default defineComponent({
       host: '',
       port: 0,
       type: '',
+      deploymentMode: '',
       enabled: true,
     })
 
@@ -124,6 +164,22 @@ export default defineComponent({
       formVisible.value = true
     }
 
+    async function handleCheckClusterStatus(cluster: ClusterDTO) {
+      const [, checkStatus] = checkClusterStatus()
+
+      try {
+        await checkStatus({
+          params: cluster,
+        })
+        message.success(t('system.cluster.cluster_status_check_success'))
+        getTableData()
+      }
+      catch (error) {
+        const errorMessage = (error as Error).message
+        message.error(t('system.cluster.cluster_status_check_error') + errorMessage)
+      }
+    }
+
     const tableVariables = reactive({
       searchForm: {
         clusterName: '',
@@ -180,6 +236,7 @@ export default defineComponent({
       formValue,
       handleCreateModal,
       onConfirm,
+      handleCheckClusterStatus,
     }
   },
   render() {
@@ -188,7 +245,12 @@ export default defineComponent({
         <n-card>
           <n-space vertical>
             <n-space justify="space-between">
-              <n-button onClick={this.handleCreateModal} type="primary">{this.t('system.user.add')}</n-button>
+              <n-button onClick={this.handleCreateModal} type="primary">
+                {{
+                  icon: () => <n-icon component={Add} />,
+                  default: () => this.t('system.cluster.create'),
+                }}
+              </n-button>
             </n-space>
             <n-data-table
               columns={this.columns}
@@ -200,7 +262,14 @@ export default defineComponent({
             />
           </n-space>
         </n-card>
-        <ClusterForm modelLoading={this.modelLoading} formType={this.formType} v-model:visible={this.formVisible} v-model:formValue={this.formValue} onConfirm={this.onConfirm} />
+        <ClusterForm
+          modelLoading={this.modelLoading}
+          formType={this.formType}
+          v-model:visible={this.formVisible}
+          v-model:formValue={this.formValue}
+          onConfirm={this.onConfirm}
+          onCheckClusterStatus={this.handleCheckClusterStatus}
+        />
       </n-space>
     )
   },


(paimon-webui) 01/11: [Bugfix] Fix the loading state of the submit button (#486)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit f2d83f308f4f2bd29c1b76e6faf6d9997f3ee194
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Tue Jul 9 19:39:58 2024 +0800

    [Bugfix] Fix the loading state of the submit button (#486)
    
    Co-authored-by: s7monk <“15512826113@163.com”>
---
 .../src/views/playground/components/query/components/debugger/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx b/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx
index bd3956d9..8d8da56f 100644
--- a/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx
+++ b/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx
@@ -250,7 +250,7 @@ export default defineComponent({
     }
 
     watch(jobStatus, (newStatus) => {
-      if (newStatus === 'RUNNING')
+      if (newStatus === 'RUNNING' || newStatus === 'FINISHED' || newStatus === 'FAILED')
         isSubmitting.value = false
     })
 


(paimon-webui) 09/11: [Improvement] The query module obtains the cluster name through deploymentMode (#482)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 5d725e169ce9d4de3ebaf35b5f922a5426d16f7a
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Wed Jul 10 19:18:12 2024 +0800

    [Improvement] The query module obtains the cluster name through deploymentMode (#482)
---
 paimon-web-ui/src/api/models/cluster/index.ts               | 13 ++++++++++++-
 .../components/query/components/debugger/index.tsx          |  5 +++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/paimon-web-ui/src/api/models/cluster/index.ts b/paimon-web-ui/src/api/models/cluster/index.ts
index c6445196..880380e4 100644
--- a/paimon-web-ui/src/api/models/cluster/index.ts
+++ b/paimon-web-ui/src/api/models/cluster/index.ts
@@ -30,7 +30,18 @@ export function getClusterList() {
 }
 
 /**
- * # List Cluster by ClusterType
+ * # List Cluster by Deployment Mode
+ */
+export function getClusterListByDeploymentMode(deploymentMode: string, pageNum: number, pageSize: number) {
+  return httpRequest.get('/cluster/list', {
+    deploymentMode,
+    pageNum,
+    pageSize,
+  })
+}
+
+/**
+ * # List Cluster by Type
  */
 export function getClusterListByType(type: string, pageNum: number, pageSize: number) {
   return httpRequest.get('/cluster/list', {
diff --git a/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx b/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx
index 8d8da56f..3a5e5794 100644
--- a/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx
+++ b/paimon-web-ui/src/views/playground/components/query/components/debugger/index.tsx
@@ -20,7 +20,7 @@ import { FormatAlignLeftOutlined } from '@vicons/material'
 import { NInput, useMessage } from 'naive-ui'
 
 import styles from './index.module.scss'
-import { getClusterListByType } from '@/api/models/cluster'
+import { getClusterListByDeploymentMode } from '@/api/models/cluster'
 import type { Cluster } from '@/api/models/cluster/types'
 import type { JobSubmitDTO } from '@/api/models/job/types/job'
 import { createRecord, stopJob, submitJob } from '@/api/models/job'
@@ -153,7 +153,8 @@ export default defineComponent({
     }
 
     function getClusterData() {
-      getClusterListByType(debuggerVariables.conditionValue, 1, Number.MAX_SAFE_INTEGER).then((response) => {
+      const deploymentMode = debuggerVariables.conditionValue === 'Flink' ? 'flink-sql-gateway' : debuggerVariables.conditionValue
+      getClusterListByDeploymentMode(deploymentMode, 1, Number.MAX_SAFE_INTEGER).then((response) => {
         if (response && response.data) {
           const clusterList = response.data as Cluster[]
           debuggerVariables.clusterOptions = clusterList.map(cluster => ({


(paimon-webui) 08/11: [Improvement] Remove unnecessary logging of cluster interface (#491)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 14bd71200fb347ada03e3079517db2252b630f40
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Wed Jul 10 11:36:36 2024 +0800

    [Improvement] Remove unnecessary logging of cluster interface (#491)
---
 .../org/apache/paimon/web/server/service/impl/ClusterServiceImpl.java  | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/ClusterServiceImpl.java b/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/ClusterServiceImpl.java
index e31aabff..e2bc2bca 100644
--- a/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/ClusterServiceImpl.java
+++ b/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/ClusterServiceImpl.java
@@ -93,9 +93,6 @@ public class ClusterServiceImpl extends ServiceImpl<ClusterMapper, ClusterInfo>
         QueryWrapper<ClusterInfo> queryWrapper =
                 new QueryWrapper<ClusterInfo>().eq("enabled", true);
         for (ClusterInfo clusterInfo : clusterMapper.selectList(queryWrapper)) {
-            log.info(
-                    "Starting a scheduled job to check cluster: `{}` status ...",
-                    clusterInfo.getClusterName());
             if (EngineType.SPARK.name().equals(clusterInfo.getType().toUpperCase())) {
                 log.warn(
                         "Current engine type: {} doesn't support checking Cluster status.",


(paimon-webui) 02/11: [Improvement] Support SessionController and JobController obtaining cluster through deployment mode (#484)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 280419e333405e242143ade9ec2783187d247404
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Tue Jul 9 19:46:58 2024 +0800

    [Improvement] Support SessionController and JobController obtaining cluster through deployment mode (#484)
---
 paimon-web-server/pom.xml                                         | 8 ++++++++
 .../apache/paimon/web/server/controller/SessionController.java    | 5 +++--
 .../org/apache/paimon/web/server/service/impl/JobServiceImpl.java | 5 +++--
 .../apache/paimon/web/server/controller/JobControllerTest.java    | 1 +
 .../paimon/web/server/controller/SessionControllerTest.java       | 1 +
 5 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/paimon-web-server/pom.xml b/paimon-web-server/pom.xml
index ac352377..2d85244d 100644
--- a/paimon-web-server/pom.xml
+++ b/paimon-web-server/pom.xml
@@ -37,6 +37,7 @@ under the License.
     <properties>
         <hadoop.version>2.8.5</hadoop.version>
         <flink.version>1.18.1</flink.version>
+        <scala.version>2.12</scala.version>
     </properties>
 
     <dependencies>
@@ -247,6 +248,13 @@ under the License.
             </exclusions>
         </dependency>
 
+        <dependency>
+            <groupId>org.apache.flink</groupId>
+            <artifactId>flink-table-planner_${scala.version}</artifactId>
+            <version>${flink.version}</version>
+            <scope>test</scope>
+        </dependency>
+
         <dependency>
             <groupId>commons-cli</groupId>
             <artifactId>commons-cli</artifactId>
diff --git a/paimon-web-server/src/main/java/org/apache/paimon/web/server/controller/SessionController.java b/paimon-web-server/src/main/java/org/apache/paimon/web/server/controller/SessionController.java
index cee6f61a..fc761f3e 100644
--- a/paimon-web-server/src/main/java/org/apache/paimon/web/server/controller/SessionController.java
+++ b/paimon-web-server/src/main/java/org/apache/paimon/web/server/controller/SessionController.java
@@ -18,6 +18,7 @@
 
 package org.apache.paimon.web.server.controller;
 
+import org.apache.paimon.web.gateway.enums.DeploymentMode;
 import org.apache.paimon.web.server.data.dto.SessionDTO;
 import org.apache.paimon.web.server.data.model.ClusterInfo;
 import org.apache.paimon.web.server.data.result.R;
@@ -59,7 +60,7 @@ public class SessionController {
         }
         int uid = StpUtil.getLoginIdAsInt();
         QueryWrapper<ClusterInfo> queryWrapper = new QueryWrapper<>();
-        queryWrapper.eq("type", "Flink");
+        queryWrapper.eq("deployment_mode", DeploymentMode.FLINK_SQL_GATEWAY.getType());
         List<ClusterInfo> clusterInfos = clusterService.list(queryWrapper);
         for (ClusterInfo cluster : clusterInfos) {
             SessionDTO sessionDTO = new SessionDTO();
@@ -85,7 +86,7 @@ public class SessionController {
         }
         int uid = StpUtil.getLoginIdAsInt();
         QueryWrapper<ClusterInfo> queryWrapper = new QueryWrapper<>();
-        queryWrapper.eq("type", "Flink");
+        queryWrapper.eq("deployment_mode", DeploymentMode.FLINK_SQL_GATEWAY.getType());
         List<ClusterInfo> clusterInfos = clusterService.list(queryWrapper);
         for (ClusterInfo cluster : clusterInfos) {
             SessionDTO sessionDTO = new SessionDTO();
diff --git a/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/JobServiceImpl.java b/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/JobServiceImpl.java
index e69c4518..ceb46c73 100644
--- a/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/JobServiceImpl.java
+++ b/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/JobServiceImpl.java
@@ -25,6 +25,7 @@ import org.apache.paimon.web.engine.flink.common.result.FetchResultParams;
 import org.apache.paimon.web.engine.flink.common.status.JobStatus;
 import org.apache.paimon.web.engine.flink.sql.gateway.model.SessionEntity;
 import org.apache.paimon.web.gateway.config.ExecutionConfig;
+import org.apache.paimon.web.gateway.enums.DeploymentMode;
 import org.apache.paimon.web.gateway.enums.EngineType;
 import org.apache.paimon.web.gateway.provider.ExecutorFactoryProvider;
 import org.apache.paimon.web.server.context.LogContextHolder;
@@ -302,8 +303,8 @@ public class JobServiceImpl extends ServiceImpl<JobMapper, JobInfo> implements J
 
         if (taskType.equals("Flink")) {
             QueryWrapper<ClusterInfo> queryWrapper = new QueryWrapper<>();
-            queryWrapper.eq("type", "Flink");
-            List<ClusterInfo> clusters = clusterService.list();
+            queryWrapper.eq("deployment_mode", DeploymentMode.FLINK_SQL_GATEWAY.getType());
+            List<ClusterInfo> clusters = clusterService.list(queryWrapper);
             for (ClusterInfo cluster : clusters) {
                 try {
                     SessionEntity session =
diff --git a/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/JobControllerTest.java b/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/JobControllerTest.java
index eeeafdc4..42155fa6 100644
--- a/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/JobControllerTest.java
+++ b/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/JobControllerTest.java
@@ -113,6 +113,7 @@ public class JobControllerTest extends FlinkSQLGatewayTestBase {
                         .port(port)
                         .enabled(true)
                         .type("Flink")
+                        .deploymentMode("flink-sql-gateway")
                         .build();
         boolean res = clusterService.save(cluster);
         assertTrue(res);
diff --git a/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/SessionControllerTest.java b/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/SessionControllerTest.java
index e49c0e6f..9833e728 100644
--- a/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/SessionControllerTest.java
+++ b/paimon-web-server/src/test/java/org/apache/paimon/web/server/controller/SessionControllerTest.java
@@ -123,6 +123,7 @@ public class SessionControllerTest extends FlinkSQLGatewayTestBase {
                         .port(port)
                         .enabled(true)
                         .type("Flink")
+                        .deploymentMode("flink-sql-gateway")
                         .build();
         boolean res = clusterService.save(cluster);
         assertTrue(res);


(paimon-webui) 03/11: [Improvement] Optimize creating user button with icon (#480)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 98697e8540e045426bdf9dfc29e76b13c607e0e3
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Tue Jul 9 19:47:40 2024 +0800

    [Improvement] Optimize creating user button with icon (#480)
---
 paimon-web-ui/src/views/system/user/index.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/paimon-web-ui/src/views/system/user/index.tsx b/paimon-web-ui/src/views/system/user/index.tsx
index 67a90281..5d1f6004 100644
--- a/paimon-web-ui/src/views/system/user/index.tsx
+++ b/paimon-web-ui/src/views/system/user/index.tsx
@@ -18,6 +18,7 @@ under the License. */
 import type { TableColumns } from 'naive-ui/es/data-table/src/interface'
 import dayjs from 'dayjs'
 import { EditOutlined } from '@vicons/antd'
+import { Add } from '@vicons/ionicons5'
 
 import UserForm from './components/user-form'
 import UserDelete from './components/user-delete'
@@ -192,7 +193,12 @@ export default defineComponent({
           <n-space vertical>
             <n-space justify="space-between">
               <n-space>
-                <n-button onClick={this.handleCreateModal} type="primary">{this.t('system.user.add')}</n-button>
+                <n-button onClick={this.handleCreateModal} type="primary">
+                  {{
+                    icon: () => <n-icon component={Add} />,
+                    default: () => this.t('system.user.create'),
+                  }}
+                </n-button>
               </n-space>
               <n-space>
                 <></>


(paimon-webui) 05/11: [Improvement] Support indeterminate keys with the permission configuration of role creation (#474)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 5e820af3eb7881782daeb9036bdf2653c183ec66
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Tue Jul 9 20:02:20 2024 +0800

    [Improvement] Support indeterminate keys with the permission configuration of role creation (#474)
---
 .../apache/paimon/web/server/data/model/SysRole.java |  4 ++++
 .../web/server/service/impl/SysRoleServiceImpl.java  | 20 +++++++++++++++-----
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/paimon-web-server/src/main/java/org/apache/paimon/web/server/data/model/SysRole.java b/paimon-web-server/src/main/java/org/apache/paimon/web/server/data/model/SysRole.java
index 47754a4d..e037ccd8 100644
--- a/paimon-web-server/src/main/java/org/apache/paimon/web/server/data/model/SysRole.java
+++ b/paimon-web-server/src/main/java/org/apache/paimon/web/server/data/model/SysRole.java
@@ -63,6 +63,10 @@ public class SysRole extends BaseModel {
     @NotEmpty(message = "invalid.menuIds")
     private Integer[] menuIds;
 
+    /** indeterminate keys. */
+    @TableField(exist = false)
+    private Integer[] indeterminateKeys;
+
     /** Role menu permissions. */
     @TableField(exist = false)
     private Set<String> permissions;
diff --git a/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/SysRoleServiceImpl.java b/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/SysRoleServiceImpl.java
index 2cf0a867..aa3bbb6e 100644
--- a/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/SysRoleServiceImpl.java
+++ b/paimon-web-server/src/main/java/org/apache/paimon/web/server/service/impl/SysRoleServiceImpl.java
@@ -195,22 +195,32 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
      * @param role role info
      */
     public int insertRoleMenu(SysRole role) {
+        Integer[] mergedMenuIds = mergeMenuIds(role.getMenuIds(), role.getIndeterminateKeys());
         int rows = 1;
-        if (role.getMenuIds() != null && role.getMenuIds().length > 0) {
+        if (mergedMenuIds.length > 0) {
             List<RoleMenu> list = new ArrayList<RoleMenu>();
-            for (Integer menuId : role.getMenuIds()) {
+            for (Integer menuId : mergedMenuIds) {
                 RoleMenu rm = new RoleMenu();
                 rm.setRoleId(role.getId());
                 rm.setMenuId(menuId);
                 list.add(rm);
             }
-            if (list.size() > 0) {
-                rows = roleMenuMapper.batchRoleMenu(list);
-            }
+            rows = roleMenuMapper.batchRoleMenu(list);
         }
         return rows;
     }
 
+    private Integer[] mergeMenuIds(Integer[] menuIds, Integer[] indeterminateKeys) {
+        Set<Integer> mergedSet = new HashSet<>();
+        if (menuIds != null) {
+            mergedSet.addAll(Arrays.asList(menuIds));
+        }
+        if (indeterminateKeys != null) {
+            mergedSet.addAll(Arrays.asList(indeterminateKeys));
+        }
+        return mergedSet.toArray(new Integer[0]);
+    }
+
     /**
      * Delete role.
      *


(paimon-webui) 07/11: [Improvement] Support indeterminate keys for permission configuration of role creation (#489)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 76b8ff081b160d792952da85d27307e5fda1efef
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Wed Jul 10 11:34:25 2024 +0800

    [Improvement] Support indeterminate keys for permission configuration of role creation (#489)
---
 paimon-web-ui/src/api/models/role/types.ts         |  1 +
 .../system/role/components/role-form/index.tsx     | 11 +++-
 paimon-web-ui/src/views/system/role/index.tsx      | 59 ++++++++++++++++++++--
 3 files changed, 67 insertions(+), 4 deletions(-)

diff --git a/paimon-web-ui/src/api/models/role/types.ts b/paimon-web-ui/src/api/models/role/types.ts
index 828ef7b9..693196fe 100644
--- a/paimon-web-ui/src/api/models/role/types.ts
+++ b/paimon-web-ui/src/api/models/role/types.ts
@@ -55,4 +55,5 @@ export interface RoleDTO {
   enabled: boolean
   remark?: string
   menuIds: number[]
+  indeterminateKeys?: number[]
 }
diff --git a/paimon-web-ui/src/views/system/role/components/role-form/index.tsx b/paimon-web-ui/src/views/system/role/components/role-form/index.tsx
index 41eab85e..95a93e65 100644
--- a/paimon-web-ui/src/views/system/role/components/role-form/index.tsx
+++ b/paimon-web-ui/src/views/system/role/components/role-form/index.tsx
@@ -41,6 +41,7 @@ const props = {
       enabled: true,
       remark: '',
       menuIds: [],
+      indeterminateKeys: [],
     }),
   },
   'onUpdate:formValue': [Function, Object] as PropType<((value: RoleDTO) => void) | undefined>,
@@ -95,6 +96,10 @@ export default defineComponent({
       props.formValue.menuIds = checkIds
     }
 
+    const onUpdateIndeterminateKeys = (indeterminateKeys: Array<number>) => {
+      props.formValue.indeterminateKeys = indeterminateKeys
+    }
+
     const handleConfirm = async () => {
       await formRef.value.validate()
       props && props.onConfirm && props.onConfirm()
@@ -109,6 +114,7 @@ export default defineComponent({
         enabled: true,
         remark: '',
         menuIds: [],
+        indeterminateKeys: [],
       })
     }
 
@@ -120,6 +126,7 @@ export default defineComponent({
       handleCloseModal,
       renderLabel,
       onUpdateMenuIds,
+      onUpdateIndeterminateKeys,
       handleConfirm,
       t,
     }
@@ -160,11 +167,13 @@ export default defineComponent({
                 <n-form-item label={this.t('system.role.permission_setting')} path="menuIds">
                   <n-tree
                     key-field="id"
-                    default-expand-all
+                    cascade
                     block-line
                     renderLabel={this.renderLabel}
                     onUpdate:checkedKeys={this.onUpdateMenuIds}
+                    onUpdate:indeterminateKeys={this.onUpdateIndeterminateKeys}
                     checkedKeys={this.formValue.menuIds}
+                    indeterminateKeys={this.formValue.indeterminateKeys}
                     data={this.permissionTree}
                     expand-on-click
                     checkable
diff --git a/paimon-web-ui/src/views/system/role/index.tsx b/paimon-web-ui/src/views/system/role/index.tsx
index b502d519..d3d1f30e 100644
--- a/paimon-web-ui/src/views/system/role/index.tsx
+++ b/paimon-web-ui/src/views/system/role/index.tsx
@@ -17,13 +17,14 @@ under the License. */
 
 import dayjs from 'dayjs'
 import { EditOutlined } from '@vicons/antd'
+import { Add } from '@vicons/ionicons5'
 import styles from './index.module.scss'
 import { useTable } from './use-table'
 import RoleForm from './components/role-form'
 import RoleDetail from './components/role-detail'
 import RoleDelete from './components/role-delete'
 import { createRole, getPermissionByRoleId, updateRole } from '@/api/models/role'
-import type { Role, RoleDTO } from '@/api/models/role/types'
+import type { Role, RoleDTO, RoleMenu } from '@/api/models/role/types'
 
 export default defineComponent({
   name: 'RolePage',
@@ -109,17 +110,64 @@ export default defineComponent({
       enabled: true,
       remark: '',
       menuIds: [],
+      indeterminateKeys: [],
     })
 
+    function inferIndeterminateKeys(checkedKeys: number[], allNodes: RoleMenu[]): { updatedCheckedKeys: number[], indeterminateKeys: number[] } {
+      const indeterminateKeys = new Set<number>()
+      const updatedCheckedKeys = new Set<number>(checkedKeys)
+
+      function checkNode(node: RoleMenu): boolean {
+        let childCheckedCount = 0
+        const childCount = node.children ? node.children.length : 0
+
+        if (childCount > 0) {
+          let allChildrenChecked = true
+
+          node.children.forEach((child) => {
+            const childIsChecked = checkNode(child)
+            if (childIsChecked) {
+              childCheckedCount++
+            }
+            else {
+              allChildrenChecked = false
+            }
+          })
+
+          if (childCheckedCount > 0 && childCheckedCount < childCount) {
+            indeterminateKeys.add(node.id)
+            updatedCheckedKeys.delete(node.id)
+          }
+
+          return allChildrenChecked
+        }
+
+        return checkedKeys.includes(node.id)
+      }
+
+      allNodes.forEach((node) => {
+        if (checkNode(node) && !checkedKeys.includes(node.id)) {
+          indeterminateKeys.add(node.id)
+        }
+      })
+
+      return {
+        updatedCheckedKeys: Array.from(updatedCheckedKeys),
+        indeterminateKeys: Array.from(indeterminateKeys),
+      }
+    }
+
     async function getDetail(role: Role) {
       const res = await getPermissionByRoleId(role.id)
+      const { updatedCheckedKeys, indeterminateKeys } = inferIndeterminateKeys(res?.data?.checkedKeys, res?.data?.menus)
       formValue.value = {
         id: role.id,
         roleName: role.roleName,
         roleKey: role.roleKey,
         enabled: role.enabled,
         remark: role.remark,
-        menuIds: res?.data?.checkedKeys,
+        menuIds: updatedCheckedKeys,
+        indeterminateKeys,
       }
     }
 
@@ -175,7 +223,12 @@ export default defineComponent({
           <n-space vertical>
             <n-space justify="space-between">
               <n-space>
-                <n-button onClick={this.handleCreateModal} type="primary">{this.t('system.user.add')}</n-button>
+                <n-button onClick={this.handleCreateModal} type="primary">
+                  {{
+                    icon: () => <n-icon component={Add} />,
+                    default: () => this.t('system.role.create'),
+                  }}
+                </n-button>
               </n-space>
               <n-space>
                 <></>


(paimon-webui) 10/11: [Bugfix] Fix zero number of rows in the query result (#488)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit ba651e634569e4ccc5de12f176040a9e6f4fbd11
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Wed Jul 10 19:19:25 2024 +0800

    [Bugfix] Fix zero number of rows in the query result (#488)
---
 paimon-web-ui/src/store/job/index.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/paimon-web-ui/src/store/job/index.ts b/paimon-web-ui/src/store/job/index.ts
index 87587371..77ad51a1 100644
--- a/paimon-web-ui/src/store/job/index.ts
+++ b/paimon-web-ui/src/store/job/index.ts
@@ -79,10 +79,10 @@ export const useJobStore = defineStore({
       return (key) => {
         const initResultData = state.jobs[key]?.job?.resultData
         const refreshedResultData = state.jobs[key]?.jobResultData?.resultData
-        if (initResultData)
+        if (initResultData && initResultData.length > 0)
           return initResultData.length
 
-        if (refreshedResultData)
+        if (refreshedResultData && refreshedResultData.length > 0)
           return refreshedResultData.length
 
         return 0


(paimon-webui) 11/11: [Improvement] Optimize quick start documentation (#493)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 3dcd2437a19d6f4e2ef309b744fa00b41116e247
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Wed Jul 10 19:20:04 2024 +0800

    [Improvement] Optimize quick start documentation (#493)
---
 docs/.vitepress/config.mts    |   7 ++++++-
 docs/index.md                 |  32 +++++++++++++++-----------------
 docs/public/img/img_1.png     | Bin 116184 -> 276810 bytes
 docs/public/img/img_2.png     | Bin 140666 -> 446134 bytes
 docs/src/guide/about.md       |  31 +++++++++++++++----------------
 docs/src/guide/quick-start.md |  39 +++++++++++++++++++--------------------
 6 files changed, 55 insertions(+), 54 deletions(-)

diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index 6b743643..536bfab0 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -3,6 +3,7 @@ import { defineConfig } from 'vitepress'
 export default defineConfig({
   title: "Paimon Web",
   description: "Web UI for Apache Paimon",
+
   themeConfig: {
     logo: "/favicon_blue.svg",
     nav: [
@@ -28,6 +29,10 @@ export default defineConfig({
 
     socialLinks: [
       { icon: 'github', link: 'https://github.com/apache/paimon-webui' }
-    ]
+    ],
+
+    footer: {
+      copyright: 'Copyright © 2024 The Apache Software Foundation. Apache Paimon, Paimon, and its feather logo are trademarks of The Apache Software Foundation.'
+    }
   }
 })
diff --git a/docs/index.md b/docs/index.md
index 0a7b7555..09231600 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,22 +1,20 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
 
-  http://www.apache.org/licenses/LICENSE-2.0
+      https://www.apache.org/licenses/LICENSE-2.0
 
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
----
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+  
 layout: home
 
 hero:
diff --git a/docs/public/img/img_1.png b/docs/public/img/img_1.png
index c1409244..a507eb72 100644
Binary files a/docs/public/img/img_1.png and b/docs/public/img/img_1.png differ
diff --git a/docs/public/img/img_2.png b/docs/public/img/img_2.png
index 1a3c9338..85b14500 100644
Binary files a/docs/public/img/img_2.png and b/docs/public/img/img_2.png differ
diff --git a/docs/src/guide/about.md b/docs/src/guide/about.md
index ba6c4a0d..41ca971a 100644
--- a/docs/src/guide/about.md
+++ b/docs/src/guide/about.md
@@ -1,21 +1,20 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
 
-  http://www.apache.org/licenses/LICENSE-2.0
+      https://www.apache.org/licenses/LICENSE-2.0
 
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
 # About Paimon Web
 
 Paimon Web, the Web UI for Apache Paimon, enhances the management of Paimon table information through advanced visualization capabilities. 
diff --git a/docs/src/guide/quick-start.md b/docs/src/guide/quick-start.md
index 0d6b7fcb..e037ce7b 100644
--- a/docs/src/guide/quick-start.md
+++ b/docs/src/guide/quick-start.md
@@ -1,21 +1,20 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing,
-software distributed under the License is distributed on an
-"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-KIND, either express or implied.  See the License for the
-specific language governing permissions and limitations
-under the License.
--->
+---
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      https://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
 # Quick Start
 
 This brief tutorial will guide you through the steps to deploy and utilize Paimon Web effectively.
@@ -66,7 +65,7 @@ These changes will ensure that Paimon Web runs smoothly with your specific setup
 
 To configure the environment for your application, follow these steps:
 
-1. **Set Environment Variables**: Modify the `env.sh` script located in the `bin` directory. You'll need to configure variables such as `FLINK_HOME`, `ACTION_JAR_PATH`, and `JAVA_HOME`.
+1. **Set Environment Variables**: Modify the `env.sh` script located in the `bin` directory. You can configure variables such as `FLINK_HOME`, `ACTION_JAR_PATH`, and `JAVA_HOME`.
 2. **Optional Settings**: If you are not using the CDC (Change Data Capture) function, there is no need to configure `FLINK_HOME` and `ACTION_JAR_PATH`.
 
 This setup will prepare your system to properly run the application with the necessary configurations.
@@ -85,7 +84,7 @@ To launch the service, follow these steps:
 ```shell
 [root@paimon ~]# bin/start.sh
 ```
-2. **Access the Web Interface**: Open a web browser and enter the URL `http://{ip}:{port}` to navigate to the Paimon web page.
+2. **Access the Web Interface**: Open a web browser and enter the URL `http://{ip}:{port}/ui/login` to navigate to the Paimon web page.
 
 Ensure you replace `{ip}` and `{port}` with the actual ip address and port number where the service is running.
 


(paimon-webui) 04/11: [Improvement] Enhance cluster query fields with deploymentMode (#478)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nicholasjiang pushed a commit to branch branch-0.1
in repository https://gitbox.apache.org/repos/asf/paimon-webui.git

commit 1f86d0fd0674a92f7fcb17e5800255c7f7935dcc
Author: s7monk <34...@users.noreply.github.com>
AuthorDate: Tue Jul 9 19:52:05 2024 +0800

    [Improvement] Enhance cluster query fields with deploymentMode (#478)
---
 paimon-web-server/src/main/resources/mapper/ClusterMapper.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml b/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml
index 65f5c21a..36526245 100644
--- a/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml
+++ b/paimon-web-server/src/main/resources/mapper/ClusterMapper.xml
@@ -34,7 +34,7 @@ under the License.
     </resultMap>
 
     <sql id="selectClusterVo">
-        select id, cluster_name, host, port, `type`, enabled, create_time, update_time from cluster
+        select id, cluster_name, host, port, `type`, deployment_mode, enabled, heartbeat_status, create_time, update_time from cluster
     </sql>
 
     <select id="listClusters" parameterType="org.apache.paimon.web.server.data.model.ClusterInfo" resultMap="SysClusterResult">
@@ -55,6 +55,9 @@ under the License.
             <if test="cluster.type != null and cluster.type != ''">
                 AND `type` = #{cluster.type}
             </if>
+            <if test="cluster.deploymentMode != null and cluster.deploymentMode != ''">
+                AND deployment_mode = #{cluster.deploymentMode}
+            </if>
             <if test="cluster.enabled != null">
                 AND enabled = #{cluster.enabled}
             </if>