Commit Graph

11 Commits (bugfix-error-ast)

Author SHA1 Message Date
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 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 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