Skip to content

Commit d2514c4

Browse files
committed
Clean
1 parent a486788 commit d2514c4

12 files changed

+7
-53
lines changed

ui/src/app/about/info/info.component.html

-7
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ <h3>{{ 'about.info.runtimeSkipperDeployer' | translate }}</h3>
136136
<strong>{{ 'about.info.platformType' | translate }}: </strong>
137137
{{ about.runtimeEnvironment.appDeployer.platformType || 'N/A' }}
138138
</li>
139-
<li>
140-
<strong>{{ 'about.info.springBootVersion' | translate }}: </strong>
141-
{{ about.runtimeEnvironment.appDeployer.springBootVersion || 'N/A' }}
142-
</li>
143139
<li>
144140
<strong>{{ 'about.info.springVersion' | translate }}: </strong>
145141
{{ about.runtimeEnvironment.appDeployer.springVersion || 'N/A' }}
@@ -203,9 +199,6 @@ <h3>{{ 'about.info.runtimeTaskLauncher' | translate }}</h3>
203199
<li>
204200
<strong>{{ 'about.info.platformType' | translate }}: </strong> {{ item.platformType }}
205201
</li>
206-
<li>
207-
<strong>{{ 'about.info.springBootVersion' | translate }}: </strong> {{ item.springBootVersion }}
208-
</li>
209202
<li>
210203
<strong>{{ 'about.info.springVersion' | translate }}: </strong> {{ item.springVersion }}
211204
</li>

