diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2024-11-29 10:44:25 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-11-29 20:03:05 +0000 |
commit | 2042ab9d8282a70e56f96c408b5c939564b752a0 (patch) | |
tree | 8181788f32aa5c7d8fb6888cd7982c98d50ee276 /server/sonar-server-common | |
parent | 6e46ac928792225f15fd2a21b80c3a40824f30e8 (diff) | |
download | sonarqube-2042ab9d8282a70e56f96c408b5c939564b752a0.tar.gz sonarqube-2042ab9d8282a70e56f96c408b5c939564b752a0.zip |
SONAR-23367 Update email content for mode change notification
Diffstat (limited to 'server/sonar-server-common')
2 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplate.java b/server/sonar-server-common/src/main/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplate.java index 6a06bdd2f3b..626714b5eb3 100644 --- a/server/sonar-server-common/src/main/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplate.java +++ b/server/sonar-server-common/src/main/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplate.java @@ -51,8 +51,8 @@ public class QualityGateMetricsUpdateTemplate implements EmailTemplate { message.append(notification.isMQRModeEnabled() ? MQR_MODE : STANDARD_EXPERIENCE); message.append(" and some of your quality gates conditions are using metrics from "); message.append(notification.isMQRModeEnabled() ? STANDARD_EXPERIENCE : MQR_MODE); - message.append(".\n\nWe recommend you update them to ensure accurate categorization and ranking of your issues.\n\n"); - message.append("Go to the Quality Gates page, and we will guide you through the process."); + message.append(".\n\nWe recommend you update them to ensure the most accurate categorization and ranking of your issues.\n\n"); + message.append("If you would like to update your quality gates, go to the Quality Gates page in the SonarQube Server UI and we will guide you through the process."); return message.toString(); } } diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplateTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplateTest.java index c391b19ec82..020df4da37f 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplateTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/issue/notification/QualityGateMetricsUpdateTemplateTest.java @@ -35,9 +35,9 @@ class QualityGateMetricsUpdateTemplateTest { """ We are sending this message because this version of SonarQube Server is in Standard Experience and some of your quality gates conditions are using metrics from Multi-Quality Rule (MQR) Mode. - We recommend you update them to ensure accurate categorization and ranking of your issues. + We recommend you update them to ensure the most accurate categorization and ranking of your issues. - Go to the Quality Gates page, and we will guide you through the process."""); + If you would like to update your quality gates, go to the Quality Gates page in the SonarQube Server UI and we will guide you through the process."""); } @Test @@ -48,9 +48,9 @@ class QualityGateMetricsUpdateTemplateTest { """ We are sending this message because this version of SonarQube Server is in Multi-Quality Rule (MQR) Mode and some of your quality gates conditions are using metrics from Standard Experience. - We recommend you update them to ensure accurate categorization and ranking of your issues. + We recommend you update them to ensure the most accurate categorization and ranking of your issues. - Go to the Quality Gates page, and we will guide you through the process."""); + If you would like to update your quality gates, go to the Quality Gates page in the SonarQube Server UI and we will guide you through the process."""); } @Test |