From 27d5f02329cec11c888551ffa2735d366a3979d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 2 Sep 2015 11:33:32 +0200 Subject: [PATCH] refactoring(query editors): broke out metric segment --- .../cloudwatch/partials/query.editor.html | 14 ++- .../plugins/datasource/graphite/queryCtrl.js | 35 ++---- .../plugins/datasource/influxdb/queryCtrl.js | 108 +++++------------- public/app/services/all.js | 1 + public/app/services/uiSegmentSrv.js | 83 ++++++++++++++ public/test/specs/graphiteTargetCtrl-specs.js | 4 +- public/test/specs/influxdbQueryCtrl-specs.js | 4 +- 7 files changed, 139 insertions(+), 110 deletions(-) create mode 100644 public/app/services/uiSegmentSrv.js diff --git a/public/app/plugins/datasource/cloudwatch/partials/query.editor.html b/public/app/plugins/datasource/cloudwatch/partials/query.editor.html index 54f5467d4b7..cd38cde7205 100644 --- a/public/app/plugins/datasource/cloudwatch/partials/query.editor.html +++ b/public/app/plugins/datasource/cloudwatch/partials/query.editor.html @@ -37,8 +37,11 @@ + +