Commit Graph
5988 Commits
Author SHA1 Message Date
David 0f94d2f5f1 Fix closing parens completion for prometheus queries in Explore (#12810)
- position was determined by SPACE, but Prometheus selectors can
  contain spaces
- added negative lookahead to check if space is outside a selector
- moved braces plugin into PromQueryField since braces are prom specific
2018-08-07 13:34:12 +03:00
David 34761205fd Merge pull request #12799 from grafana/davkal/explore-history
Explore: Add history to query fields
2018-08-06 17:46:15 +02:00
Marcus Efraimsson b3c25076d0 Merge pull request #12746 from grafana/11305_mssql_logo
Mssql: add logo
2018-08-06 17:19:53 +02:00
David Kaltschmidt cda3b01781 Reversed history direction for explore
- _.reverse() was modifying state.history
2018-08-06 14:45:03 +02:00
David Kaltschmidt eaff7b0f68 Explore: Add history to query fields
- queries are saved to localstorage history array
- one history per datasource type (plugin ID)
- 100 items kept with timestamps
- history suggestions can be pulled up with Ctrl-SPACE
2018-08-06 14:45:03 +02:00
David 5da3584dd4 Explore: facetting for label completion (#12786)
* Explore: facetting for label completion

- unified metric and non-metric label completion
- label keys and values are now fetched fresh for each valid selector
- complete selector means only values are suggested that are supported
  by the selector
- properly implemented metric lookup for selectors (until the first
  metric was used which breaks when multiple metrics are present)
- typeahead tests now need a valid selection to demark the cursor

* Fix facetting queries for empty selector
2018-08-06 15:36:02 +03: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 ccd964e1df Convert query control 2018-08-06 10:57:58 +02:00
Tobias Skarhed 45eadae692 Convert datasource 2018-08-06 10:42:35 +02:00
Torkel Ödegaard 624f3a0173 refactor: take submenu into account PR #12796 2018-08-05 11:39:46 +02:00
Torkel Ödegaard b1b8a38061 refactor: renaming variables, refactoring PR #12796 2018-08-05 11:39:46 +02:00
Torkel Ödegaard 013f8cd8ea refactor: moving code around a bit, refactoring PR #12796 2018-08-05 11:39:46 +02:00
Tobias Skarhed f00b5eee83 Remove weird import 2018-08-05 11:39:46 +02:00
Tobias Skarhed 4b84a58575 Disable submenu when autopanels is enabled 2018-08-05 11:39:46 +02:00
Tobias Skarhed 36c406eefb Extract to own method 2018-08-05 11:39:46 +02:00
Tobias Skarhed 1618b095c7 Use and add keybard shortcut 2018-08-05 11:39:46 +02:00
Tobias Skarhed 63fa9fdc6d Add temporary url parameter 2018-08-05 11:39:46 +02:00
Tobias Skarhed 338a37abc8 Replace floor with round 2018-08-05 11:39:46 +02:00
Tobias Skarhed 9e4748e2aa Go with just single margin compensation 2018-08-05 11:39:46 +02:00
Tobias Skarhed 78b3dc40f1 Add margin and padding compensation 2018-08-05 11:39:46 +02:00
Tobias Skarhed a9f24bb36d Remove weird import 2018-08-05 11:39:45 +02:00
Tobias Skarhed 818fe09a7f Fit panels to screen height 2018-08-05 11:39:45 +02:00
Marcus Efraimsson 6f1b125c48 Merge pull request #12808 from dehrax/12224-simple
Karma to Jest: remove tests
2018-08-03 13:38:57 +02:00
David Kaltschmidt c900a30106 renamed slate unit tests to .jest.ts 2018-08-03 13:09:05 +02:00
Tobias Skarhed 61eb96ed79 Remove simple tests 2018-08-03 12:34:13 +02:00
David bda49fcaa2 Add click on explore table cell to add filter to query (#12729)
* Add click on explore table cell to add filter to query

- move query state from query row to explore container to be able to set
  modified queries
- added TS interface for columns in table model
- plumbing from table cell click to datasource
- add modifyQuery to prometheus datasource
- implement addFilter as addLabelToQuery with tests

* Review feedback

- using airbnb style for Cell declaration
- fixed addLabelToQuery for complex label values
2018-08-03 11:20:13 +03:00
Sven Klemm bfc66a7ed0 add fillmode "last" to sql datasource
This adds a new fill mode last (last observation carried forward) for grafana
to the sql datasources. This fill mode will fill in the last seen value in a
series when a timepoint is missing or NULL if no value for that series has
been seen yet.
2018-08-02 20:35:09 +02:00
Marcus Efraimsson 5cca478656 Merge pull request #12760 from svenklemm/postgres-timegroup
remove alias from postgres $__timeGroup macro

add $__timeGroupAlias macro to all sql datasources
2018-08-02 16:36:01 +02:00
Marcus Efraimsson 4d3e435298 Merge pull request #12774 from grafana/12766-table-colored-cell-link
table link color fix
2018-08-02 16:32:09 +02:00
Patrick O'Carroll ff0ca6b7e2 added two new classes for color, fixed so link has value color 2018-08-02 15:25:48 +02:00
Mitsuhiro Tanda 04fcd2a054 add series override option to hide tooltip (#12378)
* add series override option to hide tooltip

* fix test

* invert option

* fix test

* remove initialization
2018-08-02 02:49:40 -07:00
Patrick O'Carroll 36d981597e removed table-panel-link class and add a class white to modify table-panel-cell-link class 2018-08-02 11:18:21 +02:00
Sven Klemm 82c473e3af document $__timeGroupAlias 2018-08-01 21:23:00 +02:00
Brice Maron bb7e583863 fix custom variable quoting in sql* query interpolations 2018-08-01 20:32:50 +02:00
Marcus Efraimsson 9d3743774d Merge pull request #12771 from dehrax/12224-prometheus-ds
Karma to Jest: prometheus datasource
2018-08-01 15:06:36 +02:00
Tobias Skarhed 951b623bd2 Change to arrow functions 2018-08-01 14:27:45 +02:00
Tobias Skarhed af32bfebef Add all tests to one file 2018-08-01 14:26:29 +02:00
Tobias Skarhed 790aadf8ef Remove angularMocks 2018-08-01 10:09:05 +02:00
Tobias Skarhed d6158bc293 All tests passing 2018-08-01 09:30:26 +02:00
Patrick O'Carroll d4d896ade8 replaced style with class for links 2018-08-01 09:08:17 +02:00
Sven Klemm 43295f9c18 remove alias from postgres $__timeGroup macro 2018-08-01 08:50:19 +02:00
Torkel Ödegaard 89eae1566d fix: team email tooltip was not showing 2018-07-31 17:31:45 +02:00
Patrick O'Carroll 4b8ec4e323 removed a blank space in div 2018-07-31 13:07:43 +02:00
Patrick O'Carroll 7b5b94607b fixed color for links in colored cells by adding a new variable that sets color: white when cell or row has background-color 2018-07-31 12:51:07 +02:00
Tobias Skarhed e4c2476f3c Weird execution order for the tests... 2018-07-31 09:35:08 +02:00
Marcus Efraimsson 49430f7557 Merge pull request #12744 from Worty/master
change units to include characters for power of 2 and 3
2018-07-30 16:59:12 +02:00
Worty 4fa979649c also fixed "Watt per square metre" 2018-07-30 16:28:19 +02:00