"Requires authentication.")
.setSince("3.7")
.setChangelog(
+ new Change("10.2", format("Parameters '%s' and '%s' are now deprecated.", PARAM_SET_SEVERITY, PARAM_SET_TYPE)),
new Change("8.2", "Security hotspots are no longer supported and will be ignored."),
new Change("8.2", format("transitions '%s', '%s' and '%s' are no more supported", SET_AS_IN_REVIEW, RESOLVE_AS_REVIEWED, OPEN_AS_VULNERABILITY)),
new Change("6.3", "'actions' parameter is ignored"))
.setExampleValue("john.smith");
action.createParam(PARAM_SET_SEVERITY)
.setDescription("To change the severity of the list of issues")
+ .setDeprecatedSince("10.2")
.setExampleValue(BLOCKER)
.setPossibleValues(Severity.ALL);
action.createParam(PARAM_SET_TYPE)
.setDescription("To change the type of the list of issues")
+ .setDeprecatedSince("10.2")
.setExampleValue(BUG)
.setPossibleValues(RuleType.names())
.setSince("5.5");
"</ul>")
.setSince("3.6")
.setChangelog(
+ new Change("10.2", "This endpoint is now deprecated."),
new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
new Change("8.8", "The response field components.uuid is removed"),
new Change("6.5", "the database ids of the components are removed from the response"),
new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead."))
.setHandler(this)
+ .setDeprecatedSince("10.2")
.setResponseExample(Resources.getResource(this.getClass(), "set_severity-example.json"))
.setPost(true);
"</ul>")
.setSince("5.5")
.setChangelog(
+ new Change("10.2", "This endpoint is now deprecated."),
new Change("9.6", "Response field 'ruleDescriptionContextKey' added"),
new Change("8.8", "The response field components.uuid is removed"),
new Change("6.5", "the database ids of the components are removed from the response"),
new Change("6.5", "the response field components.uuid is deprecated. Use components.key instead."))
.setHandler(this)
+ .setDeprecatedSince("10.2")
.setResponseExample(Resources.getResource(this.getClass(), "set_type-example.json"))
.setPost(true);
import java.util.Map;
import org.sonar.api.rule.RuleKey;
import org.sonar.api.rule.Severity;
+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;
" <li>'Administer Quality Profiles'</li>" +
" <li>Edit right on the specified quality profile</li>" +
"</ul>")
+ .setChangelog(
+ new Change("10.2", format("Parameter '%s' is now deprecated.", PARAM_SEVERITY)))
.setHandler(this)
.setPost(true)
.setSince("4.4");
activate.createParam(PARAM_SEVERITY)
.setDescription(format("Severity. Ignored if parameter %s is true.", PARAM_RESET))
+ .setDeprecatedSince("10.2")
.setPossibleValues(Severity.ALL);
activate.createParam(PARAM_PARAMS)
import org.sonar.server.rule.ws.RuleQueryFactory;
import org.sonar.server.user.UserSession;
+import static java.lang.String.format;
import static org.sonar.core.util.Uuids.UUID_EXAMPLE_03;
import static org.sonar.server.qualityprofile.ws.BulkChangeWsResponse.writeResponse;
import static org.sonar.server.qualityprofile.ws.QProfileReference.fromKey;
import static org.sonar.server.rule.ws.RuleWsSupport.defineGenericRuleSearchParameters;
+import static org.sonar.server.rule.ws.RulesWsParameters.PARAM_ACTIVE_SEVERITIES;
+import static org.sonar.server.rule.ws.RulesWsParameters.PARAM_SEVERITIES;
+import static org.sonar.server.rule.ws.RulesWsParameters.PARAM_TYPES;
import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.ACTION_ACTIVATE_RULES;
import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.PARAM_TARGET_KEY;
import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.PARAM_TARGET_SEVERITY;
"</ul>")
.setPost(true)
.setSince("4.4")
- .setChangelog(new Change("10.0", "Parameter 'sansTop25' is deprecated"))
+ .setChangelog(
+ new Change("10.2", format("Parameters '%s', '%s', '%s', and '%s' are now deprecated.", PARAM_SEVERITIES, PARAM_TARGET_SEVERITY, PARAM_ACTIVE_SEVERITIES, PARAM_TYPES)),
+ new Change("10.0", "Parameter 'sansTop25' is deprecated"))
.setHandler(this);
defineGenericRuleSearchParameters(activate);
activate.createParam(PARAM_TARGET_SEVERITY)
.setDescription("Severity to set on the activated rules")
+ .setDeprecatedSince("10.2")
.setPossibleValues(Severity.ALL);
}
import org.sonar.server.rule.ws.RuleQueryFactory;
import org.sonar.server.user.UserSession;
+import static java.lang.String.format;
import static org.sonar.core.util.Uuids.UUID_EXAMPLE_04;
import static org.sonar.server.qualityprofile.ws.BulkChangeWsResponse.writeResponse;
import static org.sonar.server.rule.ws.RuleWsSupport.defineGenericRuleSearchParameters;
+import static org.sonar.server.rule.ws.RulesWsParameters.PARAM_ACTIVE_SEVERITIES;
+import static org.sonar.server.rule.ws.RulesWsParameters.PARAM_SEVERITIES;
+import static org.sonar.server.rule.ws.RulesWsParameters.PARAM_TYPES;
import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.ACTION_DEACTIVATE_RULES;
import static org.sonarqube.ws.client.qualityprofile.QualityProfileWsParameters.PARAM_TARGET_KEY;
"</ul>")
.setPost(true)
.setSince("4.4")
- .setChangelog(new Change("10.0", "Parameter 'sansTop25' is deprecated"))
+ .setChangelog(
+ new Change("10.2", format("Parameters '%s', '%s', and '%s' are now deprecated.", PARAM_SEVERITIES, PARAM_ACTIVE_SEVERITIES, PARAM_TYPES)),
+ new Change("10.0", "Parameter 'sansTop25' is deprecated"))
.setHandler(this);
defineGenericRuleSearchParameters(deactivate);
.createParam(PARAM_SEVERITIES)
.setDescription("Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.")
.setPossibleValues(Severity.ALL)
+ .setDeprecatedSince("10.2")
.setExampleValue("CRITICAL,BLOCKER");
action
.setSince("5.5")
.setDescription("Comma-separated list of types. Returned rules match any of the tags (OR operator)")
.setPossibleValues(RuleType.values())
+ .setDeprecatedSince("10.2")
.setExampleValue(RuleType.BUG);
action
.createParam(PARAM_ACTIVE_SEVERITIES)
.setDescription("Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.")
.setPossibleValues(Severity.ALL)
+ .setDeprecatedSince("10.2")
.setExampleValue("CRITICAL,BLOCKER");
action
new Change("10.0", "The value 'debtRemFn' for the 'f' parameter has been deprecated, use 'remFn' instead"),
new Change("10.0", "The value 'defaultDebtRemFn' for the 'f' parameter has been deprecated, use 'defaultRemFn' instead"),
new Change("10.0", "The value 'sansTop25' for the parameter 'facets' has been deprecated"),
- new Change("10.0", "Parameter 'sansTop25' is deprecated")
- );
+ new Change("10.0", "Parameter 'sansTop25' is deprecated"),
+ new Change("10.2", format("Parameters '%s', '%s', and '%s' are now deprecated.", PARAM_SEVERITIES, PARAM_TYPES, PARAM_ACTIVE_SEVERITIES)));
action.createParam(FACETS)
.setDescription("Comma-separated list of the facets to be computed. No facet is computed by default.")