Ryan McKinley
88b59ae3c7
DataFrames: add utility function to check if structure has changed ( #29006 )
...
* add common flag for knowing if the structure changes
* remove property
* fix test
* fix test
* update comment
* fix jsdoc comments
2020-11-14 18:22:42 -08:00
Torkel Ödegaard
28ce2f12ed
Legend/GraphNG: Refactoring legend types and options ( #29067 )
...
* Legend/GraphNG: Refactoring legend types and options
* Rename label
* Minor update
* Fixed legend placement crash issue
* remove unused
* Minor tweaks and fixes
2020-11-13 17:08:55 +01:00
Hugo Häggmark
1bdcd2f9ab
Chore: Bumps types for jest ( #29098 )
2020-11-13 14:48:11 +01:00
Andrej Ocenas
bbb1f72963
LogsPanel: Fix scrolling in dashboards ( #28974 )
2020-11-13 14:26:29 +01:00
Ivana Huckova
71df15738f
sort alphabetically unique labels, labels and parsed fields ( #29030 )
2020-11-13 14:17:00 +01:00
Torkel Ödegaard
01a4951da0
StatPanel: Fixes hanging issue when all values are zero ( #29077 )
...
* StatPanel: Fixes hanging issue when all values are zero
* Minor tweak
2020-11-13 10:28:03 +01:00
Torkel Ödegaard
a8c417f09d
GraphNG: Adding ticks test dashboard and improves tick spacing ( #29044 )
...
* GraphNG: Adding ticks test dashboard and improves tick spacing
* Added comments
* Trying to trigger CI
* Update
2020-11-12 17:23:05 +01:00
kay delaney
1bb61660f1
Chore: Migrate Dashboard List panel to React ( #28607 )
...
* Chore: Migrate Dashlist to React
Closes #28491
2020-11-12 16:21:09 +00:00
Domas and Arve Knudsen
76df096791
Logging: Log frontend errors ( #28073 )
...
* basic frontend Sentry integration
* backend endpoint to capture sentry events
* WIP!
* log user email for frontend logs
* remove debug logging
* lint fixes
* Fix type exports & property names
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* additional struct naming fix
* rename log endpoint, config section & interface
* add sentry sample rate to config
* refac to use EchoSrv
* log user id
* backend tests
* tests for SentryEchoBackend
* sentry echo backend tests
* CustomEndpointTransport tests
* Update pkg/api/frontend_logging_test.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update conf/defaults.ini
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/api/frontend_logging_test.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* don't export unnecesasrily
* update go.sum
* get rid of Convey in tests, use stdlib
* add sentry config to sample.ini
* cleanup to set orig logging handler in test
* Apply suggestions from code review
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* PR feedback changes
* lock sentry version
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-11-12 12:29:43 +01:00
Torkel Ödegaard
367e7b861b
GraphNG: Fixed axis measurements ( #29036 )
2020-11-11 20:23:46 +01:00
Torkel Ödegaard
040cfe074f
MutableDataFrame: Remove unique field name constraint and values field index and unused/seldom used stuff ( #27573 )
...
* MutableDataFrame needs work
* Updated users of values
* Update test
* Fixed ts issue
* Updated tests
2020-11-11 18:21:51 +01:00
Valentin Agachi and Ivana
2c724e0aa2
Explore: support ANSI colors in live logs ( #28895 )
...
Closes #28893
Co-authored-by: Ivana <ivana.huckova@gmail.com >
2020-11-11 14:58:45 +01:00
Jack Westbrook
6d40206431
Dashboard: remove usage of Legacyforms ( #28707 )
...
* refactor(dashboard): remove usage of legacyform components in sharemodal
* refactor(dashboard): replace legacyform components
* refactor(dashboard): remove ng-if and correct typo in content of sharesnapshot
* feat(grafana-ui): set displayName prop for Switch component
* refactor(dashboard): migrate TimePickerSettings legacyform components
* refactor(queryoptions): migrate switch and input to nextgen components
* refactor(sharesnapshot): prefer InlineFieldRow over gf-form-group
* refactor(shareembed): styling fixes
* refactor(timepickersettings): prefer double bang over nullish coalescing operator
* fix(grafana-ui): switch uses id prop if passed in
* feat: connect labels and switches with ids
2020-11-11 14:52:22 +01:00
David
28383bcfac
TraceViewer: Make sure it does not break when no trace is passed ( #28909 )
...
* TraceViewer: Make sure it does not break when no trace is passed
- exit trace conversion early when there is no trace data
- added test to cover missing trace for trace viewer
* Review feedback
* Use RTL for new test
* Exit early if trace or traceID is not there
2020-11-11 12:10:12 +01:00
Torkel Ödegaard
145901c0db
Thresholds: Fixes color assigned to null values ( #29010 )
...
* Thresholds: Fixes color assigned to null values
* Updates
2020-11-11 11:57:55 +01:00
Ivana Huckova
812f588a75
Logs Panel: Fix inconsistent higlighting ( #28971 )
...
* Highlight filter expression in panel
* Remove coonsole.log
2020-11-11 09:58:21 +01:00
Torkel Ödegaard
10f226c4c2
StatPanels: Fixes auto min max when latest value is zero ( #28982 )
2020-11-11 07:43:56 +01:00
Andrej Ocenas
b90304cc79
LogsPanel: Don't show scroll bars when not needed ( #28972 )
2020-11-10 16:12:15 +01:00
Torkel Ödegaard
91eac6e7af
StatPanel: Fixed center of values in edge case scenarios ( #28968 )
2020-11-10 15:38:25 +01:00
Torkel Ödegaard
83042cc4b7
GraphNG: Restore focus option ( #28946 )
...
* GraphNG: Restore focus option
* Update snapshot
2020-11-09 21:12:22 +01:00
Torkel Ödegaard
71fffcb17c
GraphNG: Using new VizLayout, moving Legend into GraphNG and some other refactorings ( #28913 )
...
* Graph refactorings
* Move legend to GraphNG and use new VizLayout
* Things are working
* remove unused things
* Update
* Fixed ng test dashboard
* Update
* More refactoring
* Removed plugin
* Upgrade uplot
* Auto size axis
* Axis scaling
* Fixed tests
* updated
* minor simplification
* Fixed selection color
* Fixed story
* Minor story fix
* Improve x-axis formatting
* Tweaks
* Update
* Updated
* Updates to handle timezone
* Updated
* Fixing types
* Update
* Fixed type
* Updated
2020-11-09 15:31:03 +01:00
Dominik Prokop
2ddda8f452
Plugins signing: Fix docs urls ( #28930 )
2020-11-09 13:32:48 +01:00
Dominik Prokop and Torkel Ödegaard
2ea4a36bf7
Field color: handling color changes when switching panel types ( #28875 )
...
* FieldColor: Per panel settings to filter out supported modes
* Updates
* Updated solution
* Update panel plugin API for standard options support
* Update FieldColorConfigSettings interface
* Change color mode correctly when changing plugin type
* Render only applicable color modes in field color config editor
* Apply field config API changes
* TS fixes
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2020-11-09 13:11:09 +01:00
Alex Khomenko
1d7fda4db6
Grafana-UI: LoadingPlaceholder docs ( #28874 )
...
* Refactor props
* Add docs
2020-11-09 09:25:07 +02:00
Marcus Andersson
3697b628a7
Gauge: making sure threshold panel json is correct before render ( #28898 )
...
* making sure we work with a proper data structure.
* added test to verify functionality.
* removed unused variables.
2020-11-09 08:23:07 +01:00
Ryan McKinley
7308028a90
PanelHeader: show streaming indicator (and allow unsubscribe) ( #28682 )
2020-11-05 08:03:34 -08:00
Torkel Ödegaard
0a27929100
VizLayout: Simple viz layout component for legend placement and scaling ( #28820 )
...
* Updates
* Updated
* Rename slot to legend
* Updated
* Adding js doc comments
* hide horizontal track
* Fix docs error
* Added another export
* removing auto mode
* I hate these doc warnings
2020-11-05 13:29:56 +01:00
9b90ff2961
Disable selecting enterprise plugins with no license ( #28758 )
...
* Add unlicensed property to plugins
* Disable selecting unlicensed plugin
* Add customizable plugin market place url
* License: workaround enabled only in enterprise
* linter
* Move licensing info to front end
* Update pkg/services/licensing/oss.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/services/licensing/oss.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/setting/setting.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/setting/setting.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/api/frontendsettings.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update sample.ini
* Update docs
* Update packages/grafana-runtime/src/config.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
* Update public/app/features/datasources/state/buildCategories.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
* Update pkg/api/frontendsettings.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Update pkg/setting/setting.go
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
* Fix spelling
Co-authored-by: Leonard Gram <leo@xlson.com >
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
2020-11-05 12:55:40 +02:00
Marcus Andersson
abe96f4f89
Units: added support to handle negative fractional numbers. ( #28849 )
2020-11-05 10:40:52 +01:00
Hugo Häggmark
e54fc47462
Variables: Adds variables inspection ( #25214 )
...
* Chore: initial commit
* Refactor: adds usages
* Refactor: adds FeatureInfoBox
* Refactor: uses graphs instead
* Refactor: adds id, name, title to prop instead of key
* Refactor: adds usages to VariablesList
* Refactor: Moves unknowns to first page
* Refactor: minor stylings and icons
* Refactor: styling
* Refactor: changed to button with modal
* Refactor: adds VariablesDependenciesButton
* Refactor: changes after UX feedback
* Refactor: renames heading
* Refactor: changes after PR comments
* Refactor: small changes after PR comments
2020-11-05 09:53:27 +01:00
Torkel Ödegaard
c3ed644f66
Marked: Upgrade and always sanitize by default ( #28796 )
...
* Marked: Upgrade and always sanitize by default
* Added test
* corrected text panel logic
2020-11-05 09:40:12 +01:00
Daniel Lizardo
2f77e611cb
Currency: add Philippine peso currency (PHP) ( #28823 )
2020-11-05 09:06:08 +01:00
Torkel Ödegaard
9dd37f1e1b
Alert: Remove z-index on Alert component so that it does not overlay ontop of other content ( #28834 )
2020-11-04 20:27:43 +01:00
Torkel Ödegaard
2b7a570273
Gauge: Improve font size auto sizing ( #28797 )
...
* Gauge: Improved font size calculations
* Added some comments
* update
* Moving to variable
2020-11-04 17:07:37 +01:00
Dominik Prokop
5916ef94d0
grafana/toolkit: allow builds with lint warnings ( #28810 )
...
* grafana/toolkit: allow builds with lint warnings
* Remove redundant code
2020-11-04 13:51:23 +01:00
Dominik Prokop
4eeac69b29
core and grafana/toolkit: Use latest version of grafana-eslint-conifg ( #28816 )
2020-11-04 13:50:50 +01:00
Ivana Huckova
0f7a470138
Icon: Replace font awesome icons where possible ( #28757 )
...
* Replace font awesome icons where possible
* Implement small updates
2020-11-04 13:34:40 +01:00
jedstar and Diana Payton
77f6c241b1
StatPanels: Add new calculation option for percentage difference ( #26369 )
...
* Update fieldReducer.ts
addition of percentage difference to the singlestat panel
* Update time_series2.ts
* Update module.ts
* Update calculations-list.md
* Update docs/sources/panels/calculations-list.md
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update public/app/plugins/panel/singlestat/module.ts
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
* Update module.ts
* Update calculations-list.md
* Update calculations-list.md
* Update module.ts
* Update fieldReducer.ts
* Update fieldReducer.ts
* Update fieldReducer.test.ts
* change name to remove wildcard characters
* Update calculations-list.md
* Update time_series2.ts
Fix spelling
* Update module.ts
* Update fieldReducer.ts
* formatting
* Update fieldReducer.ts
* Update fieldReducer.test.ts
* Update fieldReducer.test.ts
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com >
2020-11-04 10:19:23 +01:00
Tushar Tripathi
38bd6dd153
Dashboard: Add Datetime local (No date if today) option in panel axes' units ( #28011 )
...
* Add Datetime local (No date if today) option
* Add more tests
* Revert to using function for local dateTime format
This is required as Intl api used to convert date to local format is not present in
node environments
2020-11-04 10:13:45 +01:00
Dominik Prokop
a9e201332a
grafana/toolkit: Drop console and debugger statements by default when building plugin with toolkit ( #28776 )
2020-11-04 09:06:13 +01:00
Dominik Prokop and Arve Knudsen
1f36e377e2
Adds storybook integrity check to drone config ( #28785 )
...
* Adds storybook integrity check to dron config
* Update starlark files
* Review comments
* Bump grabpl version
* Drone: Fix dangling dependency
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-11-03 18:34:45 +01:00
Torkel Ödegaard
5a11abe954
Events: Remove unused or unnecessary events ( #28783 )
...
* Events: Removing unused or unnessary events
* More cleanup
* Updated
2020-11-03 15:29:43 +01:00
Marcus Andersson
212bf7a4f6
Docs: added code comments to frontend packages. ( #28784 )
...
* fixed docs linting errors.
* decreased the limit.
2020-11-03 14:54:14 +01:00
Arve Knudsen
8954130f1a
Plugin Dockerfiles: Upgrade Go, golangci-lint, gcloud SDK ( #28767 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-11-03 14:07:19 +01:00
Torkel Ödegaard
74c65eca26
EventBus: Introduces new event bus with emitter backward compatible interface ( #27564 )
...
* updated
* Experimenting with event bus with legacy support
* Before switch to emitter
* EventBus & Emitter unification
* Everything using new EventBus
* Making progress
* Fixing merge issues
* Final merge issues
* Updated
* Updates
* Fix
* Updated
* Update
* Update
* Rename methods to publish and subscribe
* Ts fixes
* Updated
* updated
* fixing doc warnigns
* removed unused file
2020-11-03 13:08:54 +01:00
Peter Holmberg
d84d8a134f
ColorSchemes: Add new color scheme ( #28719 )
2020-11-03 12:55:24 +01:00
Dominik Prokop
651ab5677c
grafana/toolkit: Extract CHANGELOG when building plugin ( #28773 )
2020-11-03 11:13:10 +01:00
Arve Knudsen
0490b32790
Drone: Upgrade build pipeline tool ( #28769 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com >
2020-11-03 10:34:48 +01:00
Peter Holmberg
cfbbab9bd8
Docs: Add docs for InfoBox component ( #28705 )
...
* add mdx
* fixes after pr feedback
2020-11-03 09:07:12 +01:00
Jack Westbrook
f519f89103
Migration: Remove LegacyForms from dashboard folder permissions ( #28564 )
...
* refactor(permissionlist): replace legacyform components with next-gen equivalents
* refactor(permissionlist): replace legacyform components
* refactor(permissionlist): clean up PermissionsInfo
* feat(grafana-ui): define line-height for Select option descriptions
* refactor(permissionlist): remove debug code
* refactor(permissionlist): simplify component tree with horizontalgroup. Add label
* refactor(permissionlist): remove redundant classname from Select
2020-11-02 12:55:34 +01:00