You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "yl09099 (via GitHub)" <gi...@apache.org> on 2024/07/06 06:15:57 UTC
[PR] [Improvement][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
yl09099 opened a new pull request, #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868
### What changes were proposed in this pull request?
On the Shuffle Server list page, you can sort the Shuffle Server by column to facilitate you to view information about the Shuffle Server.
### Why are the changes needed?
Fix: #1867
### Does this PR introduce _any_ user-facing change?
Yes.
### How was this patch tested?
Page view.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#discussion_r1669893032
##########
dashboard/src/main/webapp/src/pages/serverstatus/ActiveNodeListPage.vue:
##########
@@ -17,31 +17,46 @@
<template>
<div>
- <el-table :data="pageData.tableData" height="550" style="width: 100%">
- <el-table-column prop="id" label="Id" min-width="140" />
- <el-table-column prop="ip" label="IP" min-width="80" />
+ <el-table
+ :data="pageData.tableData"
+ height="550"
+ style="width: 100%"
+ :default-sort="sortColumn"
+ @sort-change="sortChangeEvent"
+ >
+ <el-table-column prop="id" label="Id" min-width="140" :sortable="true" />
+ <el-table-column prop="ip" label="IP" min-width="80" :sortable="true" />
<el-table-column prop="grpcPort" label="GrpcPort" min-width="80" />
<el-table-column prop="nettyPort" label="NettyPort" min-width="80" />
- <el-table-column prop="usedMemory" label="UsedMem" min-width="80" :formatter="memFormatter" />
+ <el-table-column
+ prop="usedMemory"
+ label="UsedMem"
+ min-width="80"
+ :formatter="memFormatter"
+ :sortable="true"
+ />
<el-table-column
prop="preAllocatedMemory"
- label="PreAllocatedMem"
+ label="Pre-Mem"
Review Comment:
done
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2212834034
I think most of codes in the node list pages are the same. I think we should create a component for node list. WDYT? @yl09099
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [Improvement][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2211711290
This should be a feature instead of an improvement.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#discussion_r1669938447
##########
dashboard/src/main/webapp/src/pages/serverstatus/ListPage.vue:
##########
@@ -0,0 +1,175 @@
+<!--
+ ~ 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.
+ -->
+
+<template>
+ <div>
+ <el-table
+ :data="listPageData.tableData"
+ height="550"
+ style="width: 100%"
+ :default-sort="sortColumn"
+ @sort-change="sortChangeEvent"
+ >
+ <el-table-column prop="id" label="Id" min-width="140" sortable fixed />
+ <el-table-column prop="ip" label="IP" min-width="80" sortable />
+ <el-table-column prop="grpcPort" label="Port" min-width="80" />
+ <el-table-column prop="nettyPort" label="NettyPort" min-width="80" />
+ <el-table-column
+ prop="usedMemory"
+ label="UsedMem"
+ min-width="80"
+ :formatter="memFormatter"
+ sortable
+ />
+ <el-table-column
+ prop="preAllocatedMemory"
+ label="PreAllocatedMem"
+ min-width="100"
+ :formatter="memFormatter"
+ sortable
+ />
+ <el-table-column
+ prop="availableMemory"
+ label="AvailableMem"
+ min-width="80"
+ :formatter="memFormatter"
+ sortable
+ />
+ <el-table-column prop="eventNumInFlush" label="FlushNum" min-width="80" sortable />
+ <el-table-column prop="status" label="Status" min-width="80" sortable />
+ <el-table-column
+ prop="registrationTime"
+ label="RegistrationTime"
+ min-width="120"
+ :formatter="dateFormatter"
+ />
+ <el-table-column
+ prop="timestamp"
+ label="HeartbeatTime"
+ min-width="120"
+ :formatter="dateFormatter"
+ sortable
+ />
+ <el-table-column prop="tags" label="Tags" min-width="140" />
+ </el-table>
+ </div>
+</template>
+<script>
+import { onMounted, reactive, watch } from 'vue'
+import { memFormatter, dateFormatter } from '@/utils/common'
+import {
+ getShuffleActiveNodes,
+ getShuffleDecommissionedList,
+ getShuffleDecommissioningList,
+ getShuffleLostList,
+ getShuffleUnhealthyList
+} from '@/api/api'
+import { useRouter } from 'vue-router'
+import { useCurrentServerStore } from '@/store/useCurrentServerStore'
+
+export default {
+ setup() {
+ const router = useRouter()
+ const currentServerStore = useCurrentServerStore()
+ const sortColumn = reactive({})
+ const listPageData = reactive({
+ tableData: [
+ {
+ id: '',
+ ip: '',
+ grpcPort: 0,
+ nettyPort: 0,
+ usedMemory: 0,
+ preAllocatedMemory: 0,
+ availableMemory: 0,
+ eventNumInFlush: 0,
+ tags: '',
+ status: '',
+ registrationTime: '',
+ timestamp: ''
+ }
+ ]
+ })
+
+ async function getShuffleActiveNodesPage() {
+ const res = await getShuffleActiveNodes()
+ listPageData.tableData = res.data.data
+ }
+
+ async function getShuffleDecommissionedListPage() {
+ const res = await getShuffleDecommissionedList()
+ listPageData.tableData = res.data.data
+ }
+
+ async function getShuffleDecommissioningListPage() {
+ const res = await getShuffleDecommissioningList()
+ listPageData.tableData = res.data.data
+ }
+
+ async function getShuffleLostListPage() {
+ const res = await getShuffleLostList()
+ listPageData.tableData = res.data.data
+ }
+
+ async function getShuffleUnhealthyListPage() {
+ const res = await getShuffleUnhealthyList()
+ listPageData.tableData = res.data.data
+ }
+
+ onMounted(() => {
+ // If the coordinator address to request is not found in the global variable, the request is not initiated.
+ if (currentServerStore.currentServer) {
+ if (router.currentRoute.value.name === 'activeNodeList') {
+ getShuffleActiveNodesPage()
+ } else if (router.currentRoute.value.name === 'decommissioningNodeList') {
+ getShuffleDecommissioningListPage()
+ } else if (router.currentRoute.value.name === 'decommissionedNodeList') {
+ getShuffleDecommissionedListPage()
+ } else if (router.currentRoute.value.name === 'unhealthyNodeList') {
+ getShuffleUnhealthyListPage()
+ } else if (router.currentRoute.value.name === 'lostNodeList') {
+ getShuffleLostListPage()
+ }
+ }
+ })
+
+ watch(router.currentRoute, () => {
+ if (currentServerStore.currentServer) {
+ if (router.currentRoute.value.name === 'activeNodeList') {
+ getShuffleActiveNodesPage()
+ } else if (router.currentRoute.value.name === 'decommissioningNodeList') {
+ getShuffleDecommissioningListPage()
+ } else if (router.currentRoute.value.name === 'decommissionedNodeList') {
+ getShuffleDecommissionedListPage()
+ } else if (router.currentRoute.value.name === 'unhealthyNodeList') {
+ getShuffleUnhealthyListPage()
+ } else if (router.currentRoute.value.name === 'lostNodeList') {
+ getShuffleLostListPage()
+ }
Review Comment:
Could you create a function for this part of code?
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401] feat(dashboard): Shuffle server page list sorting function. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2216919110
Merged to master.
Thanks for your contribution @yl09099
Thanks for your review @xianjingfeng
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [#1401] feat(dashboard): Shuffle server page list sorting function. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma merged PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#discussion_r1667857550
##########
dashboard/src/main/webapp/src/pages/ApplicationPage.vue:
##########
@@ -32,19 +32,43 @@
<el-divider />
<el-tag>User App ranking</el-tag>
<div>
- <el-table :data="pageData.userAppCount" height="250" style="width: 100%">
- <el-table-column prop="userName" label="UserName" min-width="180" />
- <el-table-column prop="appNum" label="Totality" min-width="180" />
+ <el-table
+ :data="pageData.userAppCount"
+ height="250"
+ style="width: 100%"
+ :default-sort="sortAppCollect"
+ @sort-change="sortAppCollectChangeEvent"
+ >
+ <el-table-column prop="userName" label="UserName" min-width="180" :sortable="true" />
+ <el-table-column prop="appNum" label="Totality" min-width="180" :sortable="true" />
</el-table>
</div>
<el-divider />
<el-tag>Apps</el-tag>
<div>
- <el-table :data="pageData.appInfoData" height="250" style="width: 100%">
- <el-table-column prop="appId" label="AppId" min-width="180" />
- <el-table-column prop="userName" label="UserName" min-width="180" />
- <el-table-column prop="registrationTime" label="Registration Time" min-width="180" :formatter="dateFormatter" />
- <el-table-column prop="updateTime" label="Update Time" min-width="180" :formatter="dateFormatter" />
+ <el-table
+ :data="pageData.appInfoData"
+ height="250"
+ style="width: 100%"
+ :default-sort="sortApp"
+ @sort-change="sortAppChangeEvent"
+ >
+ <el-table-column prop="appId" label="AppId" min-width="180" :sortable="true" />
+ <el-table-column prop="userName" label="UserName" min-width="180" :sortable="true" />
+ <el-table-column
+ prop="registrationTime"
+ label="Registration Time"
+ min-width="180"
+ :formatter="dateFormatter"
+ :sortable="true"
Review Comment:
```suggestion
sortable
```
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#discussion_r1669945468
##########
dashboard/src/main/webapp/src/pages/serverstatus/ListPage.vue:
##########
Review Comment:
`NodeListPage.vue` may be better.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2216749560
> I think most of codes in the node list pages are the same. I think we should create a component for node list. WDYT? @yl09099
This one's ready. I hope I'm taking a look at it.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [Improvement][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2211683559
## Test Results
2 657 files +10 2 657 suites +10 5h 31m 2s :stopwatch: + 4m 28s
946 tests ± 0 945 :white_check_mark: + 1 1 :zzz: ±0 0 :x: ±0
11 799 runs +10 11 784 :white_check_mark: +11 15 :zzz: ±0 0 :x: ±0
Results for commit 03b782d7. ± Comparison against base commit 70495697.
[test-results]:data:application/gzip;base64,H4sIAIDoiGYC/03MSw6DIBSF4a0Yxh1wedPNNFfBhNRHgzAy3XvRgHV4Pi7/TsYw+Y08O6akfnRkyyHdt8sRU1iXImCNYoXKezourFBtvbY8DCfJP73D5/h1wYhhKkAv8DGusUrMy9EE0NbW2aLFjLisVmWDW/Xc9+iwznNIZRDKe22Y044b5dExMLJHBK8EcuTcyd5TARrI9wep4gAPEgEAAA==
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2213623187
> I think most of codes in the node list pages are the same. I think we should create a component for node list. WDYT? @yl09099
That's the right thing to do, but my research.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#discussion_r1669875814
##########
dashboard/src/main/webapp/src/pages/serverstatus/ActiveNodeListPage.vue:
##########
@@ -17,31 +17,46 @@
<template>
<div>
- <el-table :data="pageData.tableData" height="550" style="width: 100%">
- <el-table-column prop="id" label="Id" min-width="140" />
- <el-table-column prop="ip" label="IP" min-width="80" />
+ <el-table
+ :data="pageData.tableData"
+ height="550"
+ style="width: 100%"
+ :default-sort="sortColumn"
+ @sort-change="sortChangeEvent"
+ >
+ <el-table-column prop="id" label="Id" min-width="140" :sortable="true" />
+ <el-table-column prop="ip" label="IP" min-width="80" :sortable="true" />
<el-table-column prop="grpcPort" label="GrpcPort" min-width="80" />
<el-table-column prop="nettyPort" label="NettyPort" min-width="80" />
- <el-table-column prop="usedMemory" label="UsedMem" min-width="80" :formatter="memFormatter" />
+ <el-table-column
+ prop="usedMemory"
+ label="UsedMem"
+ min-width="80"
+ :formatter="memFormatter"
+ :sortable="true"
+ />
<el-table-column
prop="preAllocatedMemory"
- label="PreAllocatedMem"
+ label="Pre-Mem"
Review Comment:
Maybe we can fix the first column.
https://element.eleme.io/#/en-US/component/table#table-with-fixed-column
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [Improvement][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "rickyma (via GitHub)" <gi...@apache.org>.
rickyma commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2211678926
Great feature! I hope some of the features in https://github.com/apache/incubator-uniffle/issues/1401 are already on the roadmap.
cc @maobaolong
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on code in PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#discussion_r1668375131
##########
dashboard/src/main/webapp/src/pages/serverstatus/ActiveNodeListPage.vue:
##########
@@ -17,31 +17,46 @@
<template>
<div>
- <el-table :data="pageData.tableData" height="550" style="width: 100%">
- <el-table-column prop="id" label="Id" min-width="140" />
- <el-table-column prop="ip" label="IP" min-width="80" />
+ <el-table
+ :data="pageData.tableData"
+ height="550"
+ style="width: 100%"
+ :default-sort="sortColumn"
+ @sort-change="sortChangeEvent"
+ >
+ <el-table-column prop="id" label="Id" min-width="140" :sortable="true" />
+ <el-table-column prop="ip" label="IP" min-width="80" :sortable="true" />
<el-table-column prop="grpcPort" label="GrpcPort" min-width="80" />
<el-table-column prop="nettyPort" label="NettyPort" min-width="80" />
- <el-table-column prop="usedMemory" label="UsedMem" min-width="80" :formatter="memFormatter" />
+ <el-table-column
+ prop="usedMemory"
+ label="UsedMem"
+ min-width="80"
+ :formatter="memFormatter"
+ :sortable="true"
+ />
<el-table-column
prop="preAllocatedMemory"
- label="PreAllocatedMem"
+ label="Pre-Mem"
Review Comment:
> I think the original name is better.
It turned out that the name was too long, I had to change lines when the page was displayed, and I looked very uncomfortable.Do you have any good ideas?
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2213625928
> I think most of codes in the node list pages are the same. I think we should create a component for node list. WDYT? @yl09099
It's the right thing to do, but I have to study it.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [FEATURE][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "xianjingfeng (via GitHub)" <gi...@apache.org>.
xianjingfeng commented on code in PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#discussion_r1667858266
##########
dashboard/src/main/webapp/src/pages/serverstatus/ActiveNodeListPage.vue:
##########
@@ -17,31 +17,46 @@
<template>
<div>
- <el-table :data="pageData.tableData" height="550" style="width: 100%">
- <el-table-column prop="id" label="Id" min-width="140" />
- <el-table-column prop="ip" label="IP" min-width="80" />
+ <el-table
+ :data="pageData.tableData"
+ height="550"
+ style="width: 100%"
+ :default-sort="sortColumn"
+ @sort-change="sortChangeEvent"
+ >
+ <el-table-column prop="id" label="Id" min-width="140" :sortable="true" />
+ <el-table-column prop="ip" label="IP" min-width="80" :sortable="true" />
<el-table-column prop="grpcPort" label="GrpcPort" min-width="80" />
<el-table-column prop="nettyPort" label="NettyPort" min-width="80" />
- <el-table-column prop="usedMemory" label="UsedMem" min-width="80" :formatter="memFormatter" />
+ <el-table-column
+ prop="usedMemory"
+ label="UsedMem"
+ min-width="80"
+ :formatter="memFormatter"
+ :sortable="true"
+ />
<el-table-column
prop="preAllocatedMemory"
- label="PreAllocatedMem"
+ label="Pre-Mem"
Review Comment:
I think the original name is better.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [PR] [Improvement][dashboard] Shuffle server page list sorting function. [incubator-uniffle]
Posted by "yl09099 (via GitHub)" <gi...@apache.org>.
yl09099 commented on PR #1868:
URL: https://github.com/apache/incubator-uniffle/pull/1868#issuecomment-2211677984
@xianjingfeng @jerqi @rickyma PTAL
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org