소스 검색

renamed graphite panel to graph

Torkel Ödegaard 11 년 전
부모
커밋
6e2348d2b1

+ 7 - 2
CHANGELOG.md

@@ -1,4 +1,6 @@
-vNext
+# vNext
+
+#### New features or improvements
 - New Y-axis formater for metric values that represent seconds (Issue #427) - thx @jippi
 - Allow special characters in serie names (influxdb datasource), PR #390 - thx  @majst01
 - Refactoring of filterSrv (Issue #428), thx @Tetha
@@ -12,7 +14,10 @@ vNext
 - Improvement to InfluxDB query editor and function/value column selection (Issue #473)
 - Initial support for filtering (templated queries) for InfluxDB (PR #375) - thx @mavimo
 
-# Fixes
+#### Changes
+- Graphite panel is now renamed graph (Existing dashboards will still work)
+
+#### Fixes
 - Filter option loading when having muliple nested filters now works better.
   Options are now reloaded correctly and there are no multiple renders/refresh inbetween (#447),
   After an option is changed and a nested template param is also reloaded, if the current value

+ 0 - 0
src/app/panels/graphite/axisEditor.html → src/app/panels/graph/axisEditor.html


+ 0 - 0
src/app/panels/graphite/legend.html → src/app/panels/graph/legend.html


+ 2 - 2
src/app/panels/graphite/module.html → src/app/panels/graph/module.html

@@ -1,4 +1,4 @@
-<div  ng-controller='graphite'
+<div  ng-controller='graph'
       ng-init="init()"
       style="min-height:{{panel.height || row.height}}"
       ng-class="{'panel-fullscreen': fullscreen}">
@@ -16,7 +16,7 @@
   </div>
 
   <div ng-if="panel.legend" class="grafana-legend-container">
-    <div ng-include="'app/panels/graphite/legend.html'"></div>
+    <div ng-include="'app/panels/graph/legend.html'"></div>
   </div>
   <div class="clearfix"></div>
 

+ 4 - 4
src/app/panels/graphite/module.js → src/app/panels/graph/module.js

@@ -33,10 +33,10 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
 
   'use strict';
 
-  var module = angular.module('kibana.panels.graphite', []);
+  var module = angular.module('kibana.panels.graph', []);
   app.useModule(module);
 
-  module.controller('graphite', function($scope, $rootScope, datasourceSrv, $timeout, annotationsSrv) {
+  module.controller('graph', function($scope, $rootScope, datasourceSrv, $timeout, annotationsSrv) {
 
     $scope.panelMeta = {
       modals : [],
@@ -52,11 +52,11 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
         },
         {
           title:'Axes & Grid',
-          src:'app/panels/graphite/axisEditor.html'
+          src:'app/panels/graph/axisEditor.html'
         },
         {
           title:'Display Styles',
-          src:'app/panels/graphite/styleEditor.html'
+          src:'app/panels/graph/styleEditor.html'
         }
       ],
       fullscreenEdit: true,

+ 0 - 0
src/app/panels/graphite/styleEditor.html → src/app/panels/graph/styleEditor.html


+ 0 - 0
src/app/panels/graphite/timeSeries.js → src/app/panels/graph/timeSeries.js


+ 8 - 0
src/app/services/dashboard.js

@@ -138,6 +138,14 @@ function (angular, $, kbn, _, config, moment, Modernizr) {
         });
       }
 
+      _.each(dashboard.rows, function(row) {
+        _.each(row.panels, function(panel) {
+          if (panel.type === 'graphite') {
+            panel.type = 'graph';
+          }
+        });
+      });
+
       return dashboard;
     };
 

+ 1 - 1
src/config.sample.js

@@ -76,7 +76,7 @@ function (Settings) {
 
     panel_names: [
       'text',
-      'graphite'
+      'graph'
     ]
   });
 });