import org.sonarqube.ws.Issues;
import static com.google.common.base.Strings.isNullOrEmpty;
+import static java.lang.String.format;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import static org.sonar.api.server.ws.WebService.Param.PAGE;
"<br>Requires the 'Browse' permission on the specified project. ")
.setSince("10.2")
.setChangelog(
+ new Change("10.4", format("Parameter '%s' is deprecated.", PARAM_TYPES)),
new Change("10.4", "The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead."),
new Change("10.4", "The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead."),
new Change("10.4", "Add 'issueStatus' field to the response.")
action.createParam(PARAM_TYPES)
.setDescription("Comma-separated list of issue types")
.setExampleValue("BUG, VULNERABILITY")
+ .setDeprecatedSince("10.4")
.setPossibleValues(RuleType.BUG.name(), RuleType.VULNERABILITY.name(), RuleType.CODE_SMELL.name());
action.createParam(PARAM_IN_NEW_CODE_PERIOD)
new Change("10.4", "Possible value '%s' for 'transition' response field has been added".formatted(DefaultTransitions.ACCEPT)),
new Change("10.4", format(NEW_PARAM_ADDED_MESSAGE, PARAM_ISSUE_STATUSES)),
new Change("10.4", format("Parameters '%s' and '%s' are deprecated in favor of '%s'.", PARAM_RESOLUTIONS, PARAM_STATUSES, PARAM_ISSUE_STATUSES)),
- new Change("10.4", format("Parameter '%s' is deprecated.", PARAM_SEVERITIES)),
+ new Change("10.4", format("Parameters '%s' and '%s' are deprecated, use '%s' and '%s' instead.", PARAM_SEVERITIES, PARAM_TYPES,
+ PARAM_IMPACT_SEVERITIES, PARAM_IMPACT_SOFTWARE_QUALITIES)),
new Change("10.4", format(NEW_FACET_ADDED_MESSAGE, PARAM_ISSUE_STATUSES)),
new Change("10.4", format("Facets '%s' and '%s' are deprecated in favor of '%s'", PARAM_RESOLUTIONS, PARAM_STATUSES, PARAM_ISSUE_STATUSES)),
new Change("10.4", "Response fields 'severity' and 'type' are deprecated, use 'impacts' instead."),
action.createParam(PARAM_TYPES)
.setDescription("Comma-separated list of types.")
.setSince("5.5")
+ .setDeprecatedSince("10.4")
.setPossibleValues(ALL_RULE_TYPES_EXCEPT_SECURITY_HOTSPOTS)
.setExampleValue(format("%s,%s", RuleType.CODE_SMELL, RuleType.BUG));
action.createParam(PARAM_OWASP_ASVS_LEVEL)