]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-15195 Mention that quality profile exporters are deprecated
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Tue, 24 Aug 2021 06:51:32 +0000 (08:51 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 24 Aug 2021 20:07:42 +0000 (20:07 +0000)
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileExporters.tsx
server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileExporters-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index f1f1836eb694a9a5d7b861267f40a2a577a49643..b5bd5d119c52ef65be3efcba4b97dce0bf0fb960 100644 (file)
@@ -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
index c21ba396ab166c171c455f2071bb8ab6dd01f537..b225bede9e017469dbfffeb2ff4658e9a7f036cd 100644 (file)
@@ -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"
index ad72a09c77d9c8818df6775187ee8d0db0e06a2f..6fe548ce23c15b9a10e171ef32735840ceb60691 100644 (file)
@@ -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