Agnès Toulet
8835020457
Feature Highlights: add RS event for nav items ( #45470 )
2022-02-17 14:20:37 +01:00
Artur Wierzbicki
3e53a08090
#44449 : hide dashboard preview admin UI ( #45493 )
2022-02-17 12:34:07 +04:00
Ryan McKinley
bb86ba99ee
Heatmap: new panel based based on uPlot ( #44080 )
...
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2022-02-16 14:49:17 -08:00
Ryan McKinley
685ec5383e
Chore: avoid pointer events in viz tooltip ( #45492 )
2022-02-16 13:52:39 -08:00
Artur Wierzbicki
6c76aa71e8
Previews: capability check ( #44601 )
...
* add SQL migrations
* dashboard previews from sql: poc
* added todos
* refactor: use the same enums where possible
* use useEffect, always return json
* added todo
* refactor + delete files after use
* refactor + fix manual thumbnail upload
* refactor: move all interactions with sqlStore to thumbnail repo
* refactor: remove file operations in thumb crawler/service
* refactor: fix dashboard_thumbs sql store
* refactor: extracted thumbnail fetching/updating to a hook
* refactor: store thumbnails in redux store
* refactor: store thumbnails in redux store
* refactor: private'd repo methods
* removed redux storage, saving images as blobs
* allow for configurable rendering timeouts
* added 1) query for dashboards with stale thumbnails, 2) command for marking thumbnails as stale
* use sql-based queue in crawler
* ui for marking thumbnails as stale
* replaced `stale` boolean prop with `state` enum
* introduce rendering session
* compilation errors
* fix crawler stop button
* rename thumbnail state frozen to locked
* #44449 : fix merge conflicts
* #44449 : remove thumb methods from `Store` interface
* #44449 : clean filepath, defer file closing
* #44449 : fix rendering.Theme cyclic import
* #44449 : linting
* #44449 : linting
* #44449 : mutex'd crawlerStatus access
* #44449 : added integration tests for `sqlstore.dashboard_thumbs`
* #44449 : added comments to explain the `ThumbnailState` enum
* #44449 : use os.ReadFile rather then os.Open
* #44449 : always enable dashboardPreviews feature during integration tests
* #44449 : add /previews/system-requirements API
* #44449 : remove sleep time, adjust number of threads
* #44449 : review fix: add `orgId` to `DashboardThumbnailMeta`
* #44449 : review fix: automatic parsing of thumbnailState
* #44449 : update returned json
* #44449 : UI changes - dashboard previews sytem req check
* #44449 : lint fixes
* #44449 : fix tests
* #44449 : typo
* #44449 : fix getSystemRequirements API: return 200 even if we plugin version is invalid
* #44449 : fix getSystemRequirements API: don't return SemverConstraint on error
* #44449 : fix getSystemRequirements API
* #44449 : fix previews sytem requirements text
* #44449 : add `doThumbnailsExist` to repo
* #44449 : remove redux api
* #44449 : add missing model
* #44449 : implement frontedsettings-driven capability check
* #44449 : simplify
* #44449 : revert test changes
* #44449 : add dummy setup settings
* #44449 : implicit typing over `FC<Props>`
* #44449 : refactor conditionals
* #44449 : replace `getText` with a react component
* #44449 : fix component interface
* #44449 : add onRemove to `PreviewsSystemRequirements` alert
* #44449 : add bottom/top margin to previewSystemRequirements modal
* #44449 : merge conflict fix
* #44449 : remove console.log
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
2022-02-16 21:49:50 +04:00
Dan Cech
51cd6f3cc5
Configuration: Add ability to customize okta login button name and icon ( #44079 )
...
* add ability to customize okta login button name and icon
* update configs, add basic frontend test
* add icon to oauth settings type
* trigger tests
* fix typecheck
2022-02-16 11:35:00 -05:00
Torkel Ödegaard
2b9e46d1f8
Angular: Option to disable angular support and isolate angular dependencies ( #45421 )
...
* Angular: Initial setting that disables angular, load angular support in separate chunk
* Load angular panels on demand
* Load alerting in separate chunk only when angularSupportEnabled
* progress, do not export core_module if angular disabled
* Progress
* Update public/app/features/plugins/built_in_plugins.ts
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* Removing remaining usage of angular from outside angular app (not counting plugins)
* Update config and docs
* Fix sample.ini
* Update public/app/features/alerting/AlertTab.tsx
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
* Fixing prettier issue
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2022-02-16 17:14:33 +01:00
Torkel Ödegaard
cfa24a3cfb
Prometheus: Auto legend handling ( #45367 )
...
* Legend editor is working
* It's working
* Progress on auto legend mode
* Fixes
* added unit tests
* Added go tests
* Fixing tests
* Fix issue with timing and internal state
* Update public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryCodeEditor.tsx
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2022-02-16 14:06:33 +01:00
Hugo Häggmark
ae8c8a2910
Chore: Replace enzyme with RTL ( #45434 )
2022-02-16 00:49:06 -08:00
Hugo Häggmark
6584735bef
Chore: Replaces enzyme with RTL in ConfirmButton.test.tsx ( #45435 )
2022-02-16 09:46:46 +01:00
Ryan McKinley
d665306ad1
Search: add feature flag and basic service ( #45112 )
...
Co-authored-by: Artur Wierzbicki <artur@arturwierzbicki.com>
2022-02-15 10:26:03 -08:00
Sofia Papagiannaki
d718ee1918
SQLStore: Prevent concurrent migrations ( #44101 )
...
* SQLStore: Prevent concurrent migrations
* Hide behind a feature toggle
* Configurable locking attempt timeout
* Update docs/sources/administration/configuration.md
Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-02-15 18:54:27 +02:00
Ivana Huckova
6a828a051a
Logs: Fix LogDetailsRow tests that produced console errors ( #45388 )
...
* Fix LogDetailsRow tests that produced console errors
* Use div instead of wrapping with table
* Use div instead of wrapping with table
2022-02-15 14:06:24 +01:00
Gábor Farkas
a612087c63
loki: remove fullRangeLogsVolume feature flag ( #45286 )
2022-02-15 09:05:03 +01:00
Marcus Andersson
9a12b3ea00
TemplateSrv: exposing a function to detect if a target contains a template ( #45214 )
...
* exposing a function to check if a target contains variables.
* fixed tests.
* renamed function
* updated betterer result.
2022-02-15 08:53:42 +01:00
kay delaney
10cc2fd6bc
Chore: Add types for OAuth settings in config ( #45247 )
2022-02-11 13:54:24 +00:00
Hugo Häggmark
5f043e6106
Chore: Fix test import ( #45271 )
2022-02-11 11:24:27 +01:00
Victor Marin
a12f2e1d19
TablePanel: Do not prefix columns with frame name if multiple frames and override active ( #45174 )
...
* Fix bug where table panel shows column names prefixed with frame name
* simplify && fix tests
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2022-02-11 11:47:48 +02:00
Alexander Kubyshkin
4d0a37baed
Fix issue with undo history in query field when suggestion inserted ( #28656 ) ( #39114 )
2022-02-11 09:26:35 +01:00
Artur Wierzbicki
0276b029fc
Previews: crawler as a background service ( #44891 )
...
* add SQL migrations
* dashboard previews from sql: poc
* added todos
* refactor: use the same enums where possible
* use useEffect, always return json
* added todo
* refactor + delete files after use
* refactor + fix manual thumbnail upload
* refactor: move all interactions with sqlStore to thumbnail repo
* refactor: remove file operations in thumb crawler/service
* refactor: fix dashboard_thumbs sql store
* refactor: extracted thumbnail fetching/updating to a hook
* refactor: store thumbnails in redux store
* refactor: store thumbnails in redux store
* refactor: private'd repo methods
* removed redux storage, saving images as blobs
* allow for configurable rendering timeouts
* added 1) query for dashboards with stale thumbnails, 2) command for marking thumbnails as stale
* use sql-based queue in crawler
* ui for marking thumbnails as stale
* replaced `stale` boolean prop with `state` enum
* introduce rendering session
* compilation errors
* fix crawler stop button
* rename thumbnail state frozen to locked
* #44449 : fix merge conflicts
* #44449 : remove thumb methods from `Store` interface
* #44449 : clean filepath, defer file closing
* #44449 : fix rendering.Theme cyclic import
* #44449 : linting
* #44449 : linting
* #44449 : mutex'd crawlerStatus access
* #44449 : added integration tests for `sqlstore.dashboard_thumbs`
* #44449 : added comments to explain the `ThumbnailState` enum
* #44449 : use os.ReadFile rather then os.Open
* #44449 : always enable dashboardPreviews feature during integration tests
* #44449 : remove sleep time, adjust number of threads
* #44449 : review fix: add `orgId` to `DashboardThumbnailMeta`
* #44449 : review fix: automatic parsing of thumbnailState
* #44449 : lint fixes
* #44449 : crawler as a background service v0.1
* #44449 : use ServerLockService
* #44449 : use ServerLockService
* #44449 : review fix: prefer `WithDbSession` over `WithTransactionalDbSession`
* #44449 : review fix: add a comment explaining source of the filepath
* #44449 : review fix: added filepath validation
* #44449 : fix FindDashboardsWithStaleThumbnails to include `theme` and `kind` in search params
* #44449 : fix FindDashboardsWithStaleThumbnails to include `theme` and `kind` in search params
* #44449 : create function for crawler on demand
* #44449 : improve crawler logging
* #44449 : fix wire
* #44449 : uncomment dummy thumb service, fix ticker interval
* #44449 : prevent race condition
* #44449 : improve logging
* #44449 : fix theme
* #44449 : review fixes https://github.com/grafana/grafana/pull/45063/files @fzambia
* #44449 : add missing unlock
* #44449 : merge
* #44449 : review fix - logger @fzambia https://github.com/grafana/grafana/pull/45063/files
* #44449 : formatting
* #44449 : merge conflict fix
* #44449 : merge conflict fix
* #44449 : merge conflict fix
* #44449 : naming fix
* #44449 : update authOpts
* #44449 : change authOpts.role back to admin
* #44449 : fix `walk` signature, move ctx to a first argument
* #44449 : add `dashboardPreviewsScheduler` feature flag
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
2022-02-10 22:45:00 +04:00
Leon Sorokin
586b89f776
Thresholds: fix crash when trying to render zero-height base thresholds ( #45256 )
2022-02-10 18:49:30 +01:00
Jack Westbrook
979907e9dd
Chore: Set tsconfig target to ES6 ( #44842 )
...
* chore(tsconfig): update grafana/tsconfig to 1.2.0 for outputting es6
* rewrote the unsubscription part to use first().
* test: update failing tests to work with es6 output
* removed bug where we dispatch a promise instead of an array of ritch history.
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2022-02-10 14:37:39 +01:00
Torkel Ödegaard
374681b546
Popovers: Improve contrast by darkening shadow and changing border to medium ( #45136 )
...
* Popovers: Improve contrast by darkening shadow and changing border to medium
* Updated sass theme
* Revert back to weak border
2022-02-10 13:52:23 +01:00
Ashley Harrison
e48baefd32
Adjust menu positioning ( #45217 )
2022-02-10 11:48:05 +00:00
Ashley Harrison
947b8b8d3b
Chore: Remove menuShouldPortal
deprecation warning ( #45211 )
...
* Chore: Remove Select deprecation
* remove unused import
* Update lockfile
2022-02-10 11:46:35 +00:00
Torkel Ödegaard
f2795981c6
Prometheus: Fix test warnings ( #45206 )
2022-02-10 12:23:56 +01:00
renovate[bot]
14c639fdb5
Update dependency css-loader to v6.6.0 ( #44764 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-10 10:26:31 +00:00
Hugo Häggmark
192572174e
Chore: Removes console output LogDetails.test.tsx and refactors to RTL ( #45193 )
2022-02-10 11:06:29 +01:00
Ryan McKinley
1bdbc3abdf
ContextMenu: make focus on open optional ( #45170 )
2022-02-09 20:43:08 +01:00
Joey Tawadrous
10232c7857
InfluxDB: backend migration (run query in explore) ( #43352 )
...
* InfluxDB backend migration
* Multiple queries and more
* Added types
* Updated preferredVisualisationType
* Updated model parser test to include limit,slimit,orderByTime
* Added test for building query with limit, slimit
* Added test for building query with limit, slimit, orderByTime and puts them in the correct order
* Add test: Influxdb response parser should parse two responses with different refIDs
* Moved methods to responds parser
* Add test to ensure ExecutedQueryString is populated
* Move functions out of response parser class
* Test for getSelectedParams
* Merge cases
* Change to const
* Test get table columns correctly
* Removed unecessary fields
* Test get table rows correctly
* Removed getSeries function
* Added test for preferredVisualisationType
* Added test for executedQueryString
* Modified response parser
* Removed test
* Improvements
* Tests
* Review changes
* Feature flag rename and code gen
2022-02-09 18:26:16 +00:00
Hugo Häggmark
e806011a77
Chore: Removes console outputs from Cascader.test.tsx ( #45142 )
2022-02-09 14:40:28 +01:00
Hugo Häggmark
f9bb0832ce
Chore: Removes console outputs in FieldCache.test.ts ( #45141 )
2022-02-09 14:30:19 +01:00
Hugo Häggmark
0282d5f9c3
Chore: Remove console output in ErrorBoundary.test.tsx ( #45138 )
2022-02-09 13:45:36 +01:00
Torkel Ödegaard
7c0b453e19
Tooltips: Make tooltips non interactive by default ( #45053 )
...
* Tooltips: Make tooltips non interactive by default
* More updates and cleanup
* Update
* Make time range picker tooltip interactive
* Fix issue
* Trying to make Receivers test faster
* Make JSONCell tooltip interactive
2022-02-08 22:58:20 +01:00
Brian Gann
e3dd5cdc51
bump to version 1.3.1 ( #45101 )
2022-02-08 20:00:11 +01:00
Atif Shoukat Ali
d8795d8a32
Chore: update node version for grafana-plugin-ci-e2e ( #45036 )
2022-02-08 08:45:00 -08:00
Kristina
4e38ac9cf7
Remove return to panel button and related code ( #45018 )
2022-02-08 10:20:22 -06:00
renovate[bot]
834d11691f
Update dependency core-js to v3.21.0 ( #44734 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 16:19:20 +00:00
Andrej Ocenas
a58e6ab622
TraceView: refactor UI components injection ( #44289 )
...
* Remove UIDivider
* Update TracePageSearchBar buttons
* Remove UIButton
* Remove UIInput
* Remove LoadingIndicator
* Remove UIIcon
* Remove UITooltip
* Remove UIDropdown
* Remove UIMenu
2022-02-08 17:14:33 +01:00
Dominik Prokop
ffea53f2f6
TimeSeries: Add support for negative Y and constant transform ( #44774 )
...
* add negative y config
* Handle negative y and constant transform in Timeseries panel
* Typechecks
* Add migration from old graph panel
* Docs update
* Revert "Add migration from old graph panel"
This reverts commit 33b5a90b66
.
* Revert VizLegendItem changes
* Automatically separate positive and negative stacks within a group
* Update packages/grafana-ui/src/components/VizLegend/VizLegend.story.tsx
* Remove SeriesLabel component
* Update docs/sources/visualizations/time-series/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/visualizations/time-series/_index.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Leftover reverts
* Don't crate bands (for now0 for negative -y stack
* Add docs note about transform being only available as an override
* Fill negative bands in reversed direction
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-02-08 07:27:02 -08:00
Kristina
c5f0701707
Reduce spacing for Explore/Logs switches ( #44935 )
2022-02-08 08:21:34 -06:00
renovate[bot]
8012dea737
Update babel monorepo to v7.17.0 ( #44973 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 14:08:32 +01:00
Sofia Papagiannaki
35fe58de37
API: Extract OpenAPI specification from source code using go-swagger ( #40528 )
...
* API: Using go-swagger for extracting OpenAPI specification from source code
* Merge Grafana Alerting spec
* Include enterprise endpoints (if enabled)
* Serve SwaggerUI under feature flag
* Fix building dev docker images
* Configure swaggerUI
* Add missing json tags
Co-authored-by: Ying WANG <ying.wang@grafana.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2022-02-08 13:38:43 +01:00
renovate[bot]
9c2363ef08
Update dependency rollup to v2.67.1 ( #44750 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-08 12:18:11 +00:00
Jack Westbrook
b409811005
Toolkit: Bump react-dev-utils to 12.0.0 ( #44696 )
...
* chore: bump react-dev-utils due to vulnerbility reports
* chore(yarn): update checksum, remove react-dev-utils packageExtensions
2022-02-08 12:36:59 +01:00
Leon Sorokin
d0bc3b10bf
Chore: uPlot 1.6.19 ( #45037 )
2022-02-08 00:44:10 -08:00
Agnès Toulet
bdac6576e4
Feature Highlights: add highlight to toolbar button and add upgrade modal ( #44645 )
...
* Feature Highlights: add highlight to toolbar button and add upgrade modal
* replace hideTitle attribute by making title optional
* update modal design
* remove unused updates
2022-02-07 16:04:15 +01:00
renovate[bot]
f4b13f7d04
Update dependency react-calendar to v3.7.0 ( #44984 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-07 15:46:33 +01:00
Ivana Huckova
2250c229d6
Prometheus: Add multi-word search and higlight to metric selector ( #44906 )
...
* Prometheus: Add multi-word search and higlight to metric selector
* Remove redundant test
* Remove redundant test id
* Update PromQueryBuilder test
* Match only words split with space
2022-02-07 15:18:17 +01:00
renovate[bot]
a8e9369084
Update Monthly patch updates ( #44686 )
...
* Update Monthly patch updates
* Remove 3 troublesome packages...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-02-07 13:08:10 +00:00