From 9c8e8037819a407070fe01dc000d98f4e250089d Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Mon, 21 Sep 2015 18:12:11 +0200 Subject: [PATCH] SONAR-6823 Replace preview parameter by issues_mode in WS --- .../main/java/org/sonar/server/scanner/ProjectAction.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/sonar-server/src/main/java/org/sonar/server/scanner/ProjectAction.java b/server/sonar-server/src/main/java/org/sonar/server/scanner/ProjectAction.java index ec49b30aba1..31a4973a53d 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/scanner/ProjectAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/scanner/ProjectAction.java @@ -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); -- 2.39.5