diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-11-16 16:41:05 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-01-16 09:43:00 +0100 |
commit | a0acec09a79485117ab9c8e3c67a8446224d5de9 (patch) | |
tree | 8af9218cdbf66fbd11058ea99595eb14ce2e9c30 /server/sonar-web/src/main/js/api/components.ts | |
parent | 9e553274fbe228c06b92527ace1446d08ee244c3 (diff) | |
download | sonarqube-a0acec09a79485117ab9c8e3c67a8446224d5de9.tar.gz sonarqube-a0acec09a79485117ab9c8e3c67a8446224d5de9.zip |
SONAR-11477 Drop UI for updating module keys (#958)
Diffstat (limited to 'server/sonar-web/src/main/js/api/components.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/components.ts | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/server/sonar-web/src/main/js/api/components.ts b/server/sonar-web/src/main/js/api/components.ts index efbeedbaa52..60317a41e39 100644 --- a/server/sonar-web/src/main/js/api/components.ts +++ b/server/sonar-web/src/main/js/api/components.ts @@ -222,27 +222,8 @@ export function searchComponents(data?: { return getJSON('/api/components/search', data); } -/** - * Change component's key - */ -export function changeKey(from: string, to: string): Promise<void> { - const url = '/api/projects/update_key'; - const data = { from, to }; - return post(url, data); -} - -/** - * Bulk change component's key - */ -export function bulkChangeKey( - project: string, - from: string, - to: string, - dryRun: boolean = false -): Promise<any> { - const url = '/api/projects/bulk_update_key'; - const data = { project, from, to, dryRun }; - return postJSON(url, data); +export function changeKey(data: { from: string; to: string }) { + return post('/api/projects/update_key', data).catch(throwGlobalError); } export interface SuggestionsResponse { |