Torkel Ödegaard
7d44aacf4a
refactoring: slight changes to PR #13247
2018-09-27 14:50:14 +02:00
Torkel Ödegaard
f2307f92de
Merge branch 'text_variable-3173' of https://github.com/daldoyle/grafana into daldoyle-text_variable-3173
2018-09-27 14:36:37 +02:00
David Kaltschmidt
1a38c45dde
Hotfix for Explore (empty page after running query)
...
Since #13212 adhoc filters are being gathered, in Explore the template
service has no variables set and then throws when iterating over them.
2018-09-14 16:09:43 +02:00
David
a5bcd4b8e4
Adhoc-filtering for prometheus dashboards ( #13212 )
...
* Basic adhoc-filtering support for prometheus
2018-09-12 18:10:57 +02:00
Dan Doyle
f0e905f3c9
First pass at a text based template var, getting feedback from devs
2018-09-12 13:17:15 +00:00
Patrick O'Carroll
72ab24f300
Changed functions to arrow functions for only-arrow-functions rule. ( #13131 )
2018-09-05 07:47:30 +02:00
Marcus Efraimsson
7c88436a9b
Merge pull request #13133 from grafana/13132_query_variable
...
Fix error when new variables created but not yet added/saved
2018-09-04 17:25:08 +02:00
Patrick O'Carroll
0f326f18dc
changed functions to arrowfunctions for only-arrow-functions rule ( #13127 )
2018-09-04 15:55:41 +02:00
Marcus Efraimsson
1e74d7f20a
handle new variables created not yet added
2018-09-04 13:25:44 +02:00
Patrick O'Carroll
b8d82df97e
added no-angle-bracket-type-assertion rule and updatet files to follow rule ( #13115 )
2018-09-03 11:30:44 +02:00
Patrick O'Carroll
7837ee4466
Updated rules for variable name ( #13106 )
...
* updated rules for variable name and fixed files that didn't follow new rules
* fixed test so it uses new rule
* made exceptions to rule in interval_variable
2018-09-03 11:00:46 +02:00
Patrick O'Carroll
abbb6f933c
added jsdoc-format rule and fixed files that didn't follow new rule ( #13107 )
2018-08-31 16:40:43 +02:00
Torkel Ödegaard
36bc8b77fb
Merge branch 'tsconfig-no-implicit-this'
2018-08-30 11:46:13 +02:00
Patrick O'Carroll
a8547ae36e
added this:any to functions and changed functions to arrowfunctions
2018-08-30 10:49:18 +02:00
Patrick O'Carroll
552a61b6ae
changed var to let in 50 files ( #13075 )
2018-08-30 09:03:11 +02:00
Patrick O'Carroll
b494a29e02
changed var to let in last files ( #13087 )
2018-08-30 08:58:43 +02:00
Patrick O'Carroll
5e0d0c5816
changed var to const ( #13061 )
2018-08-29 14:26:50 +02:00
Torkel Ödegaard
e1beaaa0f7
tslint: tslint to const fixes part3 ( #13036 )
2018-08-26 21:52:57 +02:00
Torkel Ödegaard
314b645857
tslint: changing vars -> const ( #13034 )
2018-08-26 18:43:07 +02:00
Torkel Ödegaard
9b978b7203
tslint: autofix of let -> const ( #13033 )
2018-08-26 17:14:40 +02:00
Marcus Efraimsson
49f9276df0
Merge pull request #12967 from franciscocpg/custom-all-value-variable-interpolation
...
Replacing variable interpolation in "All value" value
2018-08-24 15:40:55 +02:00
Marcus Efraimsson
775e95bde4
Merge pull request #12959 from grafana/11890_variables
...
Fix: Template variables are executing excessive queries
2018-08-21 10:40:47 +02:00
Francisco Guimarães
0223a75de0
Refresh query variable when another variable is used in regex field ( #12961 )
2018-08-20 11:56:12 +02:00
Francisco Guimarães
d58986872c
Replacing variable interpolation in "All value" value
2018-08-17 11:04:32 -03:00
Marcus Efraimsson
d6ad1ced6d
when value in variable changes, identify which variable(s) to update
...
Given you have variables a, b, c, d where b depends on a, c depends on b, c, d depends on a.
When updating a only an update of b and d should be triggered since c depends on b
and c will be updated eventually when the update of b are finished.
2018-08-17 12:20:21 +02:00
Tobias Skarhed
a65589a5fb
Rename test files
2018-08-14 10:52:41 +02:00
Tobias Skarhed
9f87f6081a
Remove Karma test
2018-08-06 11:23:50 +02:00
Tobias Skarhed
46dd4eba9e
All tests passing
2018-08-06 11:23:50 +02:00
Tobias Skarhed
034ca69610
Add mock constructor
2018-08-06 11:23:50 +02:00
Tobias Skarhed
7f4723a9a7
Begin conversion
2018-08-06 11:23:50 +02:00
Tobias Skarhed
35cc85bfcc
All tests passing. Remove Karma test.
2018-07-26 09:36:46 +02:00
Tobias Skarhed
931b944cdd
Almost all tests passing
2018-07-25 17:38:45 +02:00
Tobias Skarhed
7d51c15240
Two passing tests
2018-07-25 16:15:03 +02:00
Tobias Skarhed
f350461206
Start conversion
2018-07-25 14:52:03 +02:00
Łukasz Gryglicki
24f395f986
Add support for skipping variable value in URL, fixes #12174 ( #12541 )
...
* New rebase
Signed-off-by: Lukasz Gryglicki <lukaszgryglicki@o2.pl>
* Lint
Signed-off-by: Lukasz Gryglicki <lukaszgryglicki@o2.pl>
2018-07-11 10:06:36 -07:00
Mitsuhiro Tanda
aa1b5959da
omit extra template refresh ( #12454 )
2018-07-01 22:56:24 -07:00
Marcus Efraimsson
5280084480
set correct text in drop down when variable is present in url using key/values
2018-06-25 14:59:28 +02:00
Torkel Ödegaard
6c0752473a
Sqlstore refactor ( #11908 )
...
* refactor: tracing service refactoring
* refactor: sqlstore to instance service
* refactor: sqlstore & registory priority
* refactor: sqlstore refactor wip
* sqlstore: progress on getting tests to work again
* sqlstore: progress on refactoring and getting tests working
* sqlstore: connection string fix
* fix: not sure why this test is not working and required changing expires
* fix: updated grafana-cli
2018-05-18 11:10:10 +02:00
Seuf
1888708ca5
Templating : return __empty__ value when all value return nothing to prevent elasticsearch syntaxe error ( #9701 )
2018-05-08 14:04:20 +02:00
Sven Klemm
a806f542c6
test if default variable interpolation is effective when no specific
...
format is specified
2018-05-03 18:42:58 +02:00
Sven Klemm
764fa15e24
dont shadow format passed in as function parameter
2018-05-02 23:03:37 +02:00
Patrick O'Carroll
a40314022b
added pointer to show more, reset values on new query
2018-04-24 17:40:03 +02:00
Patrick O'Carroll
c2cc77fa08
added button to show more preview values for variables, button runs a function that increases options limit, fixes #11508
2018-04-23 13:00:24 +02:00
Torkel Ödegaard
85121e55c9
fix: Row state is now ignored when looking for dashboard changes ( #11608 )
...
* fix: Row state is now ignored when looking for dashboawrd changes, had to fix bug in expand logic to make fix work. Also moved the ChangeTracker to it's own file and moved tests to jest, fixes #11208
* removed commented out log calls
2018-04-17 09:41:07 +02:00
Mario Trangoni
e5e6bc56c8
public: fix codespell issues
2018-04-13 20:31:29 +02:00
Alexander Zobnin
d6233714d2
Merge remote-tracking branch 'upstream/master' into fix-11053
2018-04-05 16:30:46 +03:00
Daniel Lee
70eb281840
variables: adds test for variable sorting
...
ref #11280
2018-04-03 22:34:16 +02:00
Chris Ross
4a93766143
Add case-insensitive sort for variables.
2018-04-03 22:24:21 +02:00
Mitsuhiro Tanda
244cbe8cbd
add csv templating format
2018-03-08 00:13:58 +09:00
Dan Cech
abf498fc7f
improve maintainability
2018-02-23 09:51:19 -05:00