Browse Source

SONAR-20541 Update all links that point to www.sonarqube.org to point to www.sonarsource.com/products/sonarqube/

tags/10.3.0.82913
guillaume-peoch-sonarsource 7 months ago
parent
commit
8cba1c302a
21 changed files with 55 additions and 51 deletions
  1. 2
    2
      README.md
  2. 2
    2
      build.gradle
  3. 11
    11
      server/sonar-ce-task-projectanalysis/src/it/java/org/sonar/ce/task/projectanalysis/step/PersistProjectLinksStepIT.java
  4. 1
    1
      server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/language/HandleUnanalyzedLanguagesStep.java
  5. 3
    3
      server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/language/HandleUnanalyzedLanguagesStepTest.java
  6. 2
    2
      server/sonar-db-dao/src/it/java/org/sonar/db/component/ProjectLinkDaoIT.java
  7. 2
    2
      server/sonar-db-dao/src/test/java/org/sonar/db/component/ProjectLinkDtoTest.java
  8. 8
    4
      server/sonar-web/src/main/js/app/components/FormattingHelp.tsx
  9. 1
    1
      server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx
  10. 1
    1
      server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx
  11. 1
    1
      server/sonar-web/src/main/js/app/components/promotion-notification/__tests__/__snapshots__/PromotionNotification-test.tsx.snap
  12. 1
    1
      server/sonar-web/src/main/js/apps/background-tasks/components/NoWorkersSupportPopup.tsx
  13. 1
    1
      server/sonar-web/src/main/js/apps/overview/components/SonarLintPromotion.tsx
  14. 2
    2
      server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopup.tsx
  15. 1
    1
      server/sonar-web/src/main/js/components/issue/components/IssueBadges.tsx
  16. 1
    1
      server/sonar-web/src/main/js/components/upgrade/SystemUpgradeForm.tsx
  17. 1
    1
      server/sonar-web/src/main/js/components/upgrade/SystemUpgradeItem.tsx
  18. 5
    5
      server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap
  19. 6
    6
      server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeItem-test.tsx.snap
  20. 1
    1
      server/sonar-webserver-webapi/src/main/resources/org/sonar/server/setting/ws/example-login-message.json
  21. 2
    2
      server/sonar-webserver-webapi/src/test/java/org/sonar/server/setting/ws/LoginMessageActionTest.java

+ 2
- 2
README.md View File

@@ -6,8 +6,8 @@ SonarQube provides the capability to not only show the health of an application

## Links

