Commit Graph

37448 Commits

Author SHA1 Message Date
Domas
9dd4eab553 ignore non-actionable errors in grafana agent (#54824) 2022-09-08 16:19:38 +03:00
Laura Fernández
c684babecc A11y: Make tooltip dismissible in Toolbar and Icon buttons (#54586) 2022-09-08 14:32:50 +02:00
GitStart
e9243f8a38 Loki: Rename public/app/plugins/datasource/loki/language_provider.ts file to follow convention (#54819) 2022-09-08 14:32:32 +02:00
Ezequiel Victorero
76edf1a727 PublicDashboards: Fix flaky e2e test (#54864) 2022-09-08 09:18:40 -03:00
Tima Gixe
8fb0d3421b Storybook: Add controls to UnitPicker (#54694) 2022-09-08 13:16:27 +01:00
Shirley
bdd0af0645 Build: Refactor cron_job_pipeline to take the cron name as a parameter (#54899) 2022-09-08 13:36:36 +02:00
Konrad Lalik
933ec4817f Alerting: Change the rule yaml data to reflect Prom-based rule format (#54520) 2022-09-08 12:52:36 +02:00
Jo
ef245874da OAuth: Allow assigning Server Admin (#54780)
* extract errors to errors file

* implement oauth server admin assignment

* add server admin tests

* deduplicate autoAssignOrgRole

* deduplicate strict setting

* deduplicate strict setting

* add support for generic oauth

* add role attribute strict support for generic oauth

* add support for github/gitlab

* assignGrafanaAdmin option is here to stay

* unify similar errors

* add config option

* add okta server admin mapping

* remove never used Company attribute

* unify generic oauth role extract with other methods

* case insensitive role match as in azure

* add ini settings

* add server admin to devenv

* remove duplicate fields

* add documentation to oauth

* fix titlecase test

* implement doc feedback
2022-09-08 06:11:00 -04:00
Artur Wierzbicki
1353177e15 Search: Add substring matcher (#54813)
* search: bring back substring search

* lint fix

* search: bring back ngram

* search: bring back ngram

* search: more tests
2022-09-08 12:10:30 +02:00
Carl Bergquist
b4e3c89f60 instrumentation: dont instrument ErrSkip at all (#54880)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2022-09-08 11:14:55 +02:00
Sven Grossmann
78a3f1fcea Chore: Upgrade @grafana/lezer-logql to 0.1.0 (#54878) 2022-09-08 10:29:58 +02:00
Joe Blubaugh
a101d127cb CI: Update Drone MySQL version to 5.7.39 to match database policy. (#54612)
The supported database policy is listed at: https://grafana.com/docs/grafana/latest/setup-grafana/installation/#supported-databases
2022-09-08 15:03:02 +08:00
Ezequiel Victorero
bcab0194f1 PublicDashboards: disable form if user does not has permissions (#54853) 2022-09-07 18:29:01 -03:00
matt abrams
9c88360ec5 change no-new-info label action (#54501) 2022-09-07 14:37:42 -05:00
Adela Almasan
5a3ae293cf Geomap: Layer types e2e (#54666) 2022-09-07 13:29:03 -05:00
Christopher Moyer
5b830e131e adjusts access control directory structure (#54865) 2022-09-07 13:27:32 -05:00
owensmallwood
108678a8cc Public Dashboards: Only use queries from dashboard for caching (#54596)
Don't accept frontend queries for query caching when its from a public dashboard. Use queries on the dashboard instead.
2022-09-07 12:08:52 -06:00
Leon Sorokin
4223d3a6a7 Heatmap: Add option to reverse color scheme (#54365) 2022-09-07 11:09:44 -05:00
Matthew Jacobson
940d18ad57 Alerting: Sanitize invalid label/annotation names for external alertmanagers (#54537)
* Alerting: Sanitize invalid label/annotation names for external alertmanagers

Grafana's built-in Alertmanager supports both Unicode label keys and values; however, if using an external
Prometheus Alertmanager label keys must be compatible with their data model.
This means label keys must only contain ASCII letters, numbers, as well as underscores and match the regex
`[a-zA-Z_][a-zA-Z0-9_]*`.

Any invalid characters will now be removed or replaced by the Grafana alerting engine before being sent to
the external Alertmanager according to the following rules:

- `Whitespace` will be removed.
- `ASCII characters` will be replaced with `_`.
- `All other characters` will be replaced with their lower-case hex representation.

* Prefix hex replacements with `0x`

* Refactor for clarity

* Apply suggestions from code review

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2022-09-07 11:39:39 -04:00
Leon Sorokin
75de42fba7 BarChart: fix stale colorByField being used in value mappings (#54820) 2022-09-07 08:31:31 -06:00
Alexander Weaver
b193eaed6e Alerting: Resetting the notification policy tree to the default policy will also restore default contact points (#54608)
* Add test that resetting the route restores the default receiver

* Return error instead of panic

* Adjust error string to match styleguide
2022-09-07 09:28:10 -05:00
Ashley Harrison
8e8d0a08f9 reobserve elements when children change (#54827) 2022-09-07 15:07:35 +01:00
Hamas Shafiq
762432a921 Chore: Add a README for the Node Graph plugin (#54801) 2022-09-07 14:52:55 +01:00
renovate[bot]
04d15b5810 Update dependency @types/webpack-env to v1.18.0 (#54839)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 14:51:36 +01:00
Gustavo Santos
968e2218ac Chore: Add controls to InlineField (#54674) 2022-09-07 14:24:38 +01:00
majordookie
35751b2ab4 Fix typo (#54681) 2022-09-07 15:40:52 +03:00
mhuangwm
39102c6656 Admin: Add support to configure default admin email (#54363) 2022-09-07 14:38:40 +02:00
Gábor Farkas
687b0b1726 elastic: explain why moving_avg is 7.x only (#54840) 2022-09-07 14:31:11 +02:00
Gustavo Santos
c56907b879 Add controls for Date Picker story (#54806)
Signed-off-by: gefgu <gefgu@hotmail.com>

Signed-off-by: gefgu <gefgu@hotmail.com>
2022-09-07 15:30:46 +03:00
Dimitris Sotirakis
8e577ce9fa CI: Trigger *-storybook steps on UI changes (#54833)
* No-op, small starlark refactoring

* Make build and store storybook steps execute on ui changes
2022-09-07 15:08:13 +03:00
Nicholas Wiersma
9e704fec3c JWT: Add support for assigning org roles (#54277)
* feat: allow jwt role to be set

* chore: update documentation

* fix: cr suggestions

* fix: lint issues

* respect org auto assign and default org ID

* add server admin to devenv

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-09-07 14:00:33 +02:00
Ashley Harrison
4825707853 Add basic unit tests for landing pages (#54696) 2022-09-07 12:40:53 +01:00
renovate[bot]
e22ed6b720 Update dependency @types/ol-ext to v2.3.0 (#54836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 11:42:29 +01:00
renovate[bot]
84212d8746 Update babel monorepo to v7.19.0 (#54756)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:57:22 +01:00
renovate[bot]
bccf8e139e Update dependency @react-types/shared to v3.14.1 (#54830)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:55:08 +01:00
Matias Chomicki
c0b3cd3da0 refactor(loki-derived-fields): migrate test to testing library (#54729) 2022-09-07 08:54:28 +00:00
linoman
0324e9c60e Fix paths for auth/ build and volume paths (#54828) 2022-09-07 10:53:58 +02:00
renovate[bot]
86e432f25b Update dependency @react-types/menu to v3.7.1 (#54825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:39:20 +01:00
Ashley Harrison
66ce33bc5b make Browse the root item of Dashboards when topnav is enabled (#54782) 2022-09-07 09:24:10 +01:00
renovate[bot]
ebf24da028 Update dependency @react-types/button to v3.6.1 (#54797)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-07 09:06:46 +01:00
Adela Almasan
3864de9425 Geomap: Cleanup GeomapPanel component (#54538) 2022-09-06 21:22:34 -04:00
Christopher Moyer
cdc2200273 restructures aws marketplace docs (#54810) 2022-09-06 16:47:47 -05:00
Leon Sorokin
bf052cb35e TimeSeries: omit non-integer y ticks when decimals: 0 (#54679) 2022-09-06 16:12:09 -04:00
Alexander Weaver
b8d1474609 Fix incorrect propagation of org ID in rule endpionts (#54603) 2022-09-06 14:51:54 -05:00
Guilherme Caulada
20589f76f4 Secrets: Convert secret migration to a background service (#54676)
* Convert secret migration to a background service

* Fix merge conflicts

* Return concrete type for secret migration provider
2022-09-06 16:21:25 -03:00
Christopher Moyer
0f549a44b0 changes _index files to index, adds aliases (#54804) 2022-09-06 12:58:07 -05:00
Kevin Minehart
1169f14d47 CI: move grabpl build-frontend-packages from grabpl to grafana (#53072)
* move grabpl build-frontend-packages

* add frontend and lerna packages

* grabpl build-frontend-packages -> ./bin/build build-frontend-packages

* move getgrafanaversion

* add noinstalldeps flag

* fix compiler error

* fix lint error

* add missing flags
2022-09-06 20:09:08 +03:00
Torkel Ödegaard
e5c32c8cc9 Dashboard: Unsaved changes warning fixes (#54706)
* Quick test of alternative method

* change order of if condition again for better readability

* Think I have something that is working

* Update
2022-09-06 13:00:32 -04:00
Joao Silva
ab79976a8d Navigation: Adds profile menu to top nav bar (#54720) 2022-09-06 17:32:05 +01:00
renovate[bot]
9cc828a00e Update dependency @react-stately/menu to v3.4.1 (#54784)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-06 17:23:16 +01:00