gm7y8 commented on a change in pull request #13458:
URL: https://github.com/apache/flink/pull/13458#discussion_r514195731



##########
File path: 
flink-runtime-web/web-dashboard/src/app/pages/job/checkpoints/detail/job-checkpoints-detail.component.ts
##########
@@ -55,21 +59,38 @@ export class JobCheckpointsDetailComponent implements 
OnInit {
   }
 
   refresh() {
-    this.isLoading = true;
-    if (this.jobDetail && this.jobDetail.jid) {
-      this.jobService.loadCheckpointDetails(this.jobDetail.jid, 
this.checkPoint.id).subscribe(
-        data => {
-          this.checkPointDetail = data;
-          this.isLoading = false;
-          this.cdr.markForCheck();
-        },
-        () => {
-          this.isLoading = false;
-          this.cdr.markForCheck();
-        }
-      );
+      this.isLoading = true;
+      if (this.jobDetail && this.jobDetail.jid) {
+        forkJoin([
+          this.jobService.loadCheckpointConfig(this.jobDetail.jid),
+          this.jobService.loadCheckpointDetails(this.jobDetail.jid, 
this.checkPoint.id)
+        ]).subscribe(
+          ([config, detail]) => {
+            this.checkPointConfig = config;
+            this.checkPointDetail = detail;
+            if (this.checkPointDetail.checkpoint_type === 'CHECKPOINT') {
+              if (this.checkPointConfig.unaligned_checkpoints) {
+                this.checkPointType = 'unaligned checkpoint';
+              } else {
+                this.checkPointType = 'aligned checkpoint';
+              }
+            } else if (this.checkPointDetail.checkpoint_type === 
'SYNC_SAVEPOINT') {
+              this.checkPointType = 'savepoint on cancel';
+            } else if (this.checkPointDetail.checkpoint_type === 'SAVEPOINT') {
+              this.checkPointType = 'savepoint';
+            } else {
+              this.checkPointType = '-';
+            }
+            this.isLoading = false;
+            this.cdr.markForCheck();
+          },
+          () => {
+            this.isLoading = false;
+            this.cdr.markForCheck();
+          }
+        );
+      }
     }

Review comment:
       sure!




----------------------------------------------------------------
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]


Reply via email to