From: Pierre Date: Thu, 10 Nov 2022 09:05:44 +0000 (+0100) Subject: SONAR-17590 make hostpot search endpoint public X-Git-Tag: 9.8.0.63668~134 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f2b691a5853d36eb7dbfdba856390fd10f08d4b4;p=sonarqube.git SONAR-17590 make hostpot search endpoint public --- diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java index 94380c40e49..f3f52032a64 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java @@ -230,11 +230,11 @@ public class SearchAction implements HotspotsWsAction { + "For applications, it also requires 'Browse' permission on its child projects.
" + "When issue indexation is in progress returns 503 service unavailable HTTP code.") .setSince("8.1") - .setInternal(true) .setChangelog( new Change("9.6", "Added parameters 'pciDss-3.2' and 'pciDss-4.0"), new Change("9.7", "Hotspot flows in the response may contain a description and a type"), - new Change("9.7", "Hotspot in the response contain the corresponding ruleKey")); + new Change("9.7", "Hotspot in the response contain the corresponding ruleKey"), + new Change("9.8", "Endpoint visibility change from internal to public")); action.addPagingParams(100); action.createParam(PARAM_PROJECT_KEY) diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java index 4942128a7ad..654397fd3ed 100644 --- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java +++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java @@ -171,7 +171,7 @@ public class SearchActionTest { WebService.Param sonarsourceSecurityParam = actionTester.getDef().param(PARAM_SONARSOURCE_SECURITY); WebService.Param filesParam = actionTester.getDef().param(PARAM_FILES); - assertThat(actionTester.getDef().isInternal()).isTrue(); + assertThat(actionTester.getDef().isInternal()).isFalse(); assertThat(onlyMineParam).isNotNull(); assertThat(onlyMineParam.isRequired()).isFalse(); assertThat(actionTester.getDef().param(PARAM_ONLY_MINE).possibleValues())