Commit Graph

27 Commits (da395a28401001b9d977663406a3e898aa74d793)

Author SHA1 Message Date
Pavel Zavora 2aaf8ac4e1 feat(ui): support flux in hydrateTemplates 2021-03-11 21:04:40 +01:00
Pavel Zavora d73ab2c50c chore(ui): remove url state from TemplateQueryFetcher 2021-03-11 21:04:40 +01:00
Pavel Zavora 8caa39f0d4 feat(ui): introduce TemplateType.FluxQuery 2021-03-11 21:04:40 +01:00
Bucky Schwarz fff7836818 feat(ui): Template variables can now select their source database 2020-02-06 13:10:41 -08:00
Delmer d9c46c6d28
fix(ui/mapVarsToCSV): double quote map template values (#5118) 2019-03-18 15:50:31 -04:00
Brandon Farmer d8f1b42501 Be less aggressive on windowInterval
- backport logic from v2 line
2019-02-12 13:27:46 -08:00
Christopher Henn e664d26053 Refactor auto group by logic 2018-10-26 08:45:10 -07:00
Christopher Henn 176c0ab07f Add support for interval template variable in Flux 2018-10-18 13:43:57 -07:00
Christopher Henn 85f222b62e Fix template variable replacement within regexes
Template variables used within regexes would not replace when the query
contained a '/' before the regex in the query (see test).

This commit rewrites the logic for replacing template variables within
regexes.
2018-07-23 10:08:45 -07:00
Christopher Henn cf7f44715b Add tests for Text template value resolution 2018-07-20 15:16:20 -07:00
Christopher Henn eb258cf314 Refactor template variable resolution
Now handles the `Text` case properly.
2018-07-20 15:16:20 -07:00
Christopher Henn 25b3a3d89c Ensure Map templates track selections 2018-07-18 16:55:20 -07:00
Christopher Henn 7e20617d17 Fix failing replacement tests
Since all tests shared the same `emptyTemplate` fixture, the `id` used
for each template in the graph construction was being clobbered.
2018-07-17 15:53:36 -07:00
Christopher Henn a02712942a Rename module 2018-07-17 15:53:36 -07:00
Christopher Henn 6a413070f9 Render templates in topologically sorted order 2018-07-17 15:53:36 -07:00
Christopher Henn 366b345641 Use template values when constructing dependency graph 2018-07-17 15:53:36 -07:00
Christopher Henn a022147177 Add tests 2018-07-16 12:24:31 -07:00
Christopher Henn cc2de563dd Support multi-level template dependencies 2018-07-16 12:24:31 -07:00
Christopher Henn 6b1e38e377 Use sorted templates in query template replacement
This ensures that CSV and Map templates whose values contain other
templates are rendered approriately in the replaced query. For more
context, see #3853.
2018-07-13 17:38:54 -07:00
Delmer Reed 225f91e998 Rename TemplateValue picked to localSelected
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-07-02 17:01:03 -04:00
ebb-tide de546b7894 Fix replace tempvars to work with selected and picked template vars 2018-06-29 15:50:44 -07:00
Andrew Watkins 36bda0b0f8 Fix spelling errors 2018-06-28 13:44:49 -07:00
Andrew Watkins 6c4f74cbcf First pass at tempVar frontent plumbing 2018-06-27 17:06:18 -07:00
Andrew Watkins e82539d88c Refine replacement of Regex 2018-06-27 17:05:35 -07:00
Andrew Watkins 7db0ae74b9 Move replate replacement functions to the frontend 2018-06-27 17:05:35 -07:00
Andrew Watkins 905dce7140 Calc auto group by on the frontend 2018-06-27 17:05:35 -07:00
Andrew Watkins 5cc0ef0050 WIP template variable replacement frontend 2018-06-27 17:05:35 -07:00