grafana/public/test
Matias Chomicki 2a734a9e3f
Supplementary queries: allow plugin decoupling by allowing providers to return a request instance (#80281)
* Supplementary queries: add support for providers returning a request instance

* Formatting

* DataSourceWithSupplementaryQueriesSupport: update getDataProvider signature

* getLogLevelFromLabels: fix buggy implementation

* getLogLevelFromKey: fix key type

Why number??

* Revert "getLogLevelFromKey: fix key type"

This reverts commit 14a95298a6f803cc3270e0421b2e04dd0d65f131.

* getSupplementaryQueryProvider: remove observable support

* Datasources: remove unnecessary check

The switch is doing the same job

* Supplementary queries: update unit test

* datasource_srv: sync mock with real api

* Formatting

* Supplementary queries: pass targets from getSupplementaryQueryProvider

* LogsVolumeQueryOptions: remove range and make extract level optional

* logsModel: add missing range to test data

* query: sync tests with changes

* Formatting

* DataSourceWithSupplementaryQueriesSupport: update interface with deprecated and new methods

* DataSourceWithSupplementaryQueriesSupport: sync Loki and Elasticsearch

* queryLogsVolume: extractLevel no longer customizable

* Loki: update test

* Supplementary queries: add support for the new method

* hasSupplementaryQuerySupport: update signature

* Formatting

* Betterer

* Query: update test

* Supplementary queries: add test for the legacy API

* Update public/app/features/explore/utils/supplementaryQueries.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-01-30 12:36:20 +02:00
..
core Chore: Update to typescript 5 (#76511) 2023-11-07 13:20:20 +00:00
fixtures Dashlist: Use new nested folder picker (#74011) 2023-09-07 13:57:31 +03:00
helpers Chore: type fixes (#77618) 2023-11-06 11:28:44 +00:00
lib chore: replace Sinon usage with Jest (#75940) 2023-10-04 11:12:30 +01:00
matchers Chore: improve types (#78126) 2023-11-16 12:39:12 +00:00
mocks Supplementary queries: allow plugin decoupling by allowing providers to return a request instance (#80281) 2024-01-30 12:36:20 +02:00
specs Chore: some type fixes (#80094) 2024-01-09 10:00:00 +00:00
.jshintrc chore: replace Sinon usage with Jest (#75940) 2023-10-04 11:12:30 +01:00
global-jquery-shim.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
jest-resolver.js Chore: Upgrade to jest 28 (#49679) 2022-05-30 14:14:34 +01:00
jest-setup.ts Grafana UI: Make it possible to bundle package with plugins (#76191) 2023-10-13 14:11:41 +02:00
log-reporter.js test: Fix Jest reporter (#60810) 2022-12-29 03:14:09 -05:00
redux-rtl.tsx Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
setupTests.ts Chore: Don't fail tests on console logs at all during local dev (#67313) 2023-04-27 11:06:11 +01:00