From: lukasz-jarocki-sonarsource Date: Thu, 1 Feb 2024 09:18:47 +0000 (+0100) Subject: SONAR-21455 fix deprecated metrics in 10.4 X-Git-Tag: 10.4.0.87286~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fcf9d081c6254e75e1eba620e935357778be5a96;p=sonarqube.git SONAR-21455 fix deprecated metrics in 10.4 --- diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/MeasuresWsModule.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/MeasuresWsModule.java index a0027a8cd5c..9a452090d9a 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/MeasuresWsModule.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/measure/ws/MeasuresWsModule.java @@ -41,7 +41,6 @@ public class MeasuresWsModule extends Module { public static String getDeprecatedMetricsInSonarQube104() { return "'" + String.join("', '","bugs", "new_bugs", "vulnerabilities", "new_vulnerabilities", - "security_hotspots", "new_security_hotspots", "security_hotspots_reviewed", "new_security_hotspots_reviewed", - "code_smells", "new_code_smells") + "'"; + "code_smells", "new_code_smells", "high_impact_accepted_issues") + "'"; } } diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/MeasuresWsModuleTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/MeasuresWsModuleTest.java index 21a72478a10..a272c9cbbac 100644 --- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/MeasuresWsModuleTest.java +++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/measure/ws/MeasuresWsModuleTest.java @@ -36,7 +36,7 @@ public class MeasuresWsModuleTest { public void getDeprecatedMetricsInSonarQube104_shouldReturnExactString() { String actual = MeasuresWsModule.getDeprecatedMetricsInSonarQube104(); - assertThat(actual).isEqualTo("'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'security_hotspots', " + - "'new_security_hotspots', 'security_hotspots_reviewed', 'new_security_hotspots_reviewed', 'code_smells', 'new_code_smells'"); + assertThat(actual).isEqualTo("'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', " + + "'high_impact_accepted_issues'"); } }