render() {
const { upgrading } = this.state;
const { appState, systemUpgrades, latestLTS, updateUseCase } = this.props;
- let systemUpgradesWithPatch = systemUpgrades;
+ let systemUpgradesWithPatch: SystemUpgrade[][] = [];
const alertVariant = updateUseCase ? MAP_ALERT[updateUseCase] : undefined;
const header = translate('system.system_upgrade');
const parsedVersion = this.versionParser.exec(appState.version);
.map(upgrades => upgrades.filter(upgrade => !upgrade.version.startsWith(majoMinorVersion)))
.filter(negate(isEmpty));
systemUpgradesWithPatch.push(patches);
+ } else {
+ let untilLTS = false;
+ for (const upgrades of systemUpgrades) {
+ if (untilLTS === false) {
+ systemUpgradesWithPatch.push(upgrades);
+ untilLTS = upgrades.some(upgrade => upgrade.version.startsWith(latestLTS));
+ }
+ }
}
return (
<div className="system-upgrade-version it__upgrade-list-item">
<h3 className="h1 spacer-bottom">
<strong>{header}</strong>
- {!isLTSVersion && (
+ {!isPatch && (
<a
className="spacer-left medium"
href="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
<strong>
system.lts_version
</strong>
+ <a
+ className="spacer-left medium"
+ href="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
+ rel="noopener noreferrer"
+ target="_blank"
+ >
+ system.see_whats_new
+ </a>
</h3>
<p>
<FormattedMessage
<strong>
system.latest_patch
</strong>
- <a
- className="spacer-left medium"
- href="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
- rel="noopener noreferrer"
- target="_blank"
- >
- system.see_whats_new
- </a>
</h3>
<p>
<FormattedMessage
system.hide_intermediate_versions=Hide intermediate versions
system.how_to_upgrade=How to upgrade?
system.latest_version=Latest Version
-system.latest_patch=Latest Patch Release
-system.lts_version=LTS Version
+system.latest_patch=Patch Release
+system.lts_version=Latest LTS Version
system.log_level.warning=This level has performance impacts, please make sure to get back to INFO level once your investigation is done. Please note that when the server is restarted, logging will revert to the level configured in sonar.properties.
system.log_level.warning.short=Current logs level has performance impacts, get back to INFO level.
system.log_level.info=Your selection does not affect the Search Engine.