Hong
2c898ab1bc
Fix README typo ( #29219 )
...
What this PR does / why we need it:
Fix typo in grafana-toolkit README
Which issue(s) this PR fixes:
None.
Special notes for your reviewer:
2020-11-19 10:55:52 +02:00
Alex Khomenko and kay delaney
2c4899a4cd
Grafana UI: Card API refactor ( #29034 )
...
* Refactor API
* Fix types
* Cleanup
* Remove useMemo
* Update actions
* Update story
* Align secondary actions
* Replace snapshot tests
* Update docs
* Update packages/grafana-ui/src/components/Card/Card.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
* Allow overriding child props
* Fix types and remove alpha tags
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
2020-11-19 09:48:56 +02:00
Torkel Ödegaard and Jack Westbrook
ec218de05e
React: Upgrading react to v17, wip ( #29057 )
...
* React: Upgrading react, wip
* build(grafana-ui): bump react to v17
* build: get enzyme running with react 17
* chore(grafana-ui): declare isMemo namedExport for rollup
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com >
2020-11-18 19:37:17 +01:00
Piotr G and Torkel Ödegaard
ab2a46bcb3
Gauge: Tweaks short value auto-sizing ( #29197 )
...
* Tweaks gauge value auto-sizing
* tweak factor a bit
Co-authored-by: Torkel Ödegaard <torkel@grafana.com >
2020-11-18 18:38:57 +01:00
Ryan McKinley
d85d547ab3
BackendSrv: support binary responseType like $http did ( #29004 )
2020-11-18 09:35:28 -08:00
Ryan McKinley
1895626080
GraphNG: update the options config ( #28917 )
2020-11-18 08:46:44 -08:00
Dominik Prokop
0cfb967404
ESlint: React fixes part 1 ( #29062 )
...
* Eslint: allign with latest grafana-eslint-config
* fix ts
* Fix react/jsx-key
* Fix react/no-children-prop
* Fix react/jsx-no-target-blank
2020-11-18 15:36:35 +01:00
Hugo Häggmark
4b711372c5
Tests: Adds expects for observables ( #28929 )
...
* Tests: Adds expects for observables
* Refactor: renames matcher
* Chore: changed jest version and removed as dev dependency
* Refactor: Changes after PR review
* wip
* Chore: revert
* Chore: Adds jest-matcher-utils
* Chore: fixed merge error
* Tests: Removed inline snapshots as they are env dependent
* Tests: missed a snapshot
* Refactor: Removed type file after PR comments
2020-11-18 15:18:55 +01:00
Hugo Häggmark
112a755e18
Variables: Adds new Api that allows proper QueryEditors for Query variables ( #28217 )
...
* Initial
* WIP
* wip
* Refactor: fixing types
* Refactor: Fixed more typings
* Feature: Moves TestData to new API
* Feature: Moves CloudMonitoringDatasource to new API
* Feature: Moves PrometheusDatasource to new Variables API
* Refactor: Clean up comments
* Refactor: changes to QueryEditorProps instead
* Refactor: cleans up testdata, prometheus and cloud monitoring variable support
* Refactor: adds variableQueryRunner
* Refactor: adds props to VariableQueryEditor
* Refactor: reverted Loki editor
* Refactor: refactor queryrunner into smaller pieces
* Refactor: adds upgrade query thunk
* Tests: Updates old tests
* Docs: fixes build errors for exported api
* Tests: adds guard tests
* Tests: adds QueryRunner tests
* Tests: fixes broken tests
* Tests: adds variableQueryObserver tests
* Test: adds tests for operator functions
* Test: adds VariableQueryRunner tests
* Refactor: renames dataSource
* Refactor: adds definition for standard variable support
* Refactor: adds cancellation to OptionPicker
* Refactor: changes according to Dominiks suggestion
* Refactor:tt
* Refactor: adds tests for factories
* Refactor: restructuring a bit
* Refactor: renames variableQueryRunner.ts
* Refactor: adds quick exit when runRequest returns errors
* Refactor: using TextArea from grafana/ui
* Refactor: changed from interfaces to classes instead
* Tests: fixes broken test
* Docs: fixes doc issue count
* Docs: fixes doc issue count
* Refactor: Adds check for self referencing queries
* Tests: fixed unused variable
* Refactor: Changes comments
2020-11-18 15:10:32 +01:00
Dominik Prokop
5ae7280249
Introduce eslint-plugin-react ( #29053 )
...
* Eslint: allign with latest grafana-eslint-config
* fix ts
* Bump @grafana-eslint-congig version
2020-11-18 14:19:33 +01:00
Dominik Prokop
05fbc614bd
Refactor declarative series configuration to a config builder ( #29106 )
...
* Wip: refactor declarative series configuration to a config builder
* Fix plugins initialization
* Config builder reorg and tests
* Typecheck
* Update packages/grafana-ui/src/components/uPlot/context.ts
* Scales config tweak
* Temp disable tests
* Disable some tests temporarily
2020-11-18 11:14:24 +01:00
Dominik Prokop
f28ba27ca2
Table: Fix incorrect condtition for rendering table filter ( #29165 )
2020-11-18 08:46:40 +01:00
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