* Variables: Allow selection of different variables with the same value
* Variables: Don't modify this key
(cherry picked from commit e48d77b1eb)
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
* RowsToFields: Fix issue with field names that are numbers
* Only add the index accessor if field name does not conflict with it
* fix lint
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
(cherry picked from commit 25813db334)
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
* Logs: Fix using of JSON parser for strings
* Update packages/grafana-data/src/utils/logs.ts
* Update packages/grafana-data/src/utils/logs.ts
* Update parser typing and documentation
(cherry picked from commit 4e1cf7dea7)
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
* Fix filter not working for special characters and allow case sansitive filter control
* Memoize regex
(cherry picked from commit 6201b5b1d9)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
* Text Panel: fixes unnecessary scroll in tables
* uses more robust solution that covers every edge case
* chore: uses variables instead and sets first child margins to zero
* override margin for only h1 and figure elements
* remove override styles for h1,table markdown contents
(cherry picked from commit 51a48e1869)
Co-authored-by: Uchechukwu Obasi <obasiuche62@gmail.com>
These permissions could be created through the API but would not show
correctly in the UI.
(cherry picked from commit 5af96544f3)
Co-authored-by: Jesse Weaver <pianohacker@gmail.com>
* Fix: State timeline tooltip not showing
* Check transformation instead of refId
(cherry picked from commit 7422189a88)
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
* Alerting: Remove invalid Slack URL as we migrate notification channels (#40344)
* Alerting: Remove invalid Slack URL as we migrate notification channels
Grafana will accept any type of utf8 valid string as the Slack URL and will simply fail as we try to deliver the notification of the channel. The Alertmanager will fail to apply a configuration if the URL of the Slack Receiver is invalid.
This change takes that into account by removing the URL for the receiver as we migrate notification channels that do not pass the url validation. As we assume the notification was not being delivered to being with.
* Add a log line when we modify the channel
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
(cherry picked from commit 2448123a65)
* fix tests
Co-authored-by: gotjosh <josue@grafana.com>
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
* Alerting: Fixes a bug when trying to sync broken alertmanager config (#40338)
* Alerting: Fixes a bug when trying to sync broken alertmanager config
Broken alertmanager configuration has the potential to be introduced as part of a migration e.g. due to incompatible data between what grafana accepts and what the Alertmanager expects. When this happens, we expect an eventually consistent behaviour where we'll keep trying to apply the configuration until it works.
As part of change in https://github.com/grafana/grafana/pull/39237 we introduced a regression that modified this behaviour and instead tried to create a new Alertmanager for that organization everytime, which eventually ended up in a panic due to a duplicate metrics being registered.
This PR fixes that and introduces a test to catch further regressions.
* Remove disable orgs
(cherry picked from commit 48d73cb148)
* remove decryptFn that is not known in 8.2 branch
Co-authored-by: gotjosh <josue@grafana.com>
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
* remove return value from addPreferredVisualisationType
* Elasticsearch: send empty series instead when no data is received for a query
(cherry picked from commit b0391d4933)
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
* ReleaseNotes: Updated changelog and release notes for 8.2.1
* Update docs after running prettier:write
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
(cherry picked from commit 2fd869fd02)
* A11y: Fix for Fastpass issues on Profile page
* Chore: small fix
* Chore: fixes the tests
(cherry picked from commit 7706483654)
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>