diff options
author | Malek-Ben-Anes <malek.benanes@sonarsource.com> | 2022-10-24 15:56:09 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-10-24 20:04:04 +0000 |
commit | fd076246738d2b4d2cba65b7bcc7def6e41ca70f (patch) | |
tree | 435d9e12a2ed2287ceb6989b27df894c3e6062f4 | |
parent | 7f3da255793c2a0ed4b25df593f159e8cb13a19c (diff) | |
download | sonarqube-fd076246738d2b4d2cba65b7bcc7def6e41ca70f.tar.gz sonarqube-fd076246738d2b4d2cba65b7bcc7def6e41ca70f.zip |
SONAR-11466 Deprecate legacy pagination parameters in api/issues/search response
-rw-r--r-- | server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SearchAction.java | 1 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-issues.proto | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SearchAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SearchAction.java index bc313bada1a..a08f06cb34a 100644 --- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SearchAction.java +++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/issue/ws/SearchAction.java @@ -196,6 +196,7 @@ public class SearchAction implements IssuesWsAction { + "<br/>When issue indexation is in progress returns 503 service unavailable HTTP code.") .setSince("3.6") .setChangelog( + new Change("9.8", "response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead"), new Change("9.7", "Issues flows in the response may contain a description and a type"), new Change("9.6", "Response field 'fromHotspot' dropped."), new Change("9.6", "Added facets 'pciDss-3.2' and 'pciDss-4.0"), diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto index ca76506ec2c..cfa4d7a84d1 100644 --- a/sonar-ws/src/main/protobuf/ws-issues.proto +++ b/sonar-ws/src/main/protobuf/ws-issues.proto @@ -29,9 +29,9 @@ option optimize_for = SPEED; // Response of GET api/issues/search message SearchWsResponse { reserved 5; - optional int64 total = 1; - optional int64 p = 2; - optional int32 ps = 3; + optional int64 total = 1 [deprecated=true]; + optional int64 p = 2 [deprecated=true]; + optional int32 ps = 3 [deprecated=true]; optional sonarqube.ws.commons.Paging paging = 4; // Total amount of effort, only when the facet "total" is enabled |