SDA-4036 Remove 1.5 related code for version discovery (#1662)

This commit is contained in:
Salah Benmoussati 2023-02-08 11:33:36 +01:00 committed by GitHub
parent 33664a8410
commit 20f0d92152
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 16 deletions

View File

@ -182,15 +182,10 @@ class VersionHandler {
/* Get SFE version */
let urlSfeVersion: string;
if (mainUrl?.includes('bff')) {
urlSfeVersion = mainUrl?.includes('/daily/')
? `${protocol}//${hostname}/bff-daily/daily/version.json`
: `${protocol}//${hostname}/client-bff/version.json`;
this.versionInfo.sfeClientType = '2.0';
} else {
urlSfeVersion = `${protocol}//${hostname}/client/version.json`;
this.versionInfo.sfeClientType = '1.5';
}
urlSfeVersion = mainUrl?.includes('/daily/')
? `${protocol}//${hostname}/bff-daily/daily/version.json`
: `${protocol}//${hostname}/client-bff/version.json`;
this.versionInfo.sfeClientType = '2.0';
logger.info(
`version-handler: Trying to get SFE version info for the URL: ${urlSfeVersion}`,
);

View File

@ -35,6 +35,7 @@ interface IState {
}
const ABOUT_SYMPHONY_NAMESPACE = 'AboutSymphony';
const SFE_CLIENT_TYPE_NAME = 'SFE-Lite';
/**
* Window that display app version and copyright info
@ -85,7 +86,6 @@ export default class AboutApp extends React.Component<{}, IState> {
buildNumber,
hostname,
sfeVersion,
sfeClientType,
sdaVersion,
sdaBuildNumber,
client,
@ -98,7 +98,6 @@ export default class AboutApp extends React.Component<{}, IState> {
)()} \xA9 ${new Date().getFullYear()} ${appName}`;
const podVersion = `${clientVersion} (${buildNumber})`;
const sdaVersionBuild = `${sdaVersion} (${sdaBuildNumber})`;
let sfeClientTypeName = 'SFE-Lite';
const symphonySectionItems = [
{
key: 'POD:',
@ -113,15 +112,11 @@ export default class AboutApp extends React.Component<{}, IState> {
value: sdaVersionBuild,
},
{
key: `${sfeClientTypeName}:`,
key: `${SFE_CLIENT_TYPE_NAME}:`,
value: `${sfeVersion} ${client}`,
},
];
if (sfeClientType !== '1.5') {
sfeClientTypeName = 'SFE-Lite';
}
return (
<div className='AboutApp' lang={i18n.getLocale()}>
<div className='AboutApp-header-container'>