]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-13848 remove deprecated parameter 'format' from api/qualityprofiles/export
authorMichal Duda <michal.duda@sonarsource.com>
Wed, 24 Feb 2021 15:56:39 +0000 (16:56 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 26 Feb 2021 20:07:40 +0000 (20:07 +0000)
server/sonar-webserver-webapi/src/main/java/org/sonar/server/qualityprofile/ws/ExportAction.java
server/sonar-webserver-webapi/src/test/java/org/sonar/server/qualityprofile/ws/ExportActionTest.java

index a384a92e54579107221b23c6278bc95df7b41e4f..69b221af5a0778d1a6fc116f8ceeb57e9e3cd43d 100644 (file)
@@ -93,9 +93,7 @@ public class ExportAction implements QProfileWsAction {
       action.createParam(PARAM_EXPORTER_KEY)
         .setDescription("Output format. If left empty, the same format as api/qualityprofiles/backup is used. " +
           "Possible values are described by api/qualityprofiles/exporters.")
-        .setPossibleValues(exporterKeys)
-        // This deprecated key is only there to be able to deal with redirection from /profiles/export
-        .setDeprecatedKey("format", "6.3");
+        .setPossibleValues(exporterKeys);
     }
   }
 
index f3b6295729474a01e6876d3104ba38a229455412..75d92fd32300b7600ec215ead98119e47d366114 100644 (file)
@@ -148,8 +148,6 @@ public class ExportActionTest {
     assertThat(definition.params()).extracting("key").containsExactlyInAnyOrder("language", "qualityProfile", "exporterKey");
     WebService.Param exportersParam = definition.param("exporterKey");
     assertThat(exportersParam.possibleValues()).containsOnly("polop", "palap");
-    assertThat(exportersParam.deprecatedKey()).isEqualTo("format");
-    assertThat(exportersParam.deprecatedKeySince()).isEqualTo("6.3");
     assertThat(exportersParam.isInternal()).isFalse();
   }