]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22143 deprecate endpoint in favor of its api/v2 equivalent
authorMatteo Mara <matteo.mara@sonarsource.com>
Thu, 2 May 2024 12:26:13 +0000 (14:26 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 8 May 2024 20:02:44 +0000 (20:02 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/DbMigrationStatusAction.java

index 64cddf32db8c8109aa2fc221a611eced07075be7..3afc360aab7234814f43058d92a898e7e85c7dbd 100644 (file)
@@ -21,6 +21,7 @@ package org.sonar.server.platform.ws;
 
 import com.google.common.io.Resources;
 import java.util.Optional;
+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;
@@ -55,11 +56,14 @@ public class DbMigrationStatusAction implements SystemWsAction {
   @Override
   public void define(WebService.NewController controller) {
     controller.createAction("db_migration_status")
+      .setHandler(this)
       .setDescription("Display the database migration status of SonarQube." +
         "<br/>" +
         statusDescription())
       .setSince("5.2")
-      .setHandler(this)
+      .setDeprecatedSince("10.6")
+      .setChangelog(
+        new Change("10.6", "This endpoint is deprecated, please use its API v2 version /api/v2/system/migrations-status instead."))
       .setResponseExample(Resources.getResource(this.getClass(), "example-migrate_db.json"));
   }