Skip to content

Commit dc51074

Browse files
committed
GUI BugFix => On mini, get EUS serviceInstance correctly
1 parent a20ba1f commit dc51074

5 files changed

Lines changed: 20 additions & 7 deletions

File tree

elastest-torm-gui/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<modelVersion>4.0.0</modelVersion>
77
<groupId>io.elastest.etm</groupId>
88
<artifactId>elastest-torm-gui</artifactId>
9-
<version>1.4.0</version>
9+
<version>1.4.1</version>
1010
<packaging>jar</packaging>
1111
<build>
1212
<plugins>

elastest-torm-gui/src/app/elastest-etm/tjob-exec/live-tjob-exec-manager/live-tjob-exec-manager.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@
109109
<etm-monitoring-view #logsAndMetrics [live]="true" [showConfigBtn]="false"></etm-monitoring-view>
110110

111111
<!-- TSS Services Instances -->
112-
<div *ngIf="this.elastestMode && this.elastestMode === 'mini' && serviceInstances.length > 0; else tSServices">
112+
<div *ngIf="this.elastestMode && this.elastestMode === 'mini' && serviceInstances.length > 0 && eusInstance; else tSServices">
113113
<app-elastest-eus
114-
[eusUrl]="serviceInstances[0].urls.api"
115-
[eusHost]="serviceInstances[0].ip"
116-
[eusPort]="serviceInstances[0].port"
114+
[eusUrl]="eusInstance.urls.api"
115+
[eusHost]="eusInstance.ip"
116+
[eusPort]="eusInstance.port"
117117
[standalone]="false"
118118
[isNested]="true"
119119
[abstractTJobExec]="tJobExec"

elastest-torm-gui/src/app/elastest-etm/tjob-exec/live-tjob-exec-manager/live-tjob-exec-manager.component.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class LiveTjobExecManagerComponent implements OnInit, AfterViewInit, OnDe
3737

3838
serviceInstances: EsmServiceInstanceModel[] = [];
3939
instancesNumber: number;
40+
eusInstance: EsmServiceInstanceModel;
4041

4142
tJobExecMultiConfigs: ParameterModel[] = [];
4243
tJobExecParameters: ParameterModel[] = [];
@@ -165,6 +166,7 @@ export class LiveTjobExecManagerComponent implements OnInit, AfterViewInit, OnDe
165166
if (serviceInstances.length === this.instancesNumber || this.tJobExec.finished()) {
166167
this.unsubscribeCheckTssInstances();
167168
this.serviceInstances = [...serviceInstances];
169+
this.searchForEUS();
168170
}
169171
},
170172
(error: Error) => console.log(error),
@@ -173,6 +175,17 @@ export class LiveTjobExecManagerComponent implements OnInit, AfterViewInit, OnDe
173175
}
174176
}
175177

178+
searchForEUS(): void {
179+
if (this.serviceInstances && this.serviceInstances.length > 0) {
180+
for (let instance of this.serviceInstances) {
181+
if (instance && instance.serviceName && instance.serviceName.toLowerCase() === 'eus') {
182+
this.eusInstance = instance;
183+
break;
184+
}
185+
}
186+
}
187+
}
188+
176189
unsubscribeCheckTssInstances(): void {
177190
if (this.checkTSSInstancesSubscription !== undefined) {
178191
this.checkTSSInstancesSubscription.unsubscribe();

elastest-torm/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<groupId>io.elastest.etm</groupId>
1313
<artifactId>elastest-torm</artifactId>
1414
<packaging>jar</packaging>
15-
<version>1.4.0</version>
15+
<version>1.4.1</version>
1616

1717
<name>${project.groupId}:${project.artifactId}</name>
1818
<description>This artifact contains the Elastest Torm project, part of the Elastest platform.</description>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>io.elastest</groupId>
66
<artifactId>torm</artifactId>
77
<packaging>pom</packaging>
8-
<version>1.4.0</version>
8+
<version>1.4.1</version>
99

1010
<name>${project.groupId}:${project.artifactId}</name>
1111
<description>Test Orchestration and Recommendation Manager (TORM) reactor</description>

0 commit comments

Comments
 (0)