grafana/pkg/tests/api
Piotr Jamróz 946da57b6a
Correlations: Allow creating correlations for provisioned data sources (#73737)
* Allow creating correlations for provisioned data sources

* Update docs

* Fix linting

* Add missing props

* Add missing props

* Fix linting

* Fix linting

* Clarify error name

* Removed error handling for a non-existing use case

* Create a list of deleted data datasources based on all configs

* Add org_id to correlations

* Add tests

* Allow org_id to be null in case org_id=0 is used

* Create organization to ensure stable id is generated

* Fix linting

* Ensure backwards compatibility

* Add deprecation information

* Update comments

* Override existing datasSource variable so the UID is retrieved correctly

* Migrate correlations indices

* Default org_id when migrating

* Remove redundant default

* Make PK non-nullable

* Post merge fixes

* Separate data sources / correlations provisioning

* Adjust comments

* Store new data sources in spy store so it can be used to test correlations as well

* Fix linting

* Update tests

* Ensure response is closed

* Avoid creating duplicates during provisioning

* Fix updating provisioned column and update tests

* Rename error message

* Fix linting errors

* Fix linting errors and rename variable

* Update test

* Update pkg/services/sqlstore/migrations/correlations_mig.go

Co-authored-by: Giordano Ricci <me@giordanoricci.com>

* Remove unused error

* Fix lining

---------

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-09-13 15:10:09 +02:00
..
alerting Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
azuremonitor Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
correlations Correlations: Allow creating correlations for provisioned data sources (#73737) 2023-09-13 15:10:09 +02:00
dashboards DashboardSchema: Remove old unused legacy props style and timepicker.enable (#73879) 2023-08-28 12:18:17 +02:00
elasticsearch Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
graphite Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
influxdb Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
loki Chore: Remove CreateUserForTests() (#64125) 2023-03-03 11:01:23 -05:00
metrics remove flaky cloudwatch test (#45800) 2022-02-23 13:59:53 -06:00
opentdsb Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
plugins Pyroscope: add public catalog description (#74630) 2023-09-11 18:06:34 +02:00
prometheus Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
stats Alerting: Fix stats that display alert count when using unified alerting (#64852) 2023-03-17 11:19:18 +00:00