ui/src/app/apps/add/register/register.component.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {TranslateService} from '@ngx-translate/core';
1414
export class RegisterComponent implements OnInit {
1515
forms: UntypedFormGroup[] = [];
1616
applicationTypes = ApplicationType;
17-
bootVersions: Array<string>;
1817
defaultBoot: string;
1918
submitted = false;
2019
isImporting = false;
@@ -28,11 +27,7 @@ export class RegisterComponent implements OnInit {
2827
) {}
2928

3029
ngOnInit(): void {
31-
this.appService.getBootVersions().subscribe((data: any) => {
32-
this.bootVersions = data.versions;
33-
this.defaultBoot = data.defaultSchemaVersion;
34-
this.newForm();
35-
});
30+
this.newForm();
3631
}
3732

3833
register(): void {

ui/src/app/apps/app/app.component.html

-8
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,6 @@ <h1 class="page-title">
6868
<span *ngIf="defaultApp" class="label">{{ detailedApp.version }}</span>
6969
</div>
7070
</div>
71-
<div class="row">
72-
<div class="key">{{ 'applications.main.bootVersion' | translate }}</div>
73-
<div class="value">
74-
<span *ngIf="defaultApp" class="label">{{
75-
'applications.main.bootVersions.' + detailedApp.bootVersion | translate
76-
}}</span>
77-
</div>
78-
</div>
7971
<div *ngIf="detailedApp.uri" class="row">
8072
<div class="key">{{ 'applications.main.uri' | translate }}</div>
8173
<div class="value">{{ detailedApp.uri }}</div>

ui/src/app/apps/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class AppComponent implements OnInit {
7575
this.detailedApp.version = app.version;
7676
this.detailedApp.defaultVersion = app.defaultVersion;
7777
}
78-
this.appsService.getApp(app.name, app.type, app.version, app.version).subscribe(
78+
this.appsService.getApp(app.name, app.type, app.version).subscribe(
7979
(detailedApp: DetailedApp) => {
8080
this.tooManyProperties = detailedApp.options.length > 50;
8181
this.showAllProperties = !this.tooManyProperties;

ui/src/app/shared/api/app.service.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ describe('shared/api/app.service.ts', () => {
3939

4040
it('getApp with spring boot version in parameter', () => {
4141
mockHttp.get.and.returnValue(of(jsonData));
42-
appService.getApp('foo', 'processor' as any as ApplicationType, '', '3');
42+
appService.getApp('foo', 'processor' as any as ApplicationType, '');
4343
const httpUri = mockHttp.get.calls.mostRecent().args[0];
4444
const headerArgs = mockHttp.get.calls.mostRecent().args[1].headers;
45-
expect(httpUri).toEqual('/apps/processor/foo?bootVersion=3');
45+
expect(httpUri).toEqual('/apps/processor/foo');
4646
expect(headerArgs.get('Content-Type')).toEqual('application/json');
4747
expect(headerArgs.get('Accept')).toEqual('application/json');
4848
});

ui/src/app/shared/api/app.service.ts

+3-15
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,11 @@ export class AppService {
4242
.pipe(map(AppPage.parse), catchError(ErrorUtils.catchError));
4343
}
4444

45-
getApp(
46-
name: string,
47-
type: ApplicationType,
48-
appVersion?: string,
49-
bootVersion?: string
50-
): Observable<DetailedApp | unknown> {
45+
getApp(name: string, type: ApplicationType, appVersion?: string): Observable<DetailedApp | unknown> {
5146
const headers = HttpUtils.getDefaultHttpHeaders();
52-
const bootVersionConfig = bootVersion ? `?bootVersion=${bootVersion}` : ``;
53-
let url = UrlUtilities.calculateBaseApiUrl() + `apps/${type}/${name}${bootVersionConfig}`;
47+
let url = UrlUtilities.calculateBaseApiUrl() + `apps/${type}/${name}`;
5448
if (appVersion) {
55-
url = UrlUtilities.calculateBaseApiUrl() + `apps/${type}/${name}/${appVersion}${bootVersionConfig}`;
49+
url = UrlUtilities.calculateBaseApiUrl() + `apps/${type}/${name}/${appVersion}`;
5650
}
5751
return this.httpClient.get(url, {headers}).pipe(map(DetailedApp.parse), catchError(ErrorUtils.catchError));
5852
}
@@ -65,12 +59,6 @@ export class AppService {
6559
);
6660
}
6761

68-
getBootVersions(): Observable<any> {
69-
const headers = HttpUtils.getDefaultHttpHeaders();
70-
const url = UrlUtilities.calculateBaseApiUrl() + `schema/versions`;
71-
return this.httpClient.get(url, {headers}).pipe(catchError(ErrorUtils.catchError));
72-
}
73-
7462
unregisterApp(app: App): Observable<any> {
7563
const headers = HttpUtils.getDefaultHttpHeaders();
7664
let url = UrlUtilities.calculateBaseApiUrl() + `apps/${app.type}/${app.name}`;

ui/src/app/shared/model/app.model.ts

-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export class App {
3030
version: string;
3131
defaultVersion: boolean;
3232
versions: Array<string>;
33-
bootVersion?: string;
3433

3534
public static parse(input: any): App {
3635
const app = new App();
@@ -40,7 +39,6 @@ export class App {
4039
app.version = input.version;
4140
app.defaultVersion = input.defaultVersion;
4241
app.versions = input.versions;
43-
app.bootVersion = input.bootVersion;
4442
return app;
4543
}
4644

ui/src/app/shared/model/detailed-app.model.ts

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export class DetailedApp extends App {
8181
app.name = input.name;
8282
app.type = input.type as ApplicationType;
8383
app.uri = input.uri;
84-
app.bootVersion = input.bootVersion;
8584
app.version = input.version;
8685
app.versions = input.versions;
8786
app.defaultVersion = input.defaultVersion;

ui/src/app/shared/store/about.reducer.ts

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export interface RuntimeEnvironmentState {
2222
platformHostVersion: string;
2323
platformSpecificInfo: any;
2424
platformType: string;
25-
springBootVersion: string;
2625
springVersion: string;
2726
}
2827

ui/src/app/shared/store/about.support.ts

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const parseRuntimeEnvironment = (input: any): RuntimeEnvironmentState => ({
3131
platformHostVersion: input.platformHostVersion,
3232
platformSpecificInfo: parsePlatformSpecificInfo(input.platformSpecificInfo),
3333
platformType: input.platformType,
34-
springBootVersion: input.springBootVersion,
3534
springVersion: input.springVersion
3635
});
3736

ui/src/app/tests/api/app.service.mock.ts

-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ export class AppServiceMock {
2626
return of(GET_APP).pipe(delay(1), map(DetailedApp.parse), catchError(ErrorUtils.catchError));
2727
}
2828

29-
getBootVersions(): Observable<any> {
30-
return of({
31-
defaultSchemaVersion: '2',
32-
versions: ['2', '3']
33-
});
34-
}
35-
3629
getAppVersions(name: string, type: ApplicationType): Observable<App[]> {
3730
return of(GET_APP_VERSIONS).pipe(
3831
map(AppPage.parse),

ui/src/app/tests/data/about.ts

-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export const LOAD = {
2828
platformHostVersion: '',
2929
platformSpecificInfo: {default: 'local'},
3030
platformType: 'Skipper Managed',
31-
springBootVersion: '2.3.2.RELEASE',
3231
springVersion: '5.2.8.RELEASE'
3332
},
3433
taskLaunchers: [
@@ -42,7 +41,6 @@ export const LOAD = {
4241
platformHostVersion: '4.19.76-linuxkit',
4342
platformSpecificInfo: {},
4443
platformType: 'Local',
45-
springBootVersion: '2.3.2.RELEASE',
4644
springVersion: '5.2.8.RELEASE'
4745
}
4846
]

0 commit comments

Comments
 (0)