Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
9a53779b
Commit
9a53779b
authored
Jun 22, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default property that marks which datasource is default in config.js is now optional (Fixes #526)
parent
551771c6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
+5
-1
CHANGELOG.md
+1
-0
src/app/services/datasourceSrv.js
+3
-0
src/app/services/influxdb/influxdbDatasource.js
+1
-1
No files found.
CHANGELOG.md
View file @
9a53779b
...
@@ -9,6 +9,7 @@ vNext
...
@@ -9,6 +9,7 @@ vNext
-
Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)
-
Bug in when using % sign in legends (aliases), fixed by removing url decoding of metric names (Fixes #506)
-
Series names and column name typeahead cache fix (Fixes #522)
-
Series names and column name typeahead cache fix (Fixes #522)
-
Fixed influxdb issue with raw query that caused wrong value column detection (Fixes #504)
-
Fixed influxdb issue with raw query that caused wrong value column detection (Fixes #504)
-
Default property that marks which datasource is default in config.js is now optional (Fixes #526)
# 1.6.0 (2014-06-16)
# 1.6.0 (2014-06-16)
...
...
src/app/services/datasourceSrv.js
View file @
9a53779b
...
@@ -15,6 +15,9 @@ function (angular, _, config) {
...
@@ -15,6 +15,9 @@ function (angular, _, config) {
this
.
init
=
function
()
{
this
.
init
=
function
()
{
var
defaultDatasource
=
_
.
findWhere
(
_
.
values
(
config
.
datasources
),
{
default
:
true
});
var
defaultDatasource
=
_
.
findWhere
(
_
.
values
(
config
.
datasources
),
{
default
:
true
});
if
(
!
defaultDatasource
)
{
defaultDatasource
=
config
.
datasources
[
_
.
keys
(
config
.
datasources
)[
0
]];
}
this
.
default
=
this
.
datasourceFactory
(
defaultDatasource
);
this
.
default
=
this
.
datasourceFactory
(
defaultDatasource
);
};
};
...
...
src/app/services/influxdb/influxdbDatasource.js
View file @
9a53779b
...
@@ -68,7 +68,7 @@ function (angular, _, kbn) {
...
@@ -68,7 +68,7 @@ function (angular, _, kbn) {
}
}
else
{
else
{
var
template
=
"select [[group]][[group_comma]] [[func]](
\"
[[column]]
\"
) as
\"
[[column]]_[[func]]
\"
from [[series]] "
+
var
template
=
"select [[group]][[group_comma]] [[func]](
[[column]])
from [[series]] "
+
"where [[timeFilter]] [[condition_add]] [[condition_key]] [[condition_op]] [[condition_value]] "
+
"where [[timeFilter]] [[condition_add]] [[condition_key]] [[condition_op]] [[condition_value]] "
+
"group by time([[interval]])[[group_comma]] [[group]] order asc"
;
"group by time([[interval]])[[group_comma]] [[group]] order asc"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment