]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20635 Make all project import endpoints public
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>
Mon, 2 Oct 2023 13:14:14 +0000 (15:14 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 4 Oct 2023 20:03:18 +0000 (20:03 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/azure/ImportAzureProjectAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/bitbucketcloud/ImportBitbucketCloudRepoAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/bitbucketserver/ImportBitbucketServerProjectAction.java
server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/github/ImportGithubProjectAction.java

index 4f7b971c215d61046184dea36c171fb0da041ca3..ea1f98ef13d41746eb12a9b6ff3d199a63414ac4 100644 (file)
@@ -23,6 +23,7 @@ import java.util.Optional;
 import javax.inject.Inject;
 import org.sonar.alm.client.azure.AzureDevOpsHttpClient;
 import org.sonar.alm.client.azure.GsonAzureRepo;
+import org.sonar.api.server.ws.Change;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -94,9 +95,10 @@ public class ImportAzureProjectAction implements AlmIntegrationsWsAction {
         "Autoconfigure pull request decoration mechanism.<br/>" +
         "Requires the 'Create Projects' permission")
       .setPost(true)
-      .setInternal(true)
       .setSince("8.6")
-      .setHandler(this);
+      .setHandler(this)
+      .setChangelog(
+        new Change("10.3", "Endpoint visibility change from internal to public"));
 
     action.createParam(PARAM_ALM_SETTING)
       .setRequired(true)
index f0a4ea259797a67be8d18f3097ed5f15e53f9e8f..656f4dd07e5e3b932e3e46e6bf20876136d8ffc2 100644 (file)
@@ -24,6 +24,7 @@ import javax.annotation.Nullable;
 import javax.inject.Inject;
 import org.sonar.alm.client.bitbucket.bitbucketcloud.BitbucketCloudRestClient;
 import org.sonar.alm.client.bitbucket.bitbucketcloud.Repository;
+import org.sonar.api.server.ws.Change;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -95,9 +96,10 @@ public class ImportBitbucketCloudRepoAction implements AlmIntegrationsWsAction {
         "Autoconfigure pull request decoration mechanism.<br/>" +
         "Requires the 'Create Projects' permission")
       .setPost(true)
-      .setInternal(true)
       .setSince("9.0")
-      .setHandler(this);
+      .setHandler(this)
+      .setChangelog(
+        new Change("10.3", "Endpoint visibility change from internal to public"));
 
     action.createParam(PARAM_REPO_SLUG)
       .setRequired(true)
index 23d6c592aa19c019039b06c8d9000d3d8cf26df8..e6001d8697b0c4c8e9481ed810de2ee0ce58ee6f 100644 (file)
@@ -26,6 +26,7 @@ import org.sonar.alm.client.bitbucketserver.BitbucketServerRestClient;
 import org.sonar.alm.client.bitbucketserver.Branch;
 import org.sonar.alm.client.bitbucketserver.BranchesList;
 import org.sonar.alm.client.bitbucketserver.Repository;
+import org.sonar.api.server.ws.Change;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -100,9 +101,10 @@ public class ImportBitbucketServerProjectAction implements AlmIntegrationsWsActi
                       "Autoconfigure pull request decoration mechanism.<br/>" +
                       "Requires the 'Create Projects' permission")
       .setPost(true)
-      .setInternal(true)
       .setSince("8.2")
-      .setHandler(this);
+      .setHandler(this)
+      .setChangelog(
+        new Change("10.3", "Endpoint visibility change from internal to public"));
 
     action.createParam(PARAM_ALM_SETTING)
       .setRequired(true)
index 41e7791358844850e20d0e5e912d26c9d306f2bb..3a6db7a1345e6ab5597180af42111840377fde8b 100644 (file)
@@ -27,6 +27,7 @@ import org.sonar.alm.client.github.GithubApplicationClient.Repository;
 import org.sonar.alm.client.github.GithubApplicationClientImpl;
 import org.sonar.alm.client.github.security.AccessToken;
 import org.sonar.alm.client.github.security.UserAccessToken;
+import org.sonar.api.server.ws.Change;
 import org.sonar.api.server.ws.Request;
 import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
@@ -110,9 +111,10 @@ public class ImportGithubProjectAction implements AlmIntegrationsWsAction {
         "Autoconfigure pull request decoration mechanism.<br/>" +
         "Requires the 'Create Projects' permission")
       .setPost(true)
-      .setInternal(true)
       .setSince("8.4")
-      .setHandler(this);
+      .setHandler(this)
+      .setChangelog(
+        new Change("10.3", "Endpoint visibility change from internal to public"));
 
     action.createParam(PARAM_ALM_SETTING)
       .setRequired(true)