From: Stas Vilchik Date: Fri, 14 Dec 2018 15:58:46 +0000 (+0100) Subject: update usage of deprecated WS parameters X-Git-Tag: 7.6~239 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f52265203f1f7a2a9f2b3d3f8e4df83193d4b77c;p=sonarqube.git update usage of deprecated WS parameters --- diff --git a/server/sonar-web/src/main/js/api/quality-profiles.ts b/server/sonar-web/src/main/js/api/quality-profiles.ts index 6706ea9efcd..cbdabad47dd 100644 --- a/server/sonar-web/src/main/js/api/quality-profiles.ts +++ b/server/sonar-web/src/main/js/api/quality-profiles.ts @@ -165,16 +165,12 @@ export function compareProfiles(leftKey: string, rightKey: string): Promise return getJSON('/api/qualityprofiles/compare', { leftKey, rightKey }); } -export function associateProject(profileKey: string, projectKey: string) { - return post('/api/qualityprofiles/add_project', { profileKey, projectKey }).catch( - throwGlobalError - ); +export function associateProject(key: string, project: string) { + return post('/api/qualityprofiles/add_project', { key, project }).catch(throwGlobalError); } -export function dissociateProject(profileKey: string, projectKey: string) { - return post('/api/qualityprofiles/remove_project', { profileKey, projectKey }).catch( - throwGlobalError - ); +export function dissociateProject(key: string, project: string) { + return post('/api/qualityprofiles/remove_project', { key, project }).catch(throwGlobalError); } export interface SearchUsersGroupsParameters {