From: Julien Lancelot Date: Thu, 20 Jun 2019 15:24:52 +0000 (+0200) Subject: SONAR-12221 Add pagination to api/qualitygates/search X-Git-Tag: 8.0~514 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=071dd097a358d5750b2cc4be0f4216df111eb2d6;p=sonarqube.git SONAR-12221 Add pagination to api/qualitygates/search --- diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/qualitygate/ProjectQgateAssociationDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/qualitygate/ProjectQgateAssociationDto.java index 3dd29f1e214..b510eef339f 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/qualitygate/ProjectQgateAssociationDto.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/qualitygate/ProjectQgateAssociationDto.java @@ -28,6 +28,7 @@ import javax.annotation.Nullable; public class ProjectQgateAssociationDto { private Long id; + private String key; private String name; private String gateId; @@ -40,6 +41,15 @@ public class ProjectQgateAssociationDto { return this; } + public String getKey() { + return key; + } + + public ProjectQgateAssociationDto setKey(String key) { + this.key = key; + return this; + } + public String getName() { return name; } @@ -59,10 +69,4 @@ public class ProjectQgateAssociationDto { return this; } - public ProjectQgateAssociation toQgateAssociation() { - return new ProjectQgateAssociation() - .setId(id) - .setName(name) - .setMember(gateId != null); - } } diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml b/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml index a2a05d73d07..547eeeacc09 100644 --- a/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml +++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/qualitygate/ProjectQgateAssociationMapper.xml @@ -4,7 +4,7 @@