]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13848 remove deprecations from api/qualityprofiles/projects
authorMichal Duda <michal.duda@sonarsource.com>
Wed, 24 Feb 2021 18:09:36 +0000 (19:09 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 26 Feb 2021 20:07:41 +0000 (20:07 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualityprofile/ws/ProjectsAction.java
server/sonar-webserver-webapi/src/test/java/org/sonar/server/qualityprofile/ws/ProjectsActionTest.java

index 2460bfdfe29264e53c7967493e716459d9f444c0..f1801aa537e0e6849502a59da0d75a3af65e7f8e 100644 (file)
@@ -67,6 +67,8 @@ public class ProjectsAction implements QProfileWsAction {
       .setResponseExample(getClass().getResource("projects-example.json"));
 
     action.setChangelog(
+      new Change("8.8", "deprecated 'id' response field has been removed"),
+      new Change("8.8", "deprecated 'uuid' response field has been removed"),
       new Change("7.2", "'more' response field is deprecated"),
       new Change("6.5", "'id' response field is deprecated"),
       new Change("6.0", "'uuid' response field is deprecated and replaced by 'id'"),
@@ -143,9 +145,6 @@ public class ProjectsAction implements QProfileWsAction {
     json.name("results").beginArray();
     for (ProjectQprofileAssociationDto project : projects) {
       json.beginObject()
-        // uuid is deprecated since 6.0
-        .prop("uuid", project.getProjectUuid())
-        .prop("id", project.getProjectUuid())
         .prop("key", project.getProjectKey())
         .prop("name", project.getProjectName())
         .prop("selected", project.isAssociated())
index 9186e5fdb304b6c446ead8c50c6b9616ef019ac7..67cfd2b8acf892a0d888e719eb977d287b2fde2d 100644 (file)
@@ -285,7 +285,6 @@ public class ProjectsActionTest {
       .assertJson("{\"results\":\n" +
         "  [\n" +
         "    {\n" +
-        "      \"id\": \"" + project.getUuid() + "\",\n" +
         "      \"key\": \"" + project.getKey() + "\",\n" +
         "    }\n" +
         "  ]}");