]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17590 make hostpot search endpoint public
authorPierre <pierre.guillot@sonarsource.com>
Thu, 10 Nov 2022 09:05:44 +0000 (10:05 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 10 Nov 2022 20:02:47 +0000 (20:02 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/hotspot/ws/SearchAction.java
server/sonar-webserver-webapi/src/test/java/org/sonar/server/hotspot/ws/SearchActionTest.java

index 94380c40e497379d6e4a57f3298696415cefa728..f3f52032a6427fee7df2bf333d7c2491977613f0 100644 (file)
@@ -230,11 +230,11 @@ public class SearchAction implements HotspotsWsAction {
         + "For applications, it also requires 'Browse' permission on its child projects. <br>"
         + "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)
index 4942128a7addeab34d24dd23ef795424e261089e..654397fd3ed2380c2fbc555215897ccf40f18c41 100644 (file)
@@ -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())