aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2017-01-09 14:29:07 +0100
committerStas Vilchik <vilchiks@gmail.com>2017-01-09 14:29:07 +0100
commit46fe636af34c428997cb8d9262c8899fa7928bf8 (patch)
treeeb4d582897d298170190c302d6fb9f64282306fe /server/sonar-web/src
parent3a78e2dd377c501a417036ee78509f461a3c6a6b (diff)
downloadsonarqube-46fe636af34c428997cb8d9262c8899fa7928bf8.tar.gz
sonarqube-46fe636af34c428997cb8d9262c8899fa7928bf8.zip
do not request activity for views on the measure history page
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js b/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js
index 71281f261f3..fb365808e3d 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js
+++ b/server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js
@@ -90,6 +90,10 @@ export default class MeasureHistory extends React.Component {
}
fetchEvents () {
+ if (this.props.component.qualifier !== 'TRK') {
+ return Promise.resolve([]);
+ }
+
return getProjectActivity(this.props.component.key, { category: 'VERSION' }).then(({ analyses }) => {
const events = analyses.map(analysis => {
const version = analysis.events.find(event => event.category === 'VERSION');