diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2018-10-10 15:45:41 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-10-10 20:20:56 +0200 |
commit | 2caab9cbcb6f267d24aa41f7b48ba06c5cefb7e1 (patch) | |
tree | 6f2cb7d31822d85d58bdb4f60d8a6e1691bcdcfc /server | |
parent | 2fac84bbe12515bb7d446a7cdc6be86fd3377b86 (diff) | |
download | sonarqube-2caab9cbcb6f267d24aa41f7b48ba06c5cefb7e1.tar.gz sonarqube-2caab9cbcb6f267d24aa41f7b48ba06c5cefb7e1.zip |
SONAR-11260 Fetch analysis warnings only for projects
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/ComponentContainer.tsx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx index ef37ea8376e..4fd300852f3 100644 --- a/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/ComponentContainer.tsx @@ -257,15 +257,17 @@ export class ComponentContainer extends React.PureComponent<Props, State> { }; fetchWarnings = (component: Component, branchLike?: BranchLike) => { - getAnalysisStatus({ - component: component.key, - ...getBranchLikeQuery(branchLike) - }).then( - ({ component }) => { - this.setState({ warnings: component.warnings }); - }, - () => {} - ); + if (component.qualifier === 'TRK') { + getAnalysisStatus({ + component: component.key, + ...getBranchLikeQuery(branchLike) + }).then( + ({ component }) => { + this.setState({ warnings: component.warnings }); + }, + () => {} + ); + } }; getCurrentBranchLike = (branchLikes: BranchLike[]) => { |