aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/issues.ts
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-08-10 10:48:27 +0200
committerSonarTech <sonartech@sonarsource.com>2018-08-21 20:21:02 +0200
commit20a8ceffbe12771dea8f9186a408aabbab32a8d7 (patch)
tree18c23ced96fe50c3730b214a1cdccf247a814b3d /server/sonar-web/src/main/js/api/issues.ts
parent15f3d9c2584cca304590ad68dea4d025ac356813 (diff)
downloadsonarqube-20a8ceffbe12771dea8f9186a408aabbab32a8d7.tar.gz
sonarqube-20a8ceffbe12771dea8f9186a408aabbab32a8d7.zip
SONAR-9369 Add search for module, directory, file and author facets (#606)
Diffstat (limited to 'server/sonar-web/src/main/js/api/issues.ts')
-rw-r--r--server/sonar-web/src/main/js/api/issues.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/issues.ts b/server/sonar-web/src/main/js/api/issues.ts
index 3fe3a9bb3ca..b49a6eddba9 100644
--- a/server/sonar-web/src/main/js/api/issues.ts
+++ b/server/sonar-web/src/main/js/api/issues.ts
@@ -165,3 +165,12 @@ export function setIssueType(data: { issue: string; type: string }): Promise<Iss
export function bulkChangeIssues(issueKeys: string[], query: RequestData): Promise<void> {
return post('/api/issues/bulk_change', { issues: issueKeys.join(), ...query });
}
+
+export function searchIssueAuthors(data: {
+ organization?: string;
+ project?: string;
+ ps?: number;
+ q?: string;
+}): Promise<string[]> {
+ return getJSON('/api/issues/authors', data).then(r => r.authors, throwGlobalError);
+}