aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2021-08-24 08:51:32 +0200
committersonartech <sonartech@sonarsource.com>2021-08-24 20:07:42 +0000
commitf1cc90fcdb0f59c767fbc5411b5e000bc714f83f (patch)
tree777d299f06f41cc037006152bc71e1b17889434c
parentd35ffade4da2d9822cf9cff87e47c8cb24077d85 (diff)
downloadsonarqube-f1cc90fcdb0f59c767fbc5411b5e000bc714f83f.tar.gz
sonarqube-f1cc90fcdb0f59c767fbc5411b5e000bc714f83f.zip
SONAR-15195 Mention that quality profile exporters are deprecated
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileExporters-test.tsx.snap6
-rw-r--r--sonar-core/src/main/resources/org/sonar/l10n/core.properties1
3 files changed, 11 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx
index f1f1836eb69..b5bd5d119c5 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx
@@ -19,6 +19,7 @@
*/
import * as React from 'react';
import { getQualityProfileExporterUrl } from '../../../api/quality-profiles';
+import { Alert } from '../../../components/ui/Alert';
import { translate } from '../../../helpers/l10n';
import { getBaseUrl } from '../../../helpers/system';
import { Exporter, Profile } from '../types';
@@ -46,6 +47,9 @@ export default class ProfileExporters extends React.PureComponent<Props> {
<div className="boxed-group quality-profile-exporters">
<h2>{translate('quality_profiles.exporters')}</h2>
<div className="boxed-group-inner">
+ <Alert className="big-spacer-bottom" variant="warning">
+ {translate('quality_profiles.exporters.deprecated')}
+ </Alert>
<ul>
{exportersForLanguage.map((exporter, index) => (
<li
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileExporters-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileExporters-test.tsx.snap
index c21ba396ab1..b225bede9e0 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileExporters-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileExporters-test.tsx.snap
@@ -10,6 +10,12 @@ exports[`should render correctly 1`] = `
<div
className="boxed-group-inner"
>
+ <Alert
+ className="big-spacer-bottom"
+ variant="warning"
+ >
+ quality_profiles.exporters.deprecated
+ </Alert>
<ul>
<li
data-key="exporter-key"
diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
index ad72a09c77d..6fe548ce23c 100644
--- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties
+++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties
@@ -1624,6 +1624,7 @@ quality_profiles.sonarway_missing_rules_description=Recommended rules are missin
quality_profiles.stagnant_profiles=Stagnant Profiles
quality_profiles.not_updated_more_than_year=The following profiles haven't been updated for more than 1 year:
quality_profiles.exporters=Exporters
+quality_profiles.exporters.deprecated=Exporters are deprecated, and will be removed in a future version.
quality_profiles.updated_=Updated:
quality_profiles.used_=Used:
quality_profiles.built_in=Built-in