mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(templating): fixed issue with mixing repeated row and repeated panel, fixes #4988
This commit is contained in:
parent
731c35540f
commit
0201ac24e7
@ -1,4 +1,8 @@
|
|||||||
# 3.0.0 Stable (2016-05-11)
|
# 3.0.2 Stable (unreleased)
|
||||||
|
|
||||||
|
* **Templating**: Fixed issue mixing row repeat and panel repeats, fixes [#4988](https://github.com/grafana/grafana/issues/4988)
|
||||||
|
|
||||||
|
# 3.0.1 Stable (2016-05-11)
|
||||||
|
|
||||||
* **Templating**: Fixed issue with new data source variable not persisting current selected value, fixes [#4934](https://github.com/grafana/grafana/issues/4934)
|
* **Templating**: Fixed issue with new data source variable not persisting current selected value, fixes [#4934](https://github.com/grafana/grafana/issues/4934)
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ module.exports = function(config) {
|
|||||||
browsers: ['PhantomJS'],
|
browsers: ['PhantomJS'],
|
||||||
captureTimeout: 20000,
|
captureTimeout: 20000,
|
||||||
singleRun: true,
|
singleRun: true,
|
||||||
autoWatchBatchDelay: 10000,
|
autoWatchBatchDelay: 1000,
|
||||||
browserNoActivityTimeout: 60000,
|
browserNoActivityTimeout: 60000,
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -18,5 +18,5 @@ rpm_ver=3.0.1-1
|
|||||||
#package_cloud push grafana/testing/el/6 grafana-${rpm_ver}.x86_64.rpm
|
#package_cloud push grafana/testing/el/6 grafana-${rpm_ver}.x86_64.rpm
|
||||||
#package_cloud push grafana/testing/el/7 grafana-${rpm_ver}.x86_64.rpm
|
#package_cloud push grafana/testing/el/7 grafana-${rpm_ver}.x86_64.rpm
|
||||||
|
|
||||||
package_cloud push grafana/stable/el/7 grafana-${version}.x86_64.rpm
|
package_cloud push grafana/stable/el/7 grafana-${rpm_ver}.x86_64.rpm
|
||||||
package_cloud push grafana/stable/el/6 grafana-${version}.x86_64.rpm
|
package_cloud push grafana/stable/el/6 grafana-${rpm_ver}.x86_64.rpm
|
||||||
|
@ -52,6 +52,8 @@ function (angular, _) {
|
|||||||
else if (panel.repeatPanelId && panel.repeatIteration !== this.iteration) {
|
else if (panel.repeatPanelId && panel.repeatIteration !== this.iteration) {
|
||||||
row.panels = _.without(row.panels, panel);
|
row.panels = _.without(row.panels, panel);
|
||||||
j = j - 1;
|
j = j - 1;
|
||||||
|
} else if (row.repeat || row.repeatRowId) {
|
||||||
|
continue;
|
||||||
} else if (!_.isEmpty(panel.scopedVars) && panel.repeatIteration !== this.iteration) {
|
} else if (!_.isEmpty(panel.scopedVars) && panel.repeatIteration !== this.iteration) {
|
||||||
panel.scopedVars = {};
|
panel.scopedVars = {};
|
||||||
}
|
}
|
||||||
@ -118,7 +120,6 @@ function (angular, _) {
|
|||||||
panel = copy.panels[i];
|
panel = copy.panels[i];
|
||||||
panel.scopedVars = {};
|
panel.scopedVars = {};
|
||||||
panel.scopedVars[variable.name] = option;
|
panel.scopedVars[variable.name] = option;
|
||||||
panel.repeatIteration = this.iteration;
|
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
};
|
};
|
||||||
|
@ -167,6 +167,7 @@ define([
|
|||||||
|
|
||||||
it('should generate a repeartRowId based on repeat row index', function() {
|
it('should generate a repeartRowId based on repeat row index', function() {
|
||||||
expect(ctx.rows[1].repeatRowId).to.be(1);
|
expect(ctx.rows[1].repeatRowId).to.be(1);
|
||||||
|
expect(ctx.rows[1].repeatIteration).to.be(ctx.dynamicDashboardSrv.iteration);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set scopedVars on row panels', function() {
|
it('should set scopedVars on row panels', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user