diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-08-10 10:48:27 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-08-21 20:21:02 +0200 |
commit | 20a8ceffbe12771dea8f9186a408aabbab32a8d7 (patch) | |
tree | 18c23ced96fe50c3730b214a1cdccf247a814b3d /server/sonar-web/src/main/js/api/issues.ts | |
parent | 15f3d9c2584cca304590ad68dea4d025ac356813 (diff) | |
download | sonarqube-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.ts | 9 |
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); +} |