Chris Goller
3f87dd6e77
Refactor and simplify auto group by (:interval:) template variable
2017-11-08 11:27:35 -06:00
Andrew Watkins
4353f8ac86
Merge pull request #2128 from influxdata/feature/qc-v2-alias
...
FEATURE: queryConfig v2 && custom field alias persistence
2017-10-20 20:32:33 -07:00
Chris Goller
dd3399adcd
Update InfluxQL field parsing to return strings rather than numbers
2017-10-17 13:52:26 -05:00
Chris Goller
9c9a0a4fc7
Refactor fill statement parsing to be an idomatic switch
2017-10-17 13:52:01 -05:00
Chris Goller
2c3c9f39cc
Add test of InfluxQL parsing with aggregates and aliases
2017-10-17 13:50:52 -05:00
Nathan Haugo
fe2173d6c5
Remove debugging lines and add case for less than 1 ms
2017-10-16 16:23:22 -05:00
Nathan Haugo
0491a7685b
Made changes due to review
2017-10-16 16:15:12 -05:00
Chris Goller
7b786657aa
Rename queryConfig field to Value and support top/bottom
2017-10-16 10:56:12 -05:00
Nathan Haugo
b87befa0b3
Add support for millisecond groupbys
2017-10-11 13:14:44 -07:00
Chris Goller
6d6a2d4a2a
WIP supporting integers/floats for influxql arguments
2017-10-11 14:45:01 -05:00
Chris Goller
3c1b09704e
Refactor query config field arguments to be fields
2017-10-10 18:04:45 -05:00
Chris Goller
3ba1a4c94d
Refactor queryConfig to have field aliases and function arguments
2017-10-10 17:01:50 -05:00
Nathan Haugo
6cbd33b9ee
Fix tests for the updated group by time logic
2017-10-03 16:31:51 -07:00
Chris Goller
b99ba2d3c2
Add check for enterprise build type header
2017-09-28 18:37:52 -05:00
Jared Scheib
681c700806
Test fill for floating point number on server
2017-09-06 12:27:13 -04:00
Jared Scheib
856f879924
Add server test for invalid fill
2017-09-06 12:21:44 -04:00
Jared Scheib
fc0ddc0304
Fix query parser to return correct fill num value
2017-09-06 10:55:45 -04:00
Jared Scheib
e0c93f3b2a
Test fill number
2017-09-06 10:55:36 -04:00
Jared Scheib
888e8a8b9d
Test implicit fill null made explicit
2017-09-06 10:50:02 -04:00
Jared Scheib
839932978a
Test explicit null fill in server query parsing
2017-09-05 18:41:58 -04:00
Jared Scheib
ae3751e43d
Add fill to queryConfig in server response
2017-09-05 18:41:58 -04:00
Jared Scheib
cc082dfcab
Add query parser test for non-null fill
2017-09-05 18:41:50 -04:00
Chris Goller
38f172f84d
Update interface Authorization to Authorizer
2017-07-25 12:13:46 -05:00
Chris Goller
cef0e66df0
Update influx Authorization Headers for write and query path
2017-07-25 12:13:46 -05:00
Chris Goller
a3e38a68c9
Update influx Authorization Headers for write and query path
2017-07-25 12:13:46 -05:00
Chris Goller
8dc08278bd
Add JWT shared secret influxdb auth
...
Refactor --new-sources to simplify adding shared secrets
2017-07-19 01:39:06 -05:00
Luke Morris
68af7508d4
Tested + fixed bug in GROUP BY interval calculation
2017-06-16 15:54:15 -07:00
Tim Raymond
b3980d2d8d
Add Horrible Hacks for Group By Queries endpoint
...
This perpetuates the hacks that we added for :dashboardTime: so that
they will also work for :interval:. We should really find a better way
to do this.
2017-06-15 17:43:35 -04:00
Tim Raymond & Jared Scheib
f18609cfc3
Rename :autoGroupBy: to :interval:
...
This naming is more consistent with user's expectations from other
similar visualization tools.
Also, the usage of the variable now requires the words "GROUP BY" to be
present. e.g. `GROUP BY :interval:`
2017-06-15 17:43:27 -04:00
Tim Raymond
09ec78fee2
Adjust templates_tests to reflect reality
...
Where clauses generated by the query builder have "WHERE" capitalized,
and supply template variables with the ":" bracing.
2017-06-14 10:54:02 -04:00
Tim Raymond
66be46bf23
Fix :dashboardTime: by introducing tvar precedence
...
In order for :autoGroupBy: and :dashboardTime: to co-exist in a query,
it's necessary to introduce template variable precedence to the backend.
This is done by adding a `Precedence()` method to the TemplateVariable
interface that returns an ordinal indicating the precedence level of the
template variable. Precedence starts from 0 (highest) proceeding to the
maximum that a `uint` can represent.
A template variable at a given precedence level can expect that all
template variables with higher precedence will have already been
replaced in the query that is passed to its `Exec` call.
For example, :autoGroupBy: has lower precedence than :dashboardTime:
because it needs to know the selected time range for the query. When the
`Exec` method of `GroupByVar` is invoked, it will see the query after
:dashboardTime: has already been replaced, allowing it to extract the
duration successfully.
2017-06-14 10:54:02 -04:00
Tim Raymond
5418592df8
Add parsing of Group By Duration from the query
...
In order for automatic group by to be remotely useful, we need to parse
out the selected duration of time from the query itself. The problem
with doing this is that using the existing machinery for parsing
InfluxQL requires having valid InfluxQL, which InfluxQL+Template
Variables is not. To break this chicken-and-egg problem, the duration is
directly extracted from the query using regular string processing.
2017-06-14 10:52:29 -04:00
Tim Raymond
2efdd4b363
Working dynamic json Unmarshaling
2017-06-14 10:52:29 -04:00
Tim Raymond
fd5036ed20
Add support for :autoGroupBy: template variable
...
This adds support for dynamic template variables that compute something
about themselves given some additional context.
2017-06-13 14:59:56 -04:00
Chris Goller
aebf1f5d96
Fix test name typo
2017-05-31 16:18:24 -05:00
Chris Goller
a93abc39cd
Fix parsing of InfluxQL with multiple tag values
2017-05-30 17:19:41 -05:00
Chris Goller
27ff8e34ac
Update query config field ordering to always match input query
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-05-22 16:46:04 -07:00
Luke Morris
8bd7ed21c3
After the query is parsed, return to :dashboardTime:
2017-05-18 11:43:34 -07:00
Luke Morris
b7ede8c8a7
Cowabunga, it's dashboard 🕑
2017-05-08 17:12:04 -07:00
Chris Goller
e54554e8de
Update influxql AST parsing to return full binary exprs ( #1380 )
2017-05-03 15:57:19 -07:00
Chris Goller
bc7895df2e
Add test to influxql AST parsing of durations with no WHERE clause
2017-05-02 15:46:16 -05:00
Chris Goller
7a577f6618
Add Range.Lower and Range.Upper to query config to persist custom ranges
2017-05-02 15:08:51 -05:00
Chris Goller
ebe15248b0
Fix AST influxql for parsing binary expressions in fields
2017-05-02 12:36:56 -05:00
Chris Goller
0902f23f96
Add template variable substitution to influx queries
2017-04-19 12:10:18 -05:00
Chris Goller
4ba46c8c0d
Move template variables into chronograf.go
2017-04-19 11:18:23 -05:00
Chris Goller
c4465863da
Update template variable naming to Template rather than Temp
2017-04-19 11:08:14 -05:00
Chris Goller
f17cf6bb09
Add InfluxQL template rendering
2017-04-19 11:03:53 -05:00
Chris Goller
313f7e94ca
Update rawtext in queryconfig to be null and not omitempty
2017-04-07 17:32:10 -05:00
Chris Goller
d2c7c74238
Merge branch 'master' into feature/structured-queries
...
Conflicts:
Godeps
LICENSE_OF_DEPENDENCIES.md
server/mux.go
server/routes.go
ui/.eslintrc
2017-04-07 16:06:24 -05:00
Chris Goller
20e13a4275
Workaround InfluxQL bugs by returning original query.
2017-04-06 00:06:15 -05:00