]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6823 Replace preview parameter by issues_mode in WS
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Mon, 21 Sep 2015 16:12:11 +0000 (18:12 +0200)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 30 Sep 2015 14:27:12 +0000 (16:27 +0200)
server/sonar-server/src/main/java/org/sonar/server/scanner/ProjectAction.java

index ec49b30aba1b10866edb58db37638709f534bf85..31a4973a53d2ae729436dde775d0540bfb15a74f 100644 (file)
@@ -35,7 +35,7 @@ public class ProjectAction implements ScannerWsAction {
 
   private static final String PARAM_KEY = "key";
   private static final String PARAM_PROFILE = "profile";
-  private static final String PARAM_PREVIEW = "preview";
+  private static final String PARAM_ISSUES_MODE = "issues_mode";
 
   private final ProjectDataLoader projectDataLoader;
 
@@ -63,8 +63,8 @@ public class ProjectAction implements ScannerWsAction {
       .setExampleValue("SonarQube Way");
 
     action
-      .createParam(PARAM_PREVIEW)
-      .setDescription("Preview mode or not")
+      .createParam(PARAM_ISSUES_MODE)
+      .setDescription("Issues mode or not")
       .setDefaultValue(false)
       .setBooleanPossibleValues();
   }
@@ -74,7 +74,7 @@ public class ProjectAction implements ScannerWsAction {
     ProjectRepositories data = projectDataLoader.load(ProjectDataQuery.create()
       .setModuleKey(wsRequest.mandatoryParam(PARAM_KEY))
       .setProfileName(wsRequest.param(PARAM_PROFILE))
-      .setIssuesMode(wsRequest.mandatoryParamAsBoolean(PARAM_PREVIEW)));
+      .setIssuesMode(wsRequest.mandatoryParamAsBoolean(PARAM_ISSUES_MODE)));
 
     WsProjectResponse projectResponse = buildResponse(data);
     writeProtobuf(projectResponse, wsRequest, wsResponse);