You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by pn...@apache.org on 2024/10/31 08:41:26 UTC
(flink) branch release-1.20 updated: [FLINK-36571][web] Fix issue to allow Busy and Backpressure numbers on Flink dashboard
This is an automated email from the ASF dual-hosted git repository.
pnowojski pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.20 by this push:
new abc070b1ed0 [FLINK-36571][web] Fix issue to allow Busy and Backpressure numbers on Flink dashboard
abc070b1ed0 is described below
commit abc070b1ed015267ea85e0dd0ac2b4b900530d74
Author: Hong Teoh <li...@amazon.com>
AuthorDate: Fri Oct 18 18:22:21 2024 +0100
[FLINK-36571][web] Fix issue to allow Busy and Backpressure numbers on Flink dashboard
---
.../src/app/components/dagre/components/node/node.component.ts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/flink-runtime-web/web-dashboard/src/app/components/dagre/components/node/node.component.ts b/flink-runtime-web/web-dashboard/src/app/components/dagre/components/node/node.component.ts
index cf94c2e87e2..71f25ce32ea 100644
--- a/flink-runtime-web/web-dashboard/src/app/components/dagre/components/node/node.component.ts
+++ b/flink-runtime-web/web-dashboard/src/app/components/dagre/components/node/node.component.ts
@@ -71,7 +71,9 @@ export class NodeComponent {
if (this.isValid(value.busyPercentage)) {
this.busyPercentage = value.busyPercentage;
}
- this.dataSkewPercentage = value.dataSkewPercentage;
+ if (this.isValid(value.dataSkewPercentage)) {
+ this.dataSkewPercentage = value.dataSkewPercentage;
+ }
this.height = value.height || 0;
this.id = value.id;
if (description && description.length > 300) {
@@ -82,7 +84,7 @@ export class NodeComponent {
}
isValid = (value?: number): boolean => {
- return value === undefined || value === 0 || isNaN(value);
+ return !!value || value === undefined || value === 0 || isNaN(value);
};
toRGBA = (d: string): number[] => {