Commit Graph

35959 Commits

Author SHA1 Message Date
Yuriy Tseretyan
ee5bcf2b96 make test more stable (#51268) 2022-06-22 12:53:16 -04:00
Seyaji
fe5416508a Chore: Convert TracePageHeader test to RTL (#51216)
* Convert TracePageHeader test to RTL

* Convert TracePageHeader test to RTL

* Convert TracePageHeader test to RTL
2022-06-22 17:46:36 +01:00
Seyaji
d760b03784 Convert AccordianKeyValues test to RTL (#51257) 2022-06-22 17:42:04 +01:00
gotjosh
90646e7f41 Alerting: Don't stop the migration when alert rule tags are invalid (#51253)
* Alerting: Don't stop the migration when alert rule tags are invalid

As we migrate we expect the `alertRuleTags` on a dashboard alert to be a JSON object. However, it seems this is not really validated by Grafana and an user can change the format to something else that the JSON parser is not able to marshal into a `map[string]string`.

Let's do a bit better by "attempting" to parse the tags and if we can't we'll simple return an empty map. The data is still there so if the user wishes they can go back, fix the data and attemp the migration again.
2022-06-22 17:39:17 +01:00
Joao Silva
cbefbd3ff7 Search: Adds tests to SearchView (#51248) 2022-06-22 17:20:57 +01:00
Yuriy Tseretyan
4b42cd3c1d Alerting: State manager to use clock (#51219)
* manager to use clock, to be able to mock real time
2022-06-22 12:18:42 -04:00
Tania
405df77e3e Add a feature toggle for custom branding (#51168) 2022-06-22 17:05:52 +02:00
Jguer
4d2c293575 Docs: Add team sync specifics (#51254) 2022-06-22 14:57:06 +00:00
Yuriy Tseretyan
4d02f73e5f Alerting: Persist rule position in the group (#50051)
Migrations:
* add a new column alert_group_idx to alert_rule table
* add a new column alert_group_idx to alert_rule_version table
* re-index existing rules during migration

API:
* set group index on update. Use the natural order of items in  the array as group index
* sort rules in the group on GET
* update the version of all rules of all affected groups. This will make optimistic lock work in the case of multiple concurrent request touching the same groups.

UI:
* update UI to keep the order of alerts in a group
2022-06-22 10:52:46 -04:00
Armand Grillet
9fac806b6c Add automation when issue labeled area/alerting (#51245)
This now results in a message being sent to a Slack channel
used by the Alerting team at Grafana Labs.
2022-06-22 16:22:18 +02:00
Leon Sorokin
ef53a49896 HeatmapNG: skip y <= 0 values when log y axis (#51221) 2022-06-22 07:12:22 -07:00
Ashley Harrison
be6a878fd6 Annotations: Fixes a problem where annotation autocomplete would crash the panel (#51164)
* use custom formatCreateLabel in AnnotationEditorForm

* give `TagFilter` it's own formatCreateLabel

* only show TagBadge if the label is a string
2022-06-22 14:54:42 +01:00
Karl Persson
8b82bebdc5 RolePicker: Only select roles that is delegatable when selecting a group (#51246) 2022-06-22 15:49:32 +02:00
Jguer
d2ab3556fa OAuth: Restore debug log behavior (#51244) 2022-06-22 15:27:46 +02:00
idafurjes
ef23a76310 Remove integration tags for enterprise (#50974)
* Remove integration tags for enterprise

* Adjust integration tests and backend tests for the current enterprise setup

* Remove entrerprise2 integration step and use go command for enterprise2 backend step

* CI: Tidy up `release-enterprise-*` pipeline dependencies (#51031)

* Tidy up enterprise deps

* Fixes according to reviewer's comments

Co-authored-by: dsotirakis <sotirakis.dim@gmail.com>
2022-06-22 15:22:42 +02:00
Alexander Emelin
cef81a6478 Search: Update bluge version (#50377) 2022-06-22 15:49:26 +03:00
Karl Persson
454f65cd88 RolePicker: Only update org role if the value has changed (#51239) 2022-06-22 14:47:47 +02:00
Kevin Yu
f9becc2d4f Cloud Monitoring: Update Metrics to use experimental UI components (#51134)
* update metrics component

* separate state variables

* add additonal tests
2022-06-22 05:39:08 -07:00
Eric Leijonmarck
421f7a999a Auth: Case insensitive ids duplicate usagestats (#50724)
* WIP

* update for prometheus

* usagestats: tests pass for user duplicate entries

* metrics: added duplicate user entries

* usagestats: adds metrics gauge for duplicate users

* usagestats: skip test for mysql

* sql in oneplace

* only use prometheus register to not panic

* usagestats: RegisterMetricsFunc with loginstats

* fix: remove unused commited code

* refactor: move test to authinfoservice

* Update pkg/models/stats.go

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

* removed prometheus metrics, due to sql cpu requirement

* Added: has_duplicate_user_entries and fix tests

* remove unused test

* fix: empty else statement removal

* missing argument to authinfoservice

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2022-06-22 14:16:28 +02:00
Seyaji
5ad3d10016 Convert CanvasSpanGraph test to RTL (#51180) 2022-06-22 14:46:01 +03:00
Josh Hunt
7cee620fbb Chore: Use @types/webpack-env to type require.context (#51196) 2022-06-22 12:38:47 +01:00
Alexander Emelin
54e9408cfd Search: Build indexes on start for all orgs (#50762) 2022-06-22 13:12:07 +03:00
George Robinson
6e44b36a30 Alerting: Add support for images in Kafka alerts (#50758) 2022-06-22 11:03:08 +01:00
Konrad Lalik
765b995b1b Alerting: Alert rules pagination (#50612) 2022-06-22 11:33:39 +02:00
Alexander Emelin
1ca2e2b6c2 Search: Sync state on read for HA consistency (#50152) 2022-06-22 12:21:43 +03:00
George Robinson
99516360c9 Alerting: Add support for images in VictorOps alerts (#50759) 2022-06-22 10:00:50 +01:00
Karl Persson
2698e37291 RBAC: Add access control metadata to folder dtos (#51158)
* RBAC: Add access control metadata to Folder dto

* Add access control metadata to folder dto response

* Add test to verify that access control metadata is attached

* Attach access control metadata to multiple folders

* Add access control metadata to frontend folder dto
2022-06-22 10:29:26 +02:00
Josh Hunt
8fa951df04 Type window.nonce (#51200) 2022-06-22 09:28:05 +01:00
Josh Hunt
26f6b91fd9 Chore: Type GA and Rudderstack analytics config (#51197)
* Chore: Type GA and Rudderstack analytics config

* rely on implicit unknown
2022-06-22 09:27:55 +01:00
Ieva
d4acc8b7d3 fix broken links (#51224) 2022-06-22 10:34:48 +03:00
Ryan McKinley
157e3b437b Heatmap: add devenv dashbaord for current heatmap panel (#51213) 2022-06-21 20:45:44 -07:00
sam boyer
e6d91235a7 codegen: Correctly gen TS without defaults (#51155) 2022-06-22 03:55:37 +02:00
ying-jeanne
f81f33420e Chore: Update build-container to version 1.5.7 (#51188) 2022-06-22 02:55:43 +02:00
Josh Hunt
24bdda72fb Barchart: Fix warning not showing (#51190) 2022-06-21 17:45:37 -05:00
Yuriy Tseretyan
157c12211d Alerting: State manager to use tick time to determine stale states (#50991)
* use correct stale timestamp
* calculate stale using tick time instead of time.now

* remove unused dependency on sql store
2022-06-22 00:16:53 +02:00
Adam Simpson
3543e05f49 Chore: update latest.json to 9.0.1 (#51199) 2022-06-21 18:22:05 +00:00
Christopher Moyer
2df04582ce Docs: fixes setup relrefs (#51178)
* fixes setup relrefs

* Update docs/sources/setup-grafana/configure-security/configure-authentication/enhanced_ldap.md

Co-authored-by: Garrett Guillotte <100453168+gguillotte-grafana@users.noreply.github.com>

* Update docs/sources/setup-grafana/configure-security/_index.md

Co-authored-by: Garrett Guillotte <100453168+gguillotte-grafana@users.noreply.github.com>

Co-authored-by: Garrett Guillotte <100453168+gguillotte-grafana@users.noreply.github.com>
2022-06-21 10:46:46 -07:00
Grot (@grafanabot)
8211d7c787 ReleaseNotes: Updated changelog and release notes for 9.0.1 (#51192) 2022-06-21 17:42:38 +00:00
Josh Hunt
357b859fa7 Remove any generics from configureMockStore in tests (#51179) 2022-06-21 17:48:52 +01:00
Josh Hunt
98132fc7dc Remove as any from requireActual usage (#51182) 2022-06-21 17:48:38 +01:00
Yuriy Tseretyan
53d03aec78 Alerting: Add api client to integration tests (#50970) 2022-06-21 11:39:22 -04:00
Sam Jewell
53714282cd Deep link to more detailed rate-interval docs (#43422)
This felt like a more useful docs link to me

Co-authored-by: Ursula Kallio <ursula.kallio@grafana.com>
2022-06-21 15:28:55 +00:00
Seyaji
0bfd48c164 Chore: Convert DataLinks tests to RTL (#51137)
* Convert DataLinks tests to RTL

* Convert DataLinks test to RTL

* Convert DataLinks test to RTL

* Convert DataLinks test to RTL
2022-06-21 15:55:10 +01:00
Seyaji
bab017799e Chore: Convert QueryOperationAction test to RTL (#51139)
* Convert QueryOperationAction test to RTL

* Convert QueryOperationAction to RTL

* Convert QueryOperationAction test to RTL
2022-06-21 15:53:10 +01:00
polibb
665da5d063 Template Variable: Datasource variable can be used when MIXED option is selected in panel query (#51170)
* user essentials mob! 🔱

* user essentials mob! 🔱

lastFile:public/app/features/query/components/QueryEditorRowHeader.test.tsx

* user essentials mob! 🔱

* test variables showing in data source picker dropdown on MIXED

* clean up unused imports

* remove comment

* remove unused mock

Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Joao Silva <joao.silva@grafana.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-06-21 17:46:52 +03:00
brendamuir
8930bc9042 Docs: new version of landing page for Alerting (#51166)
* Docs: new version of landing page for Alerting

* deletes about topic and adds alias

* Update docs/sources/alerting/_index.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2022-06-21 16:21:54 +02:00
kiwi-oss
1b091454ec Fix query parameter template variable (#50023)
As documented under [Advanced variable format options – Query parameters](https://grafana.com/docs/grafana/latest/variables/advanced-variable-format-options/#query-parameters), the option is `queryparam`, not `queryparams`.

I have verified in Grafana 8.5.3 that the former works while the latter doesn't.
2022-06-21 15:41:41 +02:00
Alexandre de Verteuil
746f664a75 Minor edits in whats-new-in-v9-0 (#51159)
Grammar, punctuation, syntax edits.
2022-06-21 15:07:08 +02:00
Ivana Huckova
62e55d530d Query history: Fix default value when no config (#51129)
* Query history: Fix default value in setting.go

* Update for frontend

* Remove frontend update
2022-06-21 14:57:44 +02:00
Josh Hunt
bc7ed4baab Chore: use jest.mocked in favor of type assertions/any (#51156)
* use jest.mocked instead of yucky any

* remove more anys in favor of jest.mocked

* fix stray unused variables
2022-06-21 13:47:33 +01:00