diff options
author | Erich Eckner <git@eckner.net> | 2017-09-21 16:19:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-21 16:19:07 +0200 |
commit | f1fcf1d5012a7bad6b834436dc31eb297c0fe4d6 (patch) | |
tree | be7871d163007f34082e938bff0122c2acb9925d | |
parent | 4be7d60ca7c000015c68b1b50ab7cb65cf11fd57 (diff) | |
download | packages-f1fcf1d5012a7bad6b834436dc31eb297c0fe4d6.tar.xz |
remove community/grafana
-rw-r--r-- | community/grafana/PKGBUILD | 10 | ||||
-rw-r--r-- | community/grafana/precision.patch | 42 |
2 files changed, 0 insertions, 52 deletions
diff --git a/community/grafana/PKGBUILD b/community/grafana/PKGBUILD deleted file mode 100644 index be68a03f..00000000 --- a/community/grafana/PKGBUILD +++ /dev/null @@ -1,10 +0,0 @@ -# first, we need to bump the version a little -if [ "${pkgver}" != '4.4.3' ]; then - echo 'Sry, patch is probably outdated.' - exit 1 -fi - -pkgver=4.5.1 -source[0]="${source[0]/4.4.3/4.5.1}" -source+=('precision.patch') -md5sums+=('66b867cfe895c1006f9119a1ae1f3f63') diff --git a/community/grafana/precision.patch b/community/grafana/precision.patch deleted file mode 100644 index 4471a7ce..00000000 --- a/community/grafana/precision.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- a/public/app/plugins/panel/graph/specs/graph_specs.ts 2017-09-15 21:04:37.456367729 +0200 -+++ a/public/app/plugins/panel/graph/specs/graph_specs.ts 2017-09-15 21:04:35.832435741 +0200 -@@ -133,12 +133,16 @@ - it('should apply axis transform, autoscaling (if necessary) and ticks', function() { - var axisAutoscale = ctx.plotOptions.yaxes[0]; - expect(axisAutoscale.transform(100)).to.be(2); -- expect(axisAutoscale.inverseTransform(-3)).to.be(0.001); -- expect(axisAutoscale.min).to.be(0.001); -+ expect(axisAutoscale.inverseTransform(-3)).to.within(0.00099999999,0.00100000001); -+ expect(axisAutoscale.min).to.within(0.00099999999,0.00100000001); - expect(axisAutoscale.max).to.be(10000); -- expect(axisAutoscale.ticks.length).to.be(8); -- expect(axisAutoscale.ticks[0]).to.be(0.001); -- expect(axisAutoscale.ticks[7]).to.be(10000); -+ expect(axisAutoscale.ticks.length).to.within(7,8); -+ expect(axisAutoscale.ticks[0]).to.within(0.00099999999,0.00100000001); -+ if (axisAutoscale.ticks.length === 7) { -+ expect(axisAutoscale.ticks[axisAutoscale.ticks.length-1]).to.within(999.9999,1000.0001); -+ } else { -+ expect(axisAutoscale.ticks[axisAutoscale.ticks.length-1]).to.be(10000); -+ } - - var axisFixedscale = ctx.plotOptions.yaxes[1]; - expect(axisFixedscale.min).to.be(0.05); -@@ -162,7 +166,7 @@ - it('should not set min and max and should create some fake ticks', function() { - var axisAutoscale = ctx.plotOptions.yaxes[0]; - expect(axisAutoscale.transform(100)).to.be(2); -- expect(axisAutoscale.inverseTransform(-3)).to.be(0.001); -+ expect(axisAutoscale.inverseTransform(-3)).to.within(0.00099999999,0.00100000001); - expect(axisAutoscale.min).to.be(undefined); - expect(axisAutoscale.max).to.be(undefined); - expect(axisAutoscale.ticks.length).to.be(2); -@@ -187,7 +191,7 @@ - it('should set min to 0.1 and add a tick for 0.1', function() { - var axisAutoscale = ctx.plotOptions.yaxes[0]; - expect(axisAutoscale.transform(100)).to.be(2); -- expect(axisAutoscale.inverseTransform(-3)).to.be(0.001); -+ expect(axisAutoscale.inverseTransform(-3)).to.within(0.00099999999,0.00100000001); - expect(axisAutoscale.min).to.be(0.1); - expect(axisAutoscale.max).to.be(10000); - expect(axisAutoscale.ticks.length).to.be(6); |