.executeProtobuf(SearchResponse.class);
assertThat(response)
- .extracting(SearchResponse::getMore,
+ .extracting(
searchResponse -> searchResponse.getPaging().getPageIndex(),
searchResponse -> searchResponse.getPaging().getPageSize(),
searchResponse -> searchResponse.getPaging().getTotal())
- .contains(true, 2, 5, 20);
+ .contains(2, 5, 20);
}
@Test
.executeProtobuf(SearchResponse.class);
assertThat(response)
- .extracting(SearchResponse::getMore,
+ .extracting(
searchResponse -> searchResponse.getPaging().getPageIndex(),
searchResponse -> searchResponse.getPaging().getPageSize(),
searchResponse -> searchResponse.getPaging().getTotal())
- .contains(false, 1, 100, 20);
+ .contains(1, 100, 20);
}
@Test
.setSince("4.3")
.setResponseExample(Resources.getResource(this.getClass(), "search-example.json"))
.setChangelog(
+ new Change("10.0", "deprecated 'more' response field has been removed"),
new Change("10.0", "Parameter 'gateId' is removed. Use 'gateName' instead."),
new Change("8.4", "Parameter 'gateName' added"),
new Change("8.4", "Parameter 'gateId' is deprecated. Format changes from integer to string. Use 'gateName' instead."),
.andTotal(authorizedProjects.size());
List<ProjectQgateAssociationDto> paginatedProjects = getPaginatedProjects(authorizedProjects, paging);
- Qualitygates.SearchResponse.Builder createResponse = Qualitygates.SearchResponse.newBuilder().setMore(paging.hasNextPage());
+ Qualitygates.SearchResponse.Builder createResponse = Qualitygates.SearchResponse.newBuilder();
createResponse.getPagingBuilder()
.setPageIndex(paging.pageIndex())
.setPageSize(paging.pageSize())
// GET api/qualitygates/search
message SearchResponse {
- // Deprecated since 7.9
- optional bool more = 1;
+ reserved 1; // drop more
repeated Result results = 2;
optional sonarqube.ws.commons.Paging paging = 3;