vthinkxie commented on a change in pull request #11356: [FLINK-15000] [web] 
WebUI metrics is very slow in large parallelism
URL: https://github.com/apache/flink/pull/11356#discussion_r393526775
 
 

 ##########
 File path: 
flink-runtime-web/web-dashboard/src/app/pages/job/overview/chart/job-overview-drawer-chart.component.ts
 ##########
 @@ -64,15 +71,35 @@ export class JobOverviewDrawerChartComponent implements 
OnInit, OnDestroy {
   closeMetric(metric: string) {
     this.listOfSelectedMetric = this.listOfSelectedMetric.filter(item => item 
!== metric);
     this.jobService.metricsCacheMap.set(this.cacheMetricKey, 
this.listOfSelectedMetric);
+    this.showList = [metric,...this.showList];
     this.updateUnselectedMetricList();
   }
 
   updateUnselectedMetricList() {
     this.listOfUnselectedMetric = this.listOfMetricName.filter(item => 
this.listOfSelectedMetric.indexOf(item) === -1);
+    this.showList = this.showList.filter(item => 
this.listOfSelectedMetric.indexOf(item) === -1);
+    this.optionList = this.listOfUnselectedMetric;
   }
 
   constructor(private metricsService: MetricsService, private jobService: 
JobService, private cdr: ChangeDetectorRef) {}
 
+  nzOnSearch(val: string){
+    this.showListPageNum=0;
 
 Review comment:
   ```suggestion
       this.showListPageNum = 0;
   ```
   Hi @faaronzheng 
   thanks a lot for your PR.
   it seems that the code is not formatted, there is a pre-commit hooks in the 
package.json it seems that it does not work in your PR, have you install the 
node_modules when create the pull request?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to