Commit Graph
5988 Commits
Author SHA1 Message Date
Worty 9c0fbe5a0b fixed that missing one 2018-07-30 16:19:31 +02:00
Marcus Efraimsson e648ed197f Merge pull request #12679 from svenklemm/postgres-metric-prefix
Use metric column as prefix when returning multiple value columns
2018-07-30 14:50:11 +02:00
Tobias Skarhed 3d4a346c66 Begin conversion 2018-07-30 13:02:08 +02:00
Marcus Efraimsson 20b2b344f6 mssql: add logo 2018-07-28 11:31:30 +02:00
Sven Klemm 036647ae35 document metric column prefix in query editor 2018-07-27 17:18:45 +02:00
Marcus Efraimsson 8188679951 Merge pull request #12745 from dehrax/12224-heatmap-ctrl
Karma to Jest: heatmap_ctrl
2018-07-27 17:18:15 +02:00
Marcus Efraimsson 710566e146 Merge pull request #12742 from dehrax/12224-backend-srv
Karma to Jest: backend_srv
2018-07-27 17:17:54 +02:00
Marcus Efraimsson 86d75a64c1 Merge pull request #12737 from dehrax/12224-singlestat
Karma to Jest: singlestat
2018-07-27 17:17:09 +02:00
Tobias Skarhed 805dc3542f Remove extra mock 2018-07-27 16:46:41 +02:00
Tobias Skarhed 26f709e87e Karm to Jest 2018-07-27 16:45:03 +02:00
Worty 895b4b40ee correct volume unit 2018-07-27 16:26:04 +02:00
Tobias Skarhed c11d0f5cc6 Remove lo 2018-07-27 15:52:22 +02:00
Tobias Skarhed 2f6b302375 Test passing. Remove Karma 2018-07-27 15:51:56 +02:00
Sven Klemm 7905c29875 adjust metric prefix code to sql engine refactor 2018-07-27 15:34:04 +02:00
Tobias Skarhed 766c23a1eb Fix emit errors 2018-07-27 15:16:19 +02:00
Tobias Skarhed 2db4a54f75 Fix test 2018-07-27 14:40:56 +02:00
Tobias Skarhed 4e6168f3a3 Add async/await 2018-07-27 14:22:48 +02:00
Patrick O'Carroll 971e52ecc9 removed unused class from the deletebutton pr 2018-07-27 13:48:14 +02:00
Patrick O'Carroll 1bb5a57036 frontend part with mock-team-list 2018-07-27 13:45:16 +02:00
Tobias Skarhed 55111c801f Update test for local time 2018-07-27 13:41:07 +02:00
Tobias Skarhed 67c613a45a Begin conversion 2018-07-27 13:29:57 +02:00
Marcus Efraimsson 0550ec6de1 Merge pull request #12665 from grafana/9863-animated-delete-button
built a component for delete button in tables
2018-07-27 12:37:53 +02:00
Tobias Skarhed bff7a29356 Cleanup 2018-07-27 11:34:14 +02:00
Tobias Skarhed 3d21e42aac Remove Karma file 2018-07-27 11:30:37 +02:00
Tobias Skarhed 47da3e3ae8 All tests passing 2018-07-27 11:28:16 +02:00
Tobias Skarhed 675a031b6c All except one passing 2018-07-27 11:04:01 +02:00
Tobias Skarhed fc06f8bfe7 Pass more tests 2018-07-26 17:22:15 +02:00
David 7699451d94 Refactor Explore query field (#12643)
* Refactor Explore query field

- extract typeahead field that only contains logic for the typeahead
  mechanics
- renamed QueryField to PromQueryField, a wrapper around TypeaheadField
  that deals with Prometheus-specific concepts
- PromQueryField creates a promql typeahead by providing the handlers
  for producing suggestions, and for applying suggestions
- The `refresher` promise is needed to trigger a render once an async
  action in the wrapper returns.

This is prep work for a composable query field to be used by Explore, as
well as editors in datasource plugins.

* Added typeahead handling tests

- extracted context-to-suggestion logic to make it testable
- kept DOM-dependent parts in main onTypeahead funtion

* simplified error handling in explore query field

* Refactor query suggestions

- use monaco's suggestion types (roughly), see
  https://github.com/Microsoft/monaco-editor/blob/f6fb545/monaco.d.ts#L4208
- suggest functions and metrics in empty field (ctrl+space)
- copy and expand prometheus function docs from prometheus datasource
  (will be migrated back to the datasource in the future)

* Added prop and state types, removed unused cwrp

* Split up suggestion processing for code readability
2018-07-26 15:04:12 +03:00
Tobias Skarhed 88e91b3f51 Begin conversion 2018-07-26 10:44:40 +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
Patrick O'Carroll f4ab432542 added position absolute and some flexbox so I could remov changes in display and setTimeout, added tests and types, did some renaming 2018-07-25 10:29:55 +02:00
Marcus Efraimsson 27b386c91d Merge pull request #12706 from dehrax/12224-graphite-query-ctrl
Karma to Jest: graphite query_ctrl
2018-07-24 19:02:50 +02:00
Tobias Skarhed ce9b25a5ac Remove comments 2018-07-24 18:30:29 +02:00
Marcus Efraimsson d8d748d2aa remove unneeded comment 2018-07-24 17:40:00 +02:00
Marcus Efraimsson 74b4d2efd5 Merge pull request #12704 from dehrax/12224-completer
Karma to Jest: completer
2018-07-24 17:37:43 +02:00
Tobias Skarhed 27c081349f Remove old influx stuff 2018-07-24 17:03:58 +02:00
Marcus Efraimsson 1c4dd6f2f7 Merge pull request #12702 from dehrax/12224-influx-query-ctrl
Karma to Jest: influx query_ctrl
2018-07-24 16:58:01 +02:00
Tobias Skarhed b58a7642dc Karma to Jest 2018-07-24 15:41:58 +02:00
Tobias Skarhed 25c8233523 Begin conversion 2018-07-24 15:41:58 +02:00
Tobias Skarhed 51caf470f5 Remove influx qeury_ctrl jest, as it is already completed 2018-07-24 14:56:14 +02:00
Tobias Skarhed d6381bed7c Test fail depending on test order 2018-07-24 14:56:13 +02:00
Tobias Skarhed d2f81d52d4 Karma to Jest: begin influx query_ctrl 2018-07-24 14:56:13 +02:00
Tobias Skarhed 49a8c2e0c1 Make beautiful 2018-07-24 14:56:13 +02:00
Tobias Skarhed c0f9c06f21 Karma to Jest: completer 2018-07-24 14:56:13 +02:00
Tobias Skarhed 48ae9ec77e Remove comments and Karm test 2018-07-24 14:35:37 +02:00
Tobias Skarhed 987a16086b Karma to Jest 2018-07-24 14:34:37 +02:00
Tobias Skarhed 81c32780b9 Pass more tests 2018-07-24 11:27:53 +02:00