- [Website](https://www.sonarqube.org)
- [Download](https://www.sonarqube.org/downloads/)
- [Website](https://www.sonarsource.com/products/sonarqube)
- [Download](https://www.sonarsource.com/products/sonarqube/downloads)
- [Documentation](https://docs.sonarsource.com/sonarqube)
- [Twitter](https://twitter.com/SonarQube)
- [SonarSource](https://www.sonarsource.com), author of SonarQube

+ 2
- 2
build.gradle View File

@@ -625,10 +625,10 @@ subprojects {
pom {
name = 'SonarQube'
description = project.description
url = 'http://www.sonarqube.org/'
url = 'https://www.sonarsource.com/products/sonarqube'
organization {
name = 'SonarSource'
url = 'http://www.sonarsource.com'
url = 'https://www.sonarsource.com'
}
licenses {
license {

+ 11
- 11
server/sonar-ce-task-projectanalysis/src/it/java/org/sonar/ce/task/projectanalysis/step/PersistProjectLinksStepIT.java View File

@@ -104,7 +104,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest {
.setRef(1)
.setType(ComponentType.PROJECT)
.addChildRef(2)
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(SCM).setHref("https://github.com/SonarSource/sonar").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(ISSUE).setHref("http://jira.sonarsource.com/").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(CI).setHref("http://bamboo.ci.codehaus.org/browse/SONAR").build())
@@ -115,7 +115,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest {
assertThat(db.getDbClient().projectLinkDao().selectByProjectUuid(db.getSession(), project.projectUuid()))
.extracting(ProjectLinkDto::getType, ProjectLinkDto::getHref, ProjectLinkDto::getName)
.containsExactlyInAnyOrder(
tuple("homepage", "http://www.sonarqube.org", null),
tuple("homepage", "https://www.sonarsource.com/products/sonarqube", null),
tuple("scm", "https://github.com/SonarSource/sonar", null),
tuple("issue", "http://jira.sonarsource.com/", null),
tuple("ci", "http://bamboo.ci.codehaus.org/browse/SONAR", null));
@@ -124,21 +124,21 @@ public class PersistProjectLinksStepIT extends BaseStepTest {
@Test
public void nothing_to_do_when_link_already_exists() {
mockBranch(true);
db.projectLinks().insertProvidedLink(project.getProjectDto(), l -> l.setType("homepage").setName("Home").setHref("http://www.sonarqube.org"));
db.projectLinks().insertProvidedLink(project.getProjectDto(), l -> l.setType("homepage").setName("Home").setHref("https://www.sonarsource.com/products/sonarqube"));

treeRootHolder.setRoot(ReportComponent.builder(Component.Type.PROJECT, 1).setUuid(project.getMainBranchComponent().uuid()).build());

reportReader.putComponent(ScannerReport.Component.newBuilder()
.setRef(1)
.setType(ComponentType.PROJECT)
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build())
.build());

underTest.execute(new TestComputationStepContext());

assertThat(db.getDbClient().projectLinkDao().selectByProjectUuid(db.getSession(), project.projectUuid()))
.extracting(ProjectLinkDto::getType, ProjectLinkDto::getHref)
.containsExactlyInAnyOrder(tuple("homepage", "http://www.sonarqube.org"));
.containsExactlyInAnyOrder(tuple("homepage", "https://www.sonarsource.com/products/sonarqube"));
}

@Test
@@ -153,7 +153,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest {
reportReader.putComponent(ScannerReport.Component.newBuilder()
.setRef(2)
.setType(ComponentType.MODULE)
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build())
.build());

underTest.execute(new TestComputationStepContext());
@@ -176,7 +176,7 @@ public class PersistProjectLinksStepIT extends BaseStepTest {
reportReader.putComponent(ScannerReport.Component.newBuilder()
.setRef(2)
.setType(ComponentType.FILE)
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build())
.build());

underTest.execute(new TestComputationStepContext());
@@ -193,14 +193,14 @@ public class PersistProjectLinksStepIT extends BaseStepTest {
reportReader.putComponent(ScannerReport.Component.newBuilder()
.setRef(1)
.setType(ComponentType.PROJECT)
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build())
.build());

underTest.execute(new TestComputationStepContext());

assertThat(db.getDbClient().projectLinkDao().selectByProjectUuid(db.getSession(), project.getProjectDto().getUuid()))
.extracting(ProjectLinkDto::getType, ProjectLinkDto::getHref)
.containsExactlyInAnyOrder(tuple("homepage", "http://www.sonarqube.org"));
.containsExactlyInAnyOrder(tuple("homepage", "https://www.sonarsource.com/products/sonarqube"));
}

@Test
@@ -245,8 +245,8 @@ public class PersistProjectLinksStepIT extends BaseStepTest {
reportReader.putComponent(ScannerReport.Component.newBuilder()
.setRef(1)
.setType(ComponentType.PROJECT)
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("http://www.sonarqube.org").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build())
.addLink(ScannerReport.ComponentLink.newBuilder().setType(HOME).setHref("https://www.sonarsource.com/products/sonarqube").build())
.build());

assertThatThrownBy(() -> underTest.execute(new TestComputationStepContext()))

+ 1
- 1
server/sonar-ce-task-projectanalysis/src/main/java/org/sonar/ce/task/projectanalysis/language/HandleUnanalyzedLanguagesStep.java View File

@@ -52,7 +52,7 @@ public class HandleUnanalyzedLanguagesStep implements ComputationStep {
static final String DESCRIPTION = "Check upgrade possibility for not analyzed code files.";

private static final String LANGUAGE_UPGRADE_MESSAGE = "%s detected in this project during the last analysis. %s cannot be analyzed with your" +
" current SonarQube edition. Please consider <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to" +
" current SonarQube edition. Please consider <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to" +
" Developer Edition</a> to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in %s.";

private final BatchReportReader reportReader;

+ 3
- 3
server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/language/HandleUnanalyzedLanguagesStepTest.java View File

@@ -110,7 +110,7 @@ public class HandleUnanalyzedLanguagesStepTest {
.containsExactly(tuple(
"10 unanalyzed C, 20 unanalyzed C++ and 1000 unanalyzed SomeLang files were detected in this project during the last analysis. C," +
" C++ and SomeLang cannot be analyzed with your current SonarQube edition. Please consider" +
" <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to Developer Edition</a> to find Bugs," +
" <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to Developer Edition</a> to find Bugs," +
" Code Smells, Vulnerabilities and Security Hotspots in these files.",
MessageType.SUGGEST_DEVELOPER_EDITION_UPGRADE));
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_C_KEY).get().getIntValue()).isEqualTo(10);
@@ -130,7 +130,7 @@ public class HandleUnanalyzedLanguagesStepTest {
List<CeTaskMessages.Message> messages = argumentCaptor.getAllValues();
assertThat(messages).extracting(CeTaskMessages.Message::getText).containsExactly(
"10 unanalyzed C files were detected in this project during the last analysis. C cannot be analyzed with your current SonarQube edition. Please" +
" consider <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to Developer" +
" consider <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to Developer" +
" Edition</a> to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in this file.");
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_C_KEY).get().getIntValue()).isEqualTo(10);
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_CPP_KEY)).isEmpty();
@@ -149,7 +149,7 @@ public class HandleUnanalyzedLanguagesStepTest {
List<CeTaskMessages.Message> messages = argumentCaptor.getAllValues();
assertThat(messages).extracting(CeTaskMessages.Message::getText).containsExactly(
"1 unanalyzed C++ file was detected in this project during the last analysis. C++ cannot be analyzed with your current SonarQube edition. Please" +
" consider <a target=\"_blank\" href=\"https://www.sonarqube.org/trial-request/developer-edition/?referrer=sonarqube-cpp\">upgrading to Developer" +
" consider <a target=\"_blank\" href=\"https://www.sonarsource.com/plans-and-pricing/developer/?referrer=sonarqube-cpp\">upgrading to Developer" +
" Edition</a> to find Bugs, Code Smells, Vulnerabilities and Security Hotspots in this file.");
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_CPP_KEY).get().getIntValue()).isOne();
assertThat(measureRepository.getAddedRawMeasure(PROJECT_REF, UNANALYZED_C_KEY)).isEmpty();

+ 2
- 2
server/sonar-db-dao/src/it/java/org/sonar/db/component/ProjectLinkDaoIT.java View File

@@ -140,7 +140,7 @@ public class ProjectLinkDaoIT {
.setProjectUuid(project2.uuid())
.setType("homepage")
.setName("Home")
.setHref("http://www.sonarqube.org"));
.setHref("https://www.sonarsource.com/products/sonarqube"));
db.getSession().commit();

ProjectLinkDto reloaded = underTest.selectByUuid(db.getSession(), link.getUuid());
@@ -148,7 +148,7 @@ public class ProjectLinkDaoIT {
assertThat(reloaded.getProjectUuid()).isEqualTo(project2.uuid());
assertThat(reloaded.getType()).isEqualTo("homepage");
assertThat(reloaded.getName()).isEqualTo("Home");
assertThat(reloaded.getHref()).isEqualTo("http://www.sonarqube.org");
assertThat(reloaded.getHref()).isEqualTo("https://www.sonarsource.com/products/sonarqube");
assertThat(reloaded.getCreatedAt()).isEqualTo(PAST);
assertThat(reloaded.getUpdatedAt()).isEqualTo(NOW);
}

+ 2
- 2
server/sonar-db-dao/src/test/java/org/sonar/db/component/ProjectLinkDtoTest.java View File

@@ -32,7 +32,7 @@ public class ProjectLinkDtoTest {
.setProjectUuid("EFGH")
.setType("homepage")
.setName("Home")
.setHref("http://www.sonarqube.org")
.setHref("https://www.sonarsource.com/products/sonarqube")
.setCreatedAt(1_000_000_000L)
.setUpdatedAt(5_000_000_000L);

@@ -40,7 +40,7 @@ public class ProjectLinkDtoTest {
assertThat(dto.getProjectUuid()).isEqualTo("EFGH");
assertThat(dto.getType()).isEqualTo("homepage");
assertThat(dto.getName()).isEqualTo("Home");
assertThat(dto.getHref()).isEqualTo("http://www.sonarqube.org");
assertThat(dto.getHref()).isEqualTo("https://www.sonarsource.com/products/sonarqube");
assertThat(dto.getCreatedAt()).isEqualTo(1_000_000_000L);
assertThat(dto.getUpdatedAt()).isEqualTo(5_000_000_000L);
}

+ 8
- 4
server/sonar-web/src/main/js/app/components/FormattingHelp.tsx View File

@@ -41,15 +41,19 @@ export default function FormattingHelp() {
</td>
</tr>
<tr>
<td>https://sonarqube.org</td>
<td>https://www.sonarsource.com/products/sonarqube</td>
<td className="markdown">
<a href="https://sonarqube.org">https://sonarqube.org</a>
<a href="https://www.sonarsource.com/products/sonarqube">
https://www.sonarsource.com/products/sonarqube
</a>
</td>
</tr>
<tr>
<td className="text-top">[SonarQube™ Home Page](https://www.sonarqube.org)</td>
<td className="text-top">
[SonarQube™ Home Page](https://www.sonarsource.com/products/sonarqube)
</td>
<td className="markdown text-top">
<a href="https://www.sonarqube.org">SonarQube™ Home Page</a>
<a href="https://www.sonarsource.com/products/sonarqube">SonarQube™ Home Page</a>
</td>
</tr>
<tr>

+ 1
- 1
server/sonar-web/src/main/js/app/components/GlobalFooterBranding.tsx View File

@@ -34,7 +34,7 @@ export default function GlobalFooterBranding() {
<div>
This application is based on{' '}
<a
href="https://www.sonarqube.org/?referrer=sonarqube"
href="https://www.sonarsource.com/products/sonarqube/?referrer=sonarqube"
rel="noopener noreferrer"
target="_blank"
title="SonarQube™"

+ 1
- 1
server/sonar-web/src/main/js/app/components/promotion-notification/PromotionNotification.tsx View File

@@ -58,7 +58,7 @@ export function PromotionNotification(props: CurrentUserContextInterface) {
<div className="toaster-actions spacer-left padded-left display-flex-column display-flex-center">
<a
className="button button-primary big-spacer-bottom"
href="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-welcome"
href="https://www.sonarsource.com/products/sonarlint/?referrer=sonarqube-welcome"
rel="noreferrer"
onClick={onClick}
target="_blank"

+ 1
- 1
server/sonar-web/src/main/js/app/components/promotion-notification/__tests__/__snapshots__/PromotionNotification-test.tsx.snap View File

@@ -36,7 +36,7 @@ exports[`should render correctly: loggedIn 1`] = `
>
<a
className="button button-primary big-spacer-bottom"
href="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-welcome"
href="https://www.sonarsource.com/products/sonarlint/?referrer=sonarqube-welcome"
onClick={[Function]}
rel="noreferrer"
target="_blank"

+ 1
- 1
server/sonar-web/src/main/js/apps/background-tasks/components/NoWorkersSupportPopup.tsx View File

@@ -32,7 +32,7 @@ export default function NoWorkersSupportPopup() {
</p>
<p>
<Link
to="https://www.sonarqube.org/trial-request/enterprise-edition/?referrer=sonarqube-background-tasks"
to="https://www.sonarsource.com/plans-and-pricing/enterprise/?referrer=sonarqube-background-tasks"
target="_blank"
>
{translate('learn_more')}

+ 1
- 1
server/sonar-web/src/main/js/apps/overview/components/SonarLintPromotion.tsx View File

@@ -64,7 +64,7 @@ export function SonarLintPromotion({ currentUser, qgConditions }: SonarLintPromo
link: (
<>
<DiscreetLink
to="https://www.sonarqube.org/sonarlint/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=sonarqube"
rel="noopener noreferrer"
target="_blank"
showExternalIcon={false}

+ 2
- 2
server/sonar-web/src/main/js/components/embed-docs-modal/EmbedDocsPopup.tsx View File

@@ -99,11 +99,11 @@ export function EmbedDocsPopup() {
<ItemDivider />
<ItemHeader id="stay_connected">{translate('docs.stay_connected')}</ItemHeader>
<IconLink
link="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
link="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
text={translate('docs.news')}
/>
<IconLink
link="https://www.sonarqube.org/roadmap/?referrer=sonarqube"
link="https://www.sonarsource.com/products/sonarqube/roadmap/?referrer=sonarqube"
text={translate('docs.roadmap')}
/>
<IconLink

+ 1
- 1
server/sonar-web/src/main/js/components/issue/components/IssueBadges.tsx View File

@@ -49,7 +49,7 @@ export function SonarLintBadge({ quickFixAvailable }: { quickFixAvailable?: bool
values={{
link: (
<Link
to="https://www.sonarqube.org/sonarlint/?referrer=sonarqube-quick-fix"
to="https://www.sonarsource.com/products/sonarlint/features/connected-mode/?referrer=sonarqube-quick-fix"
target="_blank"
>
SonarLint

+ 1
- 1
server/sonar-web/src/main/js/components/upgrade/SystemUpgradeForm.tsx View File

@@ -106,7 +106,7 @@ export function SystemUpgradeForm(props: Readonly<Props>) {
<div className="modal-foot">
<Link
className="pull-left link-no-underline display-flex-center"
to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
target="_blank"
>
{translate('system.see_sonarqube_downloads')}

+ 1
- 1
server/sonar-web/src/main/js/components/upgrade/SystemUpgradeItem.tsx View File

@@ -60,7 +60,7 @@ export default function SystemUpgradeItem(props: SystemUpgradeItemProps) {
{!isPatch && (
<Link
className="spacer-left medium"
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
target="_blank"
>
{translate('system.see_whats_new')}

+ 5
- 5
server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap View File

@@ -82,7 +82,7 @@ exports[`should display correctly for new_minor_version 1`] = `
<ForwardRef(Link)
className="pull-left link-no-underline display-flex-center"
target="_blank"
to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
>
system.see_sonarqube_downloads
</ForwardRef(Link)>
@@ -183,7 +183,7 @@ exports[`should display correctly for new_patch 1`] = `
<ForwardRef(Link)
className="pull-left link-no-underline display-flex-center"
target="_blank"
to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
>
system.see_sonarqube_downloads
</ForwardRef(Link)>
@@ -284,7 +284,7 @@ exports[`should display correctly for pre_lts 1`] = `
<ForwardRef(Link)
className="pull-left link-no-underline display-flex-center"
target="_blank"
to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
>
system.see_sonarqube_downloads
</ForwardRef(Link)>
@@ -385,7 +385,7 @@ exports[`should display correctly for previous_lts 1`] = `
<ForwardRef(Link)
className="pull-left link-no-underline display-flex-center"
target="_blank"
to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
>
system.see_sonarqube_downloads
</ForwardRef(Link)>
@@ -480,7 +480,7 @@ exports[`should display correctly for undefined 1`] = `
<ForwardRef(Link)
className="pull-left link-no-underline display-flex-center"
target="_blank"
to="https://www.sonarqube.org/downloads/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
>
system.see_sonarqube_downloads
</ForwardRef(Link)>

+ 6
- 6
server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeItem-test.tsx.snap View File

@@ -13,7 +13,7 @@ exports[`should display correctly 1`] = `
<ForwardRef(Link)
className="spacer-left medium"
target="_blank"
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
>
system.see_whats_new
</ForwardRef(Link)>
@@ -112,7 +112,7 @@ exports[`should display correctly 2`] = `
<ForwardRef(Link)
className="spacer-left medium"
target="_blank"
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
>
system.see_whats_new
</ForwardRef(Link)>
@@ -303,7 +303,7 @@ exports[`should display correctly 4`] = `
<ForwardRef(Link)
className="spacer-left medium"
target="_blank"
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
>
system.see_whats_new
</ForwardRef(Link)>
@@ -402,7 +402,7 @@ exports[`should display correctly 5`] = `
<ForwardRef(Link)
className="spacer-left medium"
target="_blank"
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
>
system.see_whats_new
</ForwardRef(Link)>
@@ -501,7 +501,7 @@ exports[`should display correctly 6`] = `
<ForwardRef(Link)
className="spacer-left medium"
target="_blank"
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
>
system.see_whats_new
</ForwardRef(Link)>
@@ -600,7 +600,7 @@ exports[`should display correctly 7`] = `
<ForwardRef(Link)
className="spacer-left medium"
target="_blank"
to="https://www.sonarqube.org/whats-new/?referrer=sonarqube"
to="https://www.sonarsource.com/products/sonarqube/whats-new/?referrer=sonarqube"
>
system.see_whats_new
</ForwardRef(Link)>

+ 1
- 1
server/sonar-webserver-webapi/src/main/resources/org/sonar/server/setting/ws/example-login-message.json View File

@@ -1,3 +1,3 @@
{
"message": "Login message set by admin with a link to [SonarQube Home Page](https://www.sonarqube.org)"
"message": "Login message set by admin with a link to [SonarQube Home Page](https://www.sonarsource.com/products/sonarqube)"
}

+ 2
- 2
server/sonar-webserver-webapi/src/test/java/org/sonar/server/setting/ws/LoginMessageActionTest.java View File

@@ -42,8 +42,8 @@ public class LoginMessageActionTest {
private final LoginMessageFeature loginMessageFeature = mock(LoginMessageFeature.class);
private final LoginMessageAction underTest = new LoginMessageAction(dbClient, loginMessageFeature);
private final WsActionTester ws = new WsActionTester(underTest);
private static final String LOGIN_MESSAGE_TEXT = "test link [SonarQube™ Home Page](https://www.sonarqube.org)\n* list 1\n* list 2";
private static final String FORMATTED_LOGIN_MESSAGE_TEXT = "test link \\u003ca href\\u003d\\\"https://www.sonarqube.org\\\" target\\u003d\\\"_blank\\\" rel\\u003d\\\"noopener noreferrer\\\"\\u003eSonarQube\\u0026trade; Home Page\\u003c/a\\u003e\\u003cbr/\\u003e\\u003cul\\u003e\\u003cli\\u003elist 1\\u003c/li\\u003e\\n\\u003cli\\u003elist 2\\u003c/li\\u003e\\u003c/ul\\u003e";
private static final String LOGIN_MESSAGE_TEXT = "test link [SonarQube™ Home Page](https://www.sonarsource.com/products/sonarqube)\n* list 1\n* list 2";
private static final String FORMATTED_LOGIN_MESSAGE_TEXT = "test link \\u003ca href\\u003d\\\"https://www.sonarsource.com/products/sonarqube\\\" target\\u003d\\\"_blank\\\" rel\\u003d\\\"noopener noreferrer\\\"\\u003eSonarQube\\u0026trade; Home Page\\u003c/a\\u003e\\u003cbr/\\u003e\\u003cul\\u003e\\u003cli\\u003elist 1\\u003c/li\\u003e\\n\\u003cli\\u003elist 2\\u003c/li\\u003e\\u003c/ul\\u003e";
private static final String JSON_RESPONSE = "{\"message\":\"" + FORMATTED_LOGIN_MESSAGE_TEXT + "\"}";
private static final String EMPTY_JSON_RESPONSE = "{\"message\":\"\"}";
private PropertiesDao propertiesDao;

Loading…
Cancel
Save