diff --git a/CHANGELOG.md b/CHANGELOG.md index d832a6e076d..1e460999994 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,12 @@ -# 1.9.1 (unreleased) +# 1.9.1 (2014-12-29) **Enhancements** -- [Issue #1028](https://github.com/grafana/grafana/issues/1028). Graph: New legend option ``hideEmtpy`` to hide series with only null values +- [Issue #1028](https://github.com/grafana/grafana/issues/1028). Graph: New legend option ``hideEmtpy`` to hide series with only null values from legend +- [Issue #1242](https://github.com/grafana/grafana/issues/1242). OpenTSDB: Downsample query field now supports interval template variable +- [Issue #1126](https://github.com/grafana/grafana/issues/1126). InfluxDB: Support more than 10 series name segments when using alias ``$number`` patterns **Fixes** +- [Issue #1251](https://github.com/grafana/grafana/issues/1251). Graph: Fix for y axis and scaled units (GiB etc) caused rounding, for example 400 GiB instead of 378 GiB - [Issue #1199](https://github.com/grafana/grafana/issues/1199). Graph: fix for series tooltip when one series is hidden/disabled - [Issue #1207](https://github.com/grafana/grafana/issues/1207). Graphite: movingAverage / movingMedian parameter type impovement, now handles int and interval parameter diff --git a/latest.json b/latest.json index 1757a561809..90189fabeca 100644 --- a/latest.json +++ b/latest.json @@ -1,4 +1,4 @@ { - "version": "1.9.0", - "url": "http://grafanarel.s3.amazonaws.com/grafana-1.9.0.tar.gz" + "version": "1.9.1", + "url": "http://grafanarel.s3.amazonaws.com/grafana-1.9.1.tar.gz" } diff --git a/package.json b/package.json index 90983011688..ba7a4c9324a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "company": "Coding Instinct AB" }, "name": "grafana", - "version": "1.9.0", + "version": "1.9.1", "repository": { "type": "git", "url": "http://github.com/torkelo/grafana.git" diff --git a/src/app/app.js b/src/app/app.js index f9f295696be..a1bd1c660b4 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -85,7 +85,7 @@ function (angular, $, _, appLevelRequire, config) { 'directives/all', 'filters/all', 'components/partials', - 'routes/all', + 'routes/backend/all', ]; _.each(config.plugins.dependencies, function(dep) { diff --git a/src/app/components/kbn.js b/src/app/components/kbn.js index ecef4bd164e..aedfbb90f17 100644 --- a/src/app/components/kbn.js +++ b/src/app/components/kbn.js @@ -339,7 +339,7 @@ function($, _, moment) { return ""; } - var factor = decimals ? Math.pow(10, decimals) : 1; + var factor = decimals ? Math.pow(10, Math.max(0, decimals)) : 1; var formatted = String(Math.round(value * factor) / factor); // if exponent return directly diff --git a/src/app/controllers/all.js b/src/app/controllers/all.js index 869486075bb..8703cf0f2bf 100644 --- a/src/app/controllers/all.js +++ b/src/app/controllers/all.js @@ -1,20 +1,9 @@ define([ - './pro/grafanaCtrl', - './pro/sharePanelCtrl', - './dashboardCtrl', - './dashboardNavCtrl', - './row', - './submenuCtrl', + './grafanaCtrl', './pulldown', './search', './metricKeys', - './graphiteTarget', './graphiteImport', - './influxTargetCtrl', - './playlistCtrl', './inspectCtrl', - './opentsdbTargetCtrl', - './annotationsEditorCtrl', - './templateEditorCtrl', './jsonEditorCtrl', ], function () {}); diff --git a/src/app/controllers/pro/accountCtrl.js b/src/app/controllers/pro/accountCtrl.js index 519209291c7..9aff39f2715 100644 --- a/src/app/controllers/pro/accountCtrl.js +++ b/src/app/controllers/pro/accountCtrl.js @@ -1,6 +1,5 @@ define([ 'angular', - 'services/pro/backendSrv', ], function (angular) { 'use strict'; diff --git a/src/app/controllers/pro/datasourcesCtrl.js b/src/app/controllers/pro/datasourcesCtrl.js index 431dd487388..5d53151a9ca 100644 --- a/src/app/controllers/pro/datasourcesCtrl.js +++ b/src/app/controllers/pro/datasourcesCtrl.js @@ -1,6 +1,5 @@ define([ 'angular', - 'services/pro/backendSrv', ], function (angular) { 'use strict'; diff --git a/src/app/controllers/search.js b/src/app/controllers/search.js index 4977ced75af..3abcf4ec0a3 100644 --- a/src/app/controllers/search.js +++ b/src/app/controllers/search.js @@ -19,6 +19,9 @@ function (angular, _, config, $) { $scope.db = datasourceSrv.getGrafanaDB(); $scope.currentSearchId = 0; + // events + $scope.onAppEvent('dashboard-deleted', $scope.dashboardDeleted); + $timeout(function() { $scope.giveSearchFocus = $scope.giveSearchFocus + 1; $scope.query.query = 'title:'; @@ -123,6 +126,10 @@ function (angular, _, config, $) { $scope.deleteDashboard = function(dash, evt) { evt.stopPropagation(); $scope.appEvent('delete-dashboard', { id: dash.id, title: dash.title }); + }; + + $scope.dashboardDeleted = function(evt, id) { + var dash = _.findWhere($scope.results.dashboards, {id: id}); $scope.results.dashboards = _.without($scope.results.dashboards, dash); }; diff --git a/src/app/directives/all.js b/src/app/directives/all.js index d75410f3d33..879b61e2512 100644 --- a/src/app/directives/all.js +++ b/src/app/directives/all.js @@ -12,11 +12,8 @@ define([ './spectrumPicker', './bootstrap-tagsinput', './bodyClass', - './addGraphiteFunc', - './graphiteFuncEditor', './templateParamSelector', './graphiteSegment', './grafanaVersionCheck', './dropdown.typeahead', - './influxdbFuncEditor' ], function () {}); diff --git a/src/app/directives/grafanaPanel.js b/src/app/directives/grafanaPanel.js index 9e3c87fde3d..5709c1dddf2 100644 --- a/src/app/directives/grafanaPanel.js +++ b/src/app/directives/grafanaPanel.js @@ -18,7 +18,7 @@ function (angular, $, config) { '