Browse Source

SONAR-21999 Change lts wording to lta

tags/9.9.5.90363
stanislavh 1 month ago
parent
commit
03dac47b78

+ 1
- 1
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/DatabaseServerCompatibility.java View File

if (status == DatabaseVersion.Status.REQUIRES_UPGRADE) { if (status == DatabaseVersion.Status.REQUIRES_UPGRADE) {
Optional<Long> currentVersion = this.version.getVersion(); Optional<Long> currentVersion = this.version.getVersion();
if (currentVersion.isPresent() && currentVersion.get() < DatabaseVersion.MIN_UPGRADE_VERSION) { if (currentVersion.isPresent() && currentVersion.get() < DatabaseVersion.MIN_UPGRADE_VERSION) {
throw MessageException.of("Current version is too old. Please upgrade to Long Term Support version firstly.");
throw MessageException.of("The version of SonarQube is too old. Please upgrade to the Long-Term Active version first.");
} }
boolean blueGreen = configuration.getBoolean(ProcessProperties.Property.BLUE_GREEN_ENABLED.getKey()).orElse(false); boolean blueGreen = configuration.getBoolean(ProcessProperties.Property.BLUE_GREEN_ENABLED.getKey()).orElse(false);
if (!blueGreen) { if (!blueGreen) {

+ 2
- 2
server/sonar-webserver-core/src/test/java/org/sonar/server/platform/DatabaseServerCompatibilityTest.java View File

} }


@Test @Test
public void fail_if_requires_firstly_to_upgrade_to_lts() {
public void fail_if_requires_firstly_to_upgrade_to_lta() {
DatabaseVersion version = mock(DatabaseVersion.class); DatabaseVersion version = mock(DatabaseVersion.class);
when(version.getStatus()).thenReturn(DatabaseVersion.Status.REQUIRES_UPGRADE); when(version.getStatus()).thenReturn(DatabaseVersion.Status.REQUIRES_UPGRADE);
when(version.getVersion()).thenReturn(Optional.of(12L)); when(version.getVersion()).thenReturn(Optional.of(12L));
var compatibility = new DatabaseServerCompatibility(version, config); var compatibility = new DatabaseServerCompatibility(version, config);
assertThatThrownBy(compatibility::start) assertThatThrownBy(compatibility::start)
.isInstanceOf(MessageException.class) .isInstanceOf(MessageException.class)
.hasMessage("Current version is too old. Please upgrade to Long Term Support version firstly.");
.hasMessage("The version of SonarQube is too old. Please upgrade to the Long-Term Active version first.");
} }


@Test @Test

+ 1
- 1
sonar-core/src/main/resources/org/sonar/l10n/core.properties View File

system.how_to_upgrade=How to upgrade? system.how_to_upgrade=How to upgrade?
system.latest_version=Latest Version system.latest_version=Latest Version
system.latest_patch=Patch Release system.latest_patch=Patch Release
system.lts_version=Latest LTS Version
system.lts_version=Latest LTA 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=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.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. system.log_level.info=Your selection does not affect the Search Engine.

Loading…
Cancel
Save