Johannes Schill
e0fb89cf54
Merge branch 'panel-edit-in-react' of https://github.com/grafana/grafana into panel-edit-in-react
2018-11-30 13:39:46 +01:00
Johannes Schill
363425d55e
react-panel: Options button should always be enabled now when Time Range-options are there
2018-11-30 13:39:06 +01:00
Johannes Schill
d02839d2d1
react-panel: Move time range options to its own component and render it under the options button instead
2018-11-30 13:36:53 +01:00
Erik Sundell
e55a0cceff
Merge branch 'panel-edit-in-react' of https://github.com/grafana/grafana into panel-edit-in-react
2018-11-30 12:50:16 +01:00
Erik Sundell
c40bfb8eda
make sure target obj is not destructured so that angular copy of objected can be mutated
2018-11-30 12:49:05 +01:00
David Kaltschmidt
979f3f3e0c
Review feedback
...
- fixed typo
- moved result calculation to explore utils
- use component keys instead of componentWillReceiveProps
- require logs to have and id, to as use as Logs component key
- render delay based on row count
2018-11-30 12:26:57 +01:00
Johannes Schill
a8e184c025
react-panel: Clean up input validation and increase code readability
2018-11-30 10:21:55 +01:00
Johannes Schill
69ae3d2e6a
react-panel: Time range options moved to "Queries" tab
2018-11-30 10:21:54 +01:00
Johannes Schill
b7fcef3351
react-panel: Remove mock response button for now
2018-11-30 10:21:54 +01:00
Johannes Schill
a03900e6cf
react-panel: Remove comments and improve readability in render()
2018-11-30 10:21:54 +01:00
Johannes Schill
3908e64ef0
react-panel: Use correct type for children prop to avoid the use of fragments <></>
2018-11-30 10:21:54 +01:00
Johannes Schill
23ae1c7184
react-panel: Move all query inspector logic into QueryInspector component and start with the "Mock response"
2018-11-30 10:21:54 +01:00
Johannes Schill
857bd3d8ad
react-panel: Toggle Expand/Collapse json nodes in Query Inspector
2018-11-30 10:21:54 +01:00
Johannes Schill
8254086ecb
react-panel: Add CopyToClipboard-component and separate QueryInspector to its own component from QueriesTab
2018-11-30 10:21:53 +01:00
Johannes Schill
be67801e84
react-panel: Trigger panel refresh when opening inspector. Add loading-message
2018-11-30 10:21:53 +01:00
Johannes Schill
348f2e4ec4
react-panel: Get real datasource query for query inspector
2018-11-30 10:21:53 +01:00
Johannes Schill
82ce733e9e
react-panel: Create component for JSON formatting and use it on query inspector
2018-11-30 10:21:53 +01:00
Erik Sundell
3d45b5ba73
make getAll return array instead of object
2018-11-30 09:48:59 +01:00
Erik Sundell
df75fb0e6d
remove obsolete test
2018-11-30 09:32:36 +01:00
David Kaltschmidt
ae26f7126f
Explore: Logging render performance
...
- moved from grid to flexbox
- calculate Explore results only when query transactions change to prevent expensive re-renders
- split up rendering of graph and log data
- render log results in 2 stages
2018-11-29 17:30:11 +01:00
Erik Sundell
a4154fa925
Merge branch 'panel-edit-in-react' of https://github.com/grafana/grafana into panel-edit-in-react
2018-11-29 14:20:55 +01:00
Erik Sundell
d1a2488392
pass data correctly to event handler
2018-11-29 14:20:15 +01:00
ijin08
46ec9bd6ad
Merge branch 'panel-edit-in-react' of github.com:grafana/grafana into panel-edit-in-react
2018-11-29 10:51:56 +01:00
Erik Sundell
3162dda088
remove explore check - make it possible to load all datasources
2018-11-29 10:46:50 +01:00
ijin08
2c943d9aec
added new icons, fixed so different icons in different themes, added animation to hover on icons, styled choose visualization and datasource for both themes, made som styling adjustments to whole panel editor
2018-11-28 15:51:45 +01:00
Erik Sundell
6f85fa6b35
add new flag in order to be able to indicate whether the datasource has native support for tables
2018-11-28 15:06:22 +01:00
Erik Sundell
18abd987bb
prevent explore from crashing when table is not present in response
2018-11-28 14:31:20 +01:00
David Kaltschmidt
c3b67f3a13
Explore: Logging label filtering
...
- adds a custom label renderer to Logs viewer in Explore
- labels are no longer treated as strings, they are passed as parsed objects to the log row
- label renderer supports onClick handler for an action
- renamed Explore's `onClickTableCell` to `onClickLabel` and wired up log label renderers
- reuse Prometheus `addLabelToSelector` to modify Logging queries via click on label
- added tests to `addLabelToSelector`, changed to include the surrounding `{}`
- use label render also for common labels in the controls panel
- logging meta data section has now a custom renderer that can render numbers, strings, and labels
- style adjustments
2018-11-28 14:20:10 +01:00
Erik Sundell
4eebede9ef
add current editor to panel targets
2018-11-27 16:50:09 +01:00
David Kaltschmidt
593cc38cfc
Added stop scan button
2018-11-27 16:35:37 +01:00
David Kaltschmidt
4803b8f3c0
Explore: Scan for older logs
...
Sometimes log streams dont return any lines for the given range. Would be great to automate the search until some logs are found.
- Allow Explore to drive TimePicker via ref
- Show `Scan` link in Logs when there is no data
- Click on `Scan` sets Explore into scanning state
- While scanning, tell Timepicker to shift left
- TimePicker change triggers new queries with shifted time range
- Remember if query transaction was started via scan
- keep scanning until something was found
- Manual use of timepicker cancels scanning
2018-11-27 15:56:10 +01:00
Erik Sundell
626a94be46
remove time srv initialization
2018-11-27 14:51:03 +01:00
Erik Sundell
7159b369a3
restructure imports
2018-11-27 14:49:03 +01:00
Erik Sundell
5e7d4beacf
get intervals from explore function
2018-11-27 14:45:39 +01:00
Erik Sundell
b36db6ac04
unregister all query editor event listeners
2018-11-27 14:27:33 +01:00
Erik Sundell
c79d8b2a9b
remove comments
2018-11-27 14:25:24 +01:00
Erik Sundell
c567d75320
temp remove until stackdriver implements explore
2018-11-27 14:22:39 +01:00
Erik Sundell
1998c08df5
use default range from time picker
2018-11-27 13:13:26 +01:00
David
9afb8b64ed
Merge pull request #14176 from grafana/davkal/explore-logging-level-filter
...
Explore: Filter logs by log level
2018-11-27 12:23:45 +01:00
Erik Sundell
109ff1a3e1
includes ranges correctly in the options object
2018-11-26 17:09:50 +01:00
Erik Sundell
3395b1caf6
Merge branch 'panel-edit-in-react' of https://github.com/grafana/grafana into panel-edit-in-react
2018-11-26 13:44:32 +01:00
David Kaltschmidt
4f55a238ed
Explore: Filter logs by log level
...
- add `onToggleSeries` to Explore Graph props
- toggling a Logging Graph series from the legend propagates its hidden series to Logs
- Logs translates hidden series alias to LogLevels
- Logs filters out hidden log levels
2018-11-23 16:29:55 +01:00
Erik Sundell
7209c7cd0a
mock interval data
2018-11-23 15:37:49 +01:00
Erik Sundell
1e6ea8b124
rename variable
2018-11-23 15:15:41 +01:00
Erik Sundell
65c744c39f
hide row specific buttons when query editor is rendered from explore
2018-11-23 15:14:13 +01:00
Erik Sundell
ccddee4a4a
add support for explore events
2018-11-23 15:12:20 +01:00
Torkel Ödegaard
39a1b11cb3
minor fixes
2018-11-23 15:01:36 +01:00
Erik Sundell
fae3ae2580
use plugin_loader directly instead of using the wrapper
2018-11-23 14:32:56 +01:00
Torkel Ödegaard
daee874ee6
Merge branch 'panel-edit-in-react' into panel-edit-in-react-sidemenu
2018-11-23 14:01:18 +01:00
Torkel Ödegaard
263381eac6
Merge branch 'develop' into panel-edit-in-react
2018-11-23 14:00:15 +01:00