Sven Klemm
d0c2b19c51
Add templateSrv to PostgresQuery tests
2018-07-14 11:05:35 +02:00
Sven Klemm
b745fab190
add tests for query generation
2018-07-13 22:29:10 +02:00
Sven Klemm
17591ca29f
fix tests for postgres datasource
2018-07-13 10:15:55 +02:00
Sven Klemm
693efda4d5
send timerange with metricFindQuery
2018-07-13 09:31:39 +02:00
Sven Klemm
bf21f1bf76
indent generated SQL
2018-07-12 22:36:41 +02:00
Sven Klemm
a24a6624e3
handle counter overflow and resets in rate
2018-07-12 13:15:19 +02:00
Sven Klemm
0935526d23
partition by metricColumn when using increase
2018-07-12 10:13:21 +02:00
Sven Klemm
bbe7b9b908
add rate and increase special functions
2018-07-12 09:57:04 +02:00
Sven Klemm
2784a2df6b
Refactor value column SQL generation
2018-07-11 13:03:06 +02:00
Sven Klemm
9ba42f63f1
Refactor metric column sql generation
2018-07-11 12:33:37 +02:00
Sven Klemm
a86e77fc68
Refactor group by query generation
2018-07-11 12:20:24 +02:00
Sven Klemm
b9edc3c611
Refactor where clause generation
2018-07-11 11:50:02 +02:00
Sven Klemm
5dd236bf05
refactor SQL generation for value columns
2018-07-11 11:09:28 +02:00
Sven Klemm
772825ed09
Refactor time column sql generation
2018-07-11 11:00:12 +02:00
Sven Klemm
c5bde0ef45
Refactor render function on PostgresQuery
2018-07-11 10:50:49 +02:00
Sven Klemm
1d711924bc
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-11 10:21:13 +02:00
Sven Klemm
c8a11d597f
prepare sql part for special functions
2018-07-10 21:43:57 +02:00
Sven Klemm
0e610cad1b
set query gui as default handle old panels gracefully
2018-07-10 21:40:59 +02:00
Sven Klemm
9d5b4cb91d
dont throw exception for unknown types
2018-07-10 14:45:36 +02:00
Sven Klemm
e8e24f6139
add alias when adding group by
2018-07-10 11:32:23 +02:00
Dominic Smith
5578097210
Add new sequential color scales
...
* Add new sequential color scales
* Simplify inversion logic
2018-07-10 12:17:55 +03:00
Sven Klemm
6e7161f238
add aggregates when adding group by
2018-07-10 11:14:00 +02:00
David
9595f992b9
Merge pull request #12496 from dehrax/12224-prostgres-ds
...
Karma to Jest: 3 data sources
2018-07-10 11:13:44 +02:00
Sven Klemm
dc93055a10
add column alias when add aggregate function
2018-07-10 10:19:30 +02:00
Tobias Skarhed
e51f208a49
Cleanup and remove some jest.fn()
2018-07-09 15:42:34 +02:00
Tobias Skarhed
6670acd082
Remove irrelevant tests and templateSrv stub
2018-07-09 12:52:56 +02:00
Sven Klemm
5b5dcabd22
add None to metric column suggestions
2018-07-07 21:21:11 +02:00
Sven Klemm
3f4c808cc5
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-07 20:54:33 +02:00
Sven Klemm
8490ae41b6
handle pre query gui queries gracefully
2018-07-07 20:41:24 +02:00
Sven Klemm
eb170e741b
dont break on panels that dont have rawQuery set
2018-07-07 19:59:25 +02:00
Sven Klemm
b2b4860bdb
refactor transformToSegments
2018-07-07 19:43:21 +02:00
Sven Klemm
e4b4b3a772
rename quoteLiteral to quoteIdentAsLiteral
2018-07-06 12:38:43 +02:00
Sven Klemm
a63298bca2
remove unused function removeSelect
2018-07-06 11:25:20 +02:00
Sven Klemm
6143924ec6
fix where clause generation
2018-07-06 10:56:47 +02:00
Sven Klemm
7600c6efcb
remove hardcoded $__timeFilter, make macros functional in where clause
2018-07-06 10:38:52 +02:00
Sven Klemm
85ab1cfa8f
fix constraint removal
2018-07-06 09:28:34 +02:00
Sven Klemm
d8c7756489
dont autoquote, suggest quoted values if requried
2018-07-05 21:36:39 +02:00
Alexander Zobnin
36f08994cc
prometheus heatmap: fix unhandled error when some points are missing
2018-07-05 16:33:52 +03:00
Sven Klemm
3f614e635b
do not autoquote identifiers
2018-07-05 11:27:19 +02:00
Sven Klemm
c604651092
fix group by ui
2018-07-05 10:19:22 +02:00
Marcus Efraimsson
d90d4ce55d
Merge pull request #12402 from AustinWinstanley/macros/sql
...
mysql,mssql: improve $__timeFilter, $__timeFrom, $__timeTo macros
The $__timeFilter macro now uses a BETWEEN with timestamps instead of
comparing epochs
The $__timeFrom and $__timeTo macros now return strings of format
YYYY-MM-DDThh:mm:ssZ instead of epoch
2018-07-04 20:01:43 +02:00
Sven Klemm
aacf555985
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2018-07-04 18:59:23 +02:00
Sven Klemm
3595436614
fix where constraint handling
2018-07-04 18:57:55 +02:00
Sven Klemm
7d30ca04de
remove dead code from sql_part
...
fix where clause query generation
2018-07-04 15:37:06 +02:00
Tobias Skarhed
74bf80962d
Add mock to test files
2018-07-04 14:32:22 +02:00
Tobias Skarhed
962340bcd1
Create new instance in beforeEach
2018-07-04 14:32:22 +02:00
Tobias Skarhed
a37a0c7be3
Remove comments
2018-07-04 14:32:22 +02:00
Tobias Skarhed
42ba0dc73f
Karma to Jest: Cloudwatch datasource
2018-07-04 14:32:22 +02:00
Tobias Skarhed
d4bd52139a
Karma to Jest: MySQL datasource
2018-07-04 14:30:36 +02:00
Tobias Skarhed
3bbe39c5ad
Karma to Jest: postgres datasource
2018-07-04 14:30:36 +02:00