David
9507eda9d1
QueryField: Prevent query runs on blur in Explore ( #20180 )
...
As discussed in a UX feedback session, it's annoying that queries are
automatically executed in Explore. This change adds props to override
the blur behavior.
- add `onBlur` to Explore query field props
- Explore's query row will pass down an empty function for onBlur to the
query fields
- pass onBlur through to the QueryField component for Loki and
Prometheus
- add test to QueryField to make sure if onBlur is specified, the
onRunQuery is not executed
2019-11-06 15:08:30 +00:00
Andrej Ocenas
dca872f75f
Explore: Memory leak fix due to dedup selector ( #20107 )
...
Change custom hashing and lodash.memoize based selector for standard reselect.
2019-11-01 16:38:34 +01:00
Ivana Huckova
0ecc9a57f1
Explore: Add titles to query row action buttons ( #20128 )
2019-11-01 14:48:35 +01:00
Ivana Huckova
a5e8e0e291
Explore: UI change for log row details ( #20034 )
...
Add LogDetail section that is shown when log line is clicked and expanded. Contains labels/fields and actions to show stats and add/remove label filter.
2019-11-01 10:01:00 +01:00
Dominik Prokop
9b7748ec13
Chore: Reorg packages ( #20111 )
...
Primarily- moving majority of the types and utils from @grafana/ui to @grafana/data
* Move types from grafana-ui to grafana-data
* Move valueFormats to grafana-data
* Move utils from grafana-ui to grafana-data
* Update imports in grafana-ui
* revert data's tsconfig change
* Update imports in grafana-runtime
* Fix import paths in grafana-ui
* Move rxjs to devDeps
* Core import updates batch 1
* Import updates batch 2
* Imports fix batch 3
* Imports fixes batch i don't know
* Fix imorts in grafana-toolkit
* Fix imports after master merge
2019-10-31 10:48:05 +01:00
kay delaney
3e8c00dad1
Chore: Moves QueryField to @grafana/ui ( #19678 )
...
Closes #19626
2019-10-31 08:27:01 +00:00
David
781cff07af
Explore: Remove datasource testing on selector ( #19910 )
...
* Explore: Remove datasource testing on selector
- datasource testing gets in the way of fast query iteration: switching
between datasources can take seconds
- it should not be explore's duty to test datasources in the first place
- removed the concept of datasourceError in Explore, should not be its
concern
- datasource erorrs will express themselves in query errors just fine
- connection errors are still bubbled up
- removed reconnection logic from explore, should not be its concern
- missing labels in loki are still "visible" via an empty label selector
- Loki and Prometheus treated connection errors differently than other
datasources, making sure to pass through the original error message
* Show datasource error in query field for prom/loki/influx
* Removed connection test case, fixed disabled state
2019-10-29 10:37:36 +00:00
Andrej Ocenas
551e24f9f8
ReactMigration: Migrate Loki and Elastic config pages to React ( #19979 )
2019-10-25 16:43:20 +02:00
Ivana Huckova
6390e51b8c
Explore: Change loading state to done after live-tailing stops ( #19955 )
2019-10-23 13:54:20 +02:00
Ivana Huckova
7a1eff197d
Explore: Add functionality to show/hide query row results ( #19794 )
2019-10-22 14:57:46 +02:00
Andrej Ocenas
80a6853fd4
Refactor: Suggestion plugin for slate ( #19825 )
2019-10-21 18:53:35 +02:00
Ivana Huckova
f8c474fa1b
Explore: Add unit test to TimeSyncButton ( #19836 )
2019-10-16 11:48:10 +02:00
Andrej Ocenas
5cf5d89dff
Fix: clicking outside of some query editors required 2 clicks ( #19822 )
2019-10-15 17:04:11 +02:00
kay delaney
99411bf37a
Types: Adds type safety to appEvents ( #19418 )
...
* Types: Add type safety to appEvents
2019-10-14 09:27:47 +01:00
Łukasz Siatka
f0264ebe43
Explore: updates live button to responsive button
2019-10-11 19:49:56 +02:00
Łukasz Siatka
e2ea2d3050
updated live tailing text
2019-10-11 19:49:56 +02:00
Łukasz Siatka
f8cef9b900
updated live tail button - responsive fold
2019-10-11 19:49:56 +02:00
Łukasz Siatka
33f8b36b44
updated toolbar - added media query for tail buttons
2019-10-11 19:49:56 +02:00
Lukas Siatka
4bd00491bd
Explore: updates clear all button to responsive button ( #19719 )
...
* Explore: updates clear all button to responsive button
* Explore: update toolbar icons alignment
* Explore: adds responsive styles for explore icon alignment
2019-10-10 21:53:02 +02:00
Ivana Huckova
dabc848e11
Explore: Synchronise time ranges in split mode ( #19274 )
...
* Explore: create connected sync button when screen is splitted
* Explore: create attachable button to TimePicker
* WIP/Explore: set up redux boilerplate for synced state
* WIP/Explore: add toggling functionality to sync buttons
* WIP/Explore: Fix styling issue
* First pass solution working
* Explore: Clean up, update comments
* Explore: refactore Timepicker, remove newly introduced class names
* Explore: refactore ExploreTimeControls
* Explore: more semantic variables naming
* Explore: run query on syncable item when synced times activated
* Explore: Add tooltip to sync times button
* Explore: Remove typo
* Explore: check exploreId
* Explore: refactor ExploreTimeControls
* Explore: refactor to include suggested changes
* Explore: Create TimeSyncButton component, update colors
* Explore: Toggle tooltip, use stylesFactory
2019-10-08 18:55:53 +02:00
Andrej Ocenas
5238faf6da
Loki: Fix lookup for label key token ( #19579 )
2019-10-07 19:36:52 +02:00
David
cf7ace6aad
Rename live option in queries ( #19658 )
2019-10-07 14:09:46 +02:00
Andrej Ocenas
16b041608d
Explore: Move data source loader into the select ( #19465 )
2019-10-02 10:15:06 +02:00
Andrej Ocenas
0490dbb88d
Explore: Generate log row uid ( #18994 )
2019-09-30 14:44:15 +02:00
kay delaney
ccba986bc2
Editor: Brings up suggestions menu after clicking suggestion ( #19359 )
2019-09-30 12:41:47 +01:00
Andrej Ocenas
234a2c599d
Refactor: RefreshPicker export things as statics on class ( #19443 )
2019-09-27 10:15:05 +02:00
Ivana Huckova
ff834afdc3
UI: Add orangeDark color to theme ( #19407 )
2019-09-25 18:09:08 +02:00
Hugo Häggmark
889f8e3131
PanelData: Adds timeRange prop to PanelData ( #19361 )
...
* Refactor: Adds newTimeRange property to PanelData
* Refactor: Handles timeRange prop after requests
* Refactor: Makes timeRange mandatory
* Refactor: Adds DefaultTimeRange
2019-09-25 11:19:17 +02:00
Andrej Ocenas
f203e82b40
Explore: Do not send explicit maxDataPoints for logs. ( #19235 )
2019-09-24 16:20:45 +02:00
Andrej Ocenas
6a699af27b
Explore: Refactor mode selection ( #19356 )
2019-09-24 12:19:48 +02:00
kay delaney
c93325cdd8
Chore: Bump typescript to version 3.6.3 ( #19308 )
2019-09-24 10:40:16 +01:00
Andrej Ocenas
b0d6ac5f42
Explore: Refactor live tail controls ( #19328 )
2019-09-24 10:18:34 +02:00
Torkel Ödegaard
08cc4f0c8a
Keybindings: Improve esc / exit / blur logic ( #19320 )
...
* Keybindings: Improve esc / exit / blur logic
* Slight modifications
* removed use of jquery
2019-09-24 09:03:14 +02:00
kay delaney
68d6da77da
Chore: Update Slate to 0.47.8 ( #19197 )
...
* Chore: Update Slate to 0.47.8
Closes #17430
2019-09-23 12:26:05 +01:00
Torkel Ödegaard
bbf2bd18fd
QueryEditor: Clean-up interface to only have one PanelData ( #19249 )
...
* QueryEditor: Clean-up interface to only have one PanelData
* Renamed to prop name to data
2019-09-23 11:13:33 +02:00
srid12
2a1e130000
AlertBox: Merged Alertbox into Alert ( #19212 )
...
* refatoring alert box and using alert
* refactoring alertbox to alert
* Changed default to Error
* added buttonText, onButtonClick, omRemove
* Minor fix to buttons
* fixed onRemove
2019-09-20 13:41:00 +02:00
Andrej Ocenas
bf24cbba76
Explore: live tail UI fixes and improvements ( #19187 )
2019-09-20 13:00:11 +02:00
Dominik Prokop
503dccb771
Revert "Chore: Update Slate to 0.47.8 ( #18412 )" ( #19167 )
...
This reverts commit 601853fc84
.
2019-09-17 13:21:50 +02:00
kay delaney
601853fc84
Chore: Update Slate to 0.47.8 ( #18412 )
...
* Chore: Update Slate to 0.47.8
Closes #17430
* Add slate and immutable to grafana-ui deps
* Fixes some small regressions introduced
* Fix suggestions for multiple query fields
* Pin upgraded dependencies
* Prettier fix
* Remove original slate-react dependency
* Fix tiny-invariant dep
* (Temporarily) comments out source maps for grafana-ui
2019-09-17 13:16:24 +02:00
Andrej Ocenas
359404eb77
Explore: Update live tail buttons ( #19143 )
2019-09-17 11:25:12 +02:00
Dominik Prokop
5c0f424d1b
grafana/data: Reorganise code ( #19136 )
...
* Organise data frame and vectors code
* Organise transformations
* Move dataframe utils to dataframe dir
* Organise datetime utils
* Organise text utils
* Organise logs utils
* Revert "Organise logs utils"
This reverts commit c24115c755
.
* registry -> Registry
* Transformations reorg
2019-09-17 08:23:47 +02:00
Hugo Häggmark
e9f1e86c8e
Fix: Fixes crash using back button with zoomed graph ( #19122 )
...
Fixes : #19114
2019-09-16 14:17:33 +02:00
Torkel Ödegaard
e968a2aa86
DataFrame: Fixes to dealing with empty results ( #19119 )
...
* DataFrame: Fixes to dealing with empty results
* review feedback fixes
2019-09-16 13:02:26 +02:00
Torkel Ödegaard
9d0a076eb1
Explore: calculate intervals when building data source request ( #19107 )
...
* Explore: calculate intervals when building data source request
* Added unit test
* updated unit test
2019-09-16 12:35:39 +02:00
Hugo Häggmark
7ace80c71c
Graph: Adds onHorizontalRegionSelected ( #19083 )
...
* Refactor: Renamed and changed Signature for OnHorizontalRegionSelected
* Refactor: Adds onHorizontalRegionSelected to GraphPanelController
* Refactor: Moves TimeSrv call to PanelChrome instead
2019-09-16 09:31:22 +02:00
David
b392bba745
Loki: Updated cheat sheet with new filter syntax ( #18947 )
...
* Loki: Updated cheat sheet with new filter syntax
- updated cheat sheet with new filter syntax
- added user-specific examples from the user's label set
- added link to LogQL docs
- separated styles for examples (clickable) and expressions
* Review feedback
2019-09-16 07:17:34 +02:00
Andrej Ocenas
d55261aac7
Explore: Move throttling before processing ( #19095 )
2019-09-13 15:32:53 +02:00
Andrej Ocenas
81ec76bdef
Explore: Add throttling when doing live queries ( #19085 )
2019-09-13 10:58:29 +02:00
Hugo Häggmark
076a8fc85c
Explore: Fixes issue with lastResult being null ( #19081 )
2019-09-13 08:13:01 +02:00
Torkel Ödegaard
55717769a3
QueryProcessing: Fixes showing last result in initial loading state ( #19057 )
...
* PanelQueryRunner: Need to cache preProcessPanelData function between runs so last result can be remembered
* Better fix for remembering lastResult
* Code simplification
* Simplify code a bit
2019-09-12 21:42:50 +02:00