aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-08-14 20:32:21 +0200
committerSonarTech <sonartech@sonarsource.com>2018-08-21 20:21:02 +0200
commitc4ecfd9b6ec9a23a94a15cc83bddfd06b36c8502 (patch)
tree779c1effbcd85ef1abef81662b9207693aa8edb0 /server/sonar-web/src/main/js/api
parentd4fa9a5eec91b3cc36a7ac6b0b1c0ff3359162d9 (diff)
downloadsonarqube-c4ecfd9b6ec9a23a94a15cc83bddfd06b36c8502.tar.gz
sonarqube-c4ecfd9b6ec9a23a94a15cc83bddfd06b36c8502.zip
SONAR-11124 restrict search for tags/authors to current project (#614)
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r--server/sonar-web/src/main/js/api/issues.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/api/issues.ts b/server/sonar-web/src/main/js/api/issues.ts
index 202190af502..40795766175 100644
--- a/server/sonar-web/src/main/js/api/issues.ts
+++ b/server/sonar-web/src/main/js/api/issues.ts
@@ -108,9 +108,12 @@ export function getProjects(query: RequestData) {
return getFacet(query, 'projectUuids').then(r => extractProjects(r.facet, r.response));
}
-export function searchIssueTags(
- data: { organization?: string; ps?: number; q?: string } = { ps: 100 }
-): Promise<string[]> {
+export function searchIssueTags(data: {
+ organization?: string;
+ project?: string;
+ ps?: number;
+ q?: string;
+}): Promise<string[]> {
return getJSON('/api/issues/tags', data)
.then(r => r.tags)
.catch(throwGlobalError);