grafana/public/test/mocks
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
..
dashboard-mock.js DashboardSchema: Remove old unused legacy props style and timepicker.enable (#73879) 2023-08-28 12:18:17 +02:00
datasource_srv.ts Supplementary queries: allow plugin decoupling by allowing providers to return a request instance (#80281) 2024-01-30 12:36:20 +02:00
getGrafanaContextMock.ts Frontend: Reload the browser when backend configuration/assets change (#79057) 2024-01-04 08:00:07 +01:00
i18nMessages.ts I18N: Add Lingui core translation framework. (#41827) 2021-12-15 17:00:37 +01:00
monaco.ts
navModel.ts Chore: Clean up NavModel interface (#66548) 2023-04-17 16:01:32 +01:00
nearMembraneDom.ts Plugins: Add Initial implementation for frontend plugins sandboxing (#68889) 2023-06-05 10:51:36 +02:00
query.ts Explore: Support mixed data sources for supplementary query (#63036) 2023-03-07 15:00:11 +01:00
react-inlinesvg.tsx Icon: Simplify and remove wrapping <div> (#76819) 2023-10-24 12:16:32 +01:00
style.ts
svg.ts
systemjsAMDExtra.ts Plugins: Bump SystemJS to 6.14.2 (#70068) 2023-08-31 15:45:44 +02:00
workers.ts Chore: type fixes (#77618) 2023-11-06 11:28:44 +00:00