aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2024-05-02 14:26:13 +0200
committersonartech <sonartech@sonarsource.com>2024-05-08 20:02:44 +0000
commit4fb933ad73093756287bc8739d93e8f243a2c4d8 (patch)
treefee74e9bbfe2cdc24baa7c37afd6b23c7c57d2be
parent80942bfb9760881f2c26969c885d370fd4abd92e (diff)
downloadsonarqube-4fb933ad73093756287bc8739d93e8f243a2c4d8.tar.gz
sonarqube-4fb933ad73093756287bc8739d93e8f243a2c4d8.zip
SONAR-22143 deprecate endpoint in favor of its api/v2 equivalent
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/DbMigrationStatusAction.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/DbMigrationStatusAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/DbMigrationStatusAction.java
index 64cddf32db8..3afc360aab7 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/DbMigrationStatusAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/DbMigrationStatusAction.java
@@ -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"));
}