kay delaney
bad048b7ba
Performance: Standardize lodash imports to use destructured members ( #33040 )
...
* Performance: Standardize lodash imports to use destructured members
Changes lodash imports of the form `import x from 'lodash/x'` to
`import { x } from 'lodash'` to reduce bundle size.
* Remove unnecessary _ import from Graph component
* Enforce lodash import style
* Fix remaining lodash imports
2021-04-21 09:38:00 +02:00
kay delaney
185442115c
Chore: Remove angular dependency from data sources ( #27735 )
...
* Chore: Remove angular dependency from data sources
* Removes default export for time and template srvs
Also uses @grafana/runtime versions of the interfaces where possible
* Replace usage of internal templateSrv where possible
* Use runtime templateSrv in a couple more places
2020-10-01 18:51:23 +01:00
Ryan McKinley
7520ebadac
Refactor: move ScopedVars to grafana/data ( #18992 )
2019-09-10 12:06:01 -07:00
Tobias Skarhed
4e27ba9646
noImplicitAny: Sub 3000 errors ( #17821 )
...
* noImplicitAny Stackdriver
* Sub 3000 noImplicitAny
* Update error count limit
* Add DataQueryRequest type
2019-07-01 11:11:57 +02:00
Hugo Häggmark
7eabc282e9
Chore: Adds typings to lodash ( #16590 )
2019-04-15 12:11:52 +02:00
Sven Klemm
f608340c35
Add delta window function to postgres query builder
...
Unlike the increase function delta doesn't check for resets
and can go negative. This is similar to the prometheus delta
function.
2018-10-31 19:26:18 +01:00
Marcus Efraimsson
3fe3f3741f
Merge pull request #13200 from svenklemm/postgres-query-builder-fixes
...
Fix query builder queries for interval start
2018-09-10 13:01:17 +02:00
Sven Klemm
116fb50530
Fix query builder queries for interval start
...
This changes the rate and increase queries to not calculate
a value when there is no previous value. This also adds an
order by metric column to prevent inconsistent series ordering
in the legend.
2018-09-08 08:28:15 +02:00
Sven Klemm
6b863e3b0f
Fix quoting to handle non-string values
2018-09-07 10:21:10 +02:00
Sven Klemm
265d5daf57
Merge branch 'master' into postgres-query-builder
2018-08-31 19:02:46 +02:00
Sven Klemm
7a5b5906ed
fix quoting
2018-08-29 12:24:28 +02:00
Sven Klemm
da8696ed95
fix handling of variable interpolation for IN expresions
2018-08-26 22:43:03 +02:00
Sven Klemm
9699d7a166
make suggested filter macro depend on type
2018-08-18 12:11:10 +02:00
Sven Klemm
18ce6fc280
use unixEpochGroup macro for unix timestamp
2018-08-18 12:04:32 +02:00
Sven Klemm
907e8fd77c
fix variable escaping
2018-08-15 11:37:30 +02:00
Sven Klemm
aa830211fe
dont order for aggregate
2018-08-03 10:15:28 +02:00
Sven Klemm
dabfd88cd9
add moving average to query builder
2018-08-03 07:44:36 +02:00
Sven Klemm
2cae966e6c
use $__timeGroupAlias macro
2018-08-02 21:40:15 +02:00
Sven Klemm
ace999b13f
rename special to windows
2018-07-29 15:56:22 +02:00
Sven Klemm
26ea88252b
add first and last support
2018-07-29 15:00:13 +02:00
Sven Klemm
412bb6acab
refactor function handling in query builder
2018-07-29 13:31:50 +02:00
Sven Klemm
5327580939
refactor column function handling
2018-07-28 21:41:23 +02:00
Sven Klemm
6ca7a03975
consistent nameing fro group and select
2018-07-28 12:53:36 +02:00
Sven Klemm
97f24733f5
remove tableschema from query builder ui
2018-07-27 10:58:08 +02:00
Sven Klemm
b3ebc86093
fix window function query without group by
2018-07-23 07:52:42 +02:00
Sven Klemm
7af9cd7dfc
set explicit order for rate and increase
2018-07-22 15:20:40 +02:00
Sven Klemm
84d7743939
fix pre gui queries shortcircuit
2018-07-21 10:38:34 +02:00
Sven Klemm
0e608a08c2
fix test for query generation
2018-07-15 22:58:25 +02:00
Sven Klemm
7f348f3836
dont run queries if target has no table set
2018-07-15 22:27:33 +02:00
Sven Klemm
b28bf1a4f9
rename PostgresQueryBuilder to PostgresMetaQuery
2018-07-15 17:12:03 +02:00
Sven Klemm
070b556fd3
dont expand variables in rawSql
2018-07-15 17:02:26 +02:00
Sven Klemm
6e824e81bf
fix rate special function when using group by
2018-07-15 15:14:12 +02:00
Sven Klemm
d9648f1fe7
fix bug in query generation with metricColumn
2018-07-15 09:43:38 +02:00
Sven Klemm
fa66645b0f
refactor PostgresQuery
2018-07-15 09:36:49 +02:00
Sven Klemm
d7ed706e12
refactor PostgresQueryCtrl and PostgresQuery
2018-07-14 20:28:34 +02:00
Sven Klemm
2dc9d4e960
refactor addGroupBy and removeGroupByPart
2018-07-14 16:46:53 +02:00
Sven Klemm
b745fab190
add tests for query generation
2018-07-13 22:29:10 +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
0e610cad1b
set query gui as default handle old panels gracefully
2018-07-10 21:40:59 +02:00
Sven Klemm
e8e24f6139
add alias when adding group by
2018-07-10 11:32:23 +02:00