aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2021-04-27 15:34:17 +0200
committersonartech <sonartech@sonarsource.com>2021-04-29 20:03:27 +0000
commit64cf912b1ce5e4b5db2ed6366d7c046daddebcb0 (patch)
tree51e2a5faf70f517de12827634e4336b865c56ac4 /server/sonar-web
parent3f09e6fe1ad7be2bfca54d5b1f3e32294b4f7e51 (diff)
downloadsonarqube-64cf912b1ce5e4b5db2ed6366d7c046daddebcb0.tar.gz
sonarqube-64cf912b1ce5e4b5db2ed6366d7c046daddebcb0.zip
SONAR-14572 Update under maintenance message
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/maintenance/components/App.tsx62
-rw-r--r--server/sonar-web/src/main/js/apps/maintenance/components/__tests__/__snapshots__/App-test.tsx.snap12
2 files changed, 42 insertions, 32 deletions
diff --git a/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx b/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx
index 2f3a3573a6a..3e620caf7eb 100644
--- a/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx
+++ b/server/sonar-web/src/main/js/apps/maintenance/components/App.tsx
@@ -200,36 +200,38 @@ export default class App extends React.PureComponent<Props, State> {
<h1 className="maintenance-title">
<InstanceMessage message={translate('maintenance.is_under_maintenance')} />
</h1>
- {!isSonarCloud() && (
- <>
- <p className="maintenance-text">
- <FormattedMessage
- defaultMessage={translate('maintenance.sonarqube_is_under_maintenance.1')}
- id="maintenance.sonarqube_is_under_maintenance.1"
- values={{
- link: (
- <a href="https://redirect.sonarsource.com/doc/plugin-library.html">
- {translate('maintenance.sonarqube_is_under_maintenance_link.1')}
- </a>
- )
- }}
- />
- </p>
- <p className="maintenance-text">
- <FormattedMessage
- defaultMessage={translate('maintenance.sonarqube_is_under_maintenance.2')}
- id="maintenance.sonarqube_is_under_maintenance.2"
- values={{
- link: (
- <a href="https://redirect.sonarsource.com/doc/upgrading.html">
- {translate('maintenance.sonarqube_is_under_maintenance_link.2')}
- </a>
- )
- }}
- />
- </p>
- </>
- )}
+ <p className="maintenance-text">
+ <FormattedMessage
+ defaultMessage={translate('maintenance.sonarqube_is_under_maintenance.1')}
+ id="maintenance.sonarqube_is_under_maintenance.1"
+ values={{
+ link: (
+ <a
+ href="https://www.sonarlint.org/?referrer=sonarqube-maintenance"
+ target="_blank"
+ rel="noopener noreferrer">
+ {translate('maintenance.sonarqube_is_under_maintenance_link.1')}
+ </a>
+ )
+ }}
+ />
+ </p>
+ <p className="maintenance-text">
+ <FormattedMessage
+ defaultMessage={translate('maintenance.sonarqube_is_under_maintenance.2')}
+ id="maintenance.sonarqube_is_under_maintenance.2"
+ values={{
+ link: (
+ <a
+ href="https://redirect.sonarsource.com/doc/upgrading.html"
+ target="_blank"
+ rel="noopener noreferrer">
+ {translate('maintenance.sonarqube_is_under_maintenance_link.2')}
+ </a>
+ )
+ }}
+ />
+ </p>
</>
)}
diff --git a/server/sonar-web/src/main/js/apps/maintenance/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/maintenance/components/__tests__/__snapshots__/App-test.tsx.snap
index 1c9dbb2b24e..2120741ddd2 100644
--- a/server/sonar-web/src/main/js/apps/maintenance/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/maintenance/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -31,7 +31,9 @@ exports[`Maintenance Page should render DB_MIGRATION_NEEDED status 1`] = `
values={
Object {
"link": <a
- href="https://redirect.sonarsource.com/doc/plugin-library.html"
+ href="https://www.sonarlint.org/?referrer=sonarqube-maintenance"
+ rel="noopener noreferrer"
+ target="_blank"
>
maintenance.sonarqube_is_under_maintenance_link.1
</a>,
@@ -49,6 +51,8 @@ exports[`Maintenance Page should render DB_MIGRATION_NEEDED status 1`] = `
Object {
"link": <a
href="https://redirect.sonarsource.com/doc/upgrading.html"
+ rel="noopener noreferrer"
+ target="_blank"
>
maintenance.sonarqube_is_under_maintenance_link.2
</a>,
@@ -92,7 +96,9 @@ exports[`Maintenance Page should render DB_MIGRATION_RUNNING status 1`] = `
values={
Object {
"link": <a
- href="https://redirect.sonarsource.com/doc/plugin-library.html"
+ href="https://www.sonarlint.org/?referrer=sonarqube-maintenance"
+ rel="noopener noreferrer"
+ target="_blank"
>
maintenance.sonarqube_is_under_maintenance_link.1
</a>,
@@ -110,6 +116,8 @@ exports[`Maintenance Page should render DB_MIGRATION_RUNNING status 1`] = `
Object {
"link": <a
href="https://redirect.sonarsource.com/doc/upgrading.html"
+ rel="noopener noreferrer"
+ target="_blank"
>
maintenance.sonarqube_is_under_maintenance_link.2
</a>,