aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2020-09-18 16:18:09 +0200
committersonartech <sonartech@sonarsource.com>2020-10-08 20:08:01 +0000
commit0b9adba4230ea40e1b8d523981990b909b63dd1a (patch)
tree1543c6df7027b20d2bd6a16b94d9172dba067c61 /server/sonar-web
parent601e5d3477b10c4f1960966588dcca19e1da80f8 (diff)
downloadsonarqube-0b9adba4230ea40e1b8d523981990b909b63dd1a.tar.gz
sonarqube-0b9adba4230ea40e1b8d523981990b909b63dd1a.zip
Deprecate gateId parameter for /api/qualitygates/search
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/api/quality-gates.ts2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/Projects-test.tsx2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/api/quality-gates.ts b/server/sonar-web/src/main/js/api/quality-gates.ts
index c81bc29a120..4078b2664d7 100644
--- a/server/sonar-web/src/main/js/api/quality-gates.ts
+++ b/server/sonar-web/src/main/js/api/quality-gates.ts
@@ -109,7 +109,7 @@ export function getGateForProject(data: {
}
export function searchProjects(data: {
- gateId: string;
+ gateName: string;
organization?: string;
page?: number;
pageSize?: number;
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx
index a7eadc3eaa4..170f62078e0 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/Projects.tsx
@@ -67,7 +67,7 @@ export default class Projects extends React.PureComponent<Props, State> {
fetchProjects = (searchParams: SelectListSearchParams) =>
searchProjects({
- gateId: this.props.qualityGate.id,
+ gateName: this.props.qualityGate.name,
organization: this.props.organization,
page: searchParams.page,
pageSize: searchParams.pageSize,
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/Projects-test.tsx b/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/Projects-test.tsx
index 15e36a03b11..f7a76c49793 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/Projects-test.tsx
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/__tests__/Projects-test.tsx
@@ -69,7 +69,7 @@ it('should render correctly', async () => {
expect(searchProjects).toHaveBeenCalledWith(
expect.objectContaining({
- gateId: qualityGate.id,
+ gateName: qualityGate.name,
organization,
page: 1,
pageSize: 100,