Merge branch 'master' of github.com:torkelo/grafana-private into pro
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
- [Issue #795](https://github.com/grafana/grafana/issues/795). Chrome: Fix for display issue in chrome beta & chrome canary when entering edit mode
|
||||
- [Issue #818](https://github.com/grafana/grafana/issues/818). Graph: Added percent y-axis format
|
||||
- [Issue #828](https://github.com/grafana/grafana/issues/828). Elasticsearch: saving new dashboard with title equal to slugified url would cause it to deleted.
|
||||
- [Issue #830](https://github.com/grafana/grafana/issues/830). Annotations: Fix for elasticsearch annotations and mapping nested fields
|
||||
|
||||
# 1.8.0-RC1 (2014-09-12)
|
||||
|
||||
|
||||
@@ -51,9 +51,12 @@ function (angular, $) {
|
||||
scope.onAppEvent('hide-dash-editor', hideEditorPane);
|
||||
|
||||
scope.onAppEvent('show-dash-editor', function(evt, payload) {
|
||||
hideEditorPane();
|
||||
if (lastEditor === payload.src) {
|
||||
hideEditorPane();
|
||||
return;
|
||||
}
|
||||
|
||||
if (lastEditor === payload.src) { return; }
|
||||
hideEditorPane();
|
||||
|
||||
scope.exitFullscreen();
|
||||
|
||||
|
||||
@@ -110,11 +110,6 @@ function (angular, $, kbn, moment, _) {
|
||||
|
||||
// Populate element
|
||||
var options = {
|
||||
hooks: {
|
||||
drawSeries: [function() {
|
||||
console.log('drawSeries', arguments);
|
||||
}]
|
||||
},
|
||||
legend: { show: false },
|
||||
series: {
|
||||
stackpercent: panel.stack ? panel.percentage : false,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
ng-class="{'pull-right': series.yaxis === 2, 'graph-legend-series-hidden': hiddenSeries[series.alias]}"
|
||||
>
|
||||
<div class="graph-legend-icon">
|
||||
<i class='icon-minus pointer' ng-style="{color: series.color}" bs-popover="'colorPopup.html'">
|
||||
<i class='icon-minus pointer' ng-style="{color: series.color}" bs-popover="'colorPopup.html'" data-placement="bottom">
|
||||
</i>
|
||||
</div>
|
||||
<div class="graph-legend-alias small">
|
||||
|
||||
@@ -57,7 +57,8 @@ define([
|
||||
|
||||
function errorHandler(err) {
|
||||
console.log('Annotation error: ', err);
|
||||
alertSrv.set('Annotations','Could not fetch annotations','error');
|
||||
var message = err.message || "Aannotation query failed";
|
||||
alertSrv.set('Annotations error', message,'error');
|
||||
}
|
||||
|
||||
function addAnnotation(options) {
|
||||
|
||||
@@ -86,6 +86,22 @@ function (angular, _, config, kbn, moment) {
|
||||
var list = [];
|
||||
var hits = results.data.hits.hits;
|
||||
|
||||
var getFieldFromSource = function(source, fieldName) {
|
||||
if (!fieldName) { return; }
|
||||
|
||||
var fieldNames = fieldName.split('.');
|
||||
var fieldValue = source;
|
||||
|
||||
for (var i = 0; i < fieldNames.length; i++) {
|
||||
fieldValue = fieldValue[fieldNames[i]];
|
||||
}
|
||||
|
||||
if (_.isArray(fieldValue)) {
|
||||
fieldValue = fieldValue.join(', ');
|
||||
}
|
||||
return fieldValue;
|
||||
};
|
||||
|
||||
for (var i = 0; i < hits.length; i++) {
|
||||
var source = hits[i]._source;
|
||||
var fields = hits[i].fields;
|
||||
@@ -98,21 +114,11 @@ function (angular, _, config, kbn, moment) {
|
||||
var event = {
|
||||
annotation: annotation,
|
||||
time: moment.utc(time).valueOf(),
|
||||
title: source[titleField],
|
||||
title: getFieldFromSource(source, titleField),
|
||||
tags: getFieldFromSource(source, tagsField),
|
||||
text: getFieldFromSource(source, textField)
|
||||
};
|
||||
|
||||
if (source[tagsField]) {
|
||||
if (_.isArray(source[tagsField])) {
|
||||
event.tags = source[tagsField].join(', ');
|
||||
}
|
||||
else {
|
||||
event.tags = source[tagsField];
|
||||
}
|
||||
}
|
||||
if (textField && source[textField]) {
|
||||
event.text = source[textField];
|
||||
}
|
||||
|
||||
list.push(event);
|
||||
}
|
||||
return list;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
///// @scratch /configuration/config.js/1
|
||||
// == Configuration
|
||||
// config.js is where you will find the core Grafana configuration. This file contains parameter that
|
||||
// must be set before Grafana is run for the first time.
|
||||
///
|
||||
// == Configuration
|
||||
// config.js is where you will find the core Grafana configuration. This file contains parameter that
|
||||
// must be set before Grafana is run for the first time.
|
||||
|
||||
define(['settings'],
|
||||
function (Settings) {
|
||||
"use strict";
|
||||
@@ -97,7 +96,7 @@ function (Settings) {
|
||||
// Change window title prefix from 'Grafana - <dashboard title>'
|
||||
window_title_prefix: 'Grafana - ',
|
||||
|
||||
// Add your own custom pannels
|
||||
// Add your own custom panels
|
||||
plugins: {
|
||||
// list of plugin panels
|
||||
panels: [],
|
||||
|
||||
@@ -436,6 +436,9 @@ select.grafana-target-segment-input {
|
||||
background-color: rgb(58, 57, 57);
|
||||
border-radius: 5px;
|
||||
z-index: 9999;
|
||||
max-width: 800px;
|
||||
max-height: 600px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.tooltip.in {
|
||||
|
||||
@@ -257,7 +257,7 @@
|
||||
// Form states and alerts
|
||||
// -------------------------
|
||||
@warningText: darken(#c09853, 10%);
|
||||
@warningBackground: @grayLighter;
|
||||
@warningBackground: @orange;
|
||||
@warningBorder: transparent;
|
||||
|
||||
@errorText: #b94a48;
|
||||
|
||||
Reference in New Issue
Block a user