]> source.dussan.org Git - sonarqube.git/commitdiff
explicitly provide list of qualifiers to WS /api/components/tree
authorStas Vilchik <vilchiks@gmail.com>
Tue, 24 Jan 2017 12:55:37 +0000 (13:55 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 25 Jan 2017 10:41:57 +0000 (11:41 +0100)
server/sonar-web/src/main/js/apps/code/components/Search.js

index 91b527710aec5528a4de9ddc402bc9b0bbe904a3..d5c8ae6baa0bfd673a389a967295b7e9f82c3b10 100644 (file)
@@ -135,7 +135,9 @@ export default class Search extends React.Component {
     if (this.mounted && this.checkInputValue(query)) {
       const { component, onError } = this.props;
       this.setState({ loading: true });
-      getTree(component.key, { q: query, s: 'qualifier,name' })
+
+      // request all qualifiers except DIR
+      getTree(component.key, { q: query, s: 'qualifier,name', qualifiers: 'VW,SVW,TRK,BRC,UTS,FIL' })
           .then(r => {
             // second time check if value has change due to api request
             if (this.mounted && this.checkInputValue(query)) {