grafana/public/app/features/explore/state
Ivana Huckova c106c7700b
Explore: Create DataSourceWithSupplementaryQueriesSupport interface to support log volume and samples (#61298)
* Create DataSourceWithLogsSampleSupport check and move to 1 place

* Add new SupplementaryQueryType

* Add and change utility functions for loading, storing ancd checking supp queries

* Add logic to redux for processing of new type of supp query

* Implement queryLogsSample used to run samples queries

* Fix tests to include also Log samples

* Add tests

* Temporarily, default to false

* Change comment

* Fix lint error

* Refactor handling of supplementary queries in query.ts

* Fix looping over array

* Remove changes for any => unknowns as in utils.ts

* Fix logic

* Fix incorrect imports after function was moved to different file

* Migrate old log volume key

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

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* Refactor to use DataSourceWithSupplementaryQueriesSupport

* Refactor, improve tests,  change internal API

* Update packages/grafana-data/src/types/logs.ts

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* Add deprecation for DataSourceWithLogsVolumeSupport, but still support it

* Update comment with correct new issue

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2023-01-20 14:20:49 +01:00
..
datasource.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
datasource.ts Explore: Create DataSourceWithSupplementaryQueriesSupport interface to support log volume and samples (#61298) 2023-01-20 14:20:49 +01:00
explorePane.test.ts Explore: Add Mixed Datasource (#53429) 2022-08-31 09:24:20 -05:00
explorePane.ts Explore: Notify when compact URL is used (#58684) 2022-11-21 08:03:50 -06:00
helpers.ts Explore: Create DataSourceWithSupplementaryQueriesSupport interface to support log volume and samples (#61298) 2023-01-20 14:20:49 +01:00
history.ts Update total items when query history item is deleted to avoid triggering pagination (#49899) 2022-06-02 08:48:24 -05:00
main.test.ts Explore: Unsync time ranges when a pane is closed (#61369) 2023-01-12 20:59:35 +00:00
main.ts Explore: Unsync time ranges when a pane is closed (#61369) 2023-01-12 20:59:35 +00:00
query.test.ts Explore: Create DataSourceWithSupplementaryQueriesSupport interface to support log volume and samples (#61298) 2023-01-20 14:20:49 +01:00
query.ts Explore: Create DataSourceWithSupplementaryQueriesSupport interface to support log volume and samples (#61298) 2023-01-20 14:20:49 +01:00
selectors.ts Explore: Reuse Dashboard's QueryRows component (#38942) 2021-09-15 16:26:23 +01:00
time.test.ts Chore: remove various type assertions in Explore (#60501) 2022-12-21 15:01:03 +01:00
time.ts Logs: move logs-functions from grafana-data to grafana-main (#55457) 2022-09-30 12:16:47 +02:00
utils.test.ts Explore: Change datasourceName usage to datasourceUID or datasourceRef where appropriate (#52479) 2022-07-25 13:05:57 -05:00
utils.ts Explore: Create DataSourceWithSupplementaryQueriesSupport interface to support log volume and samples (#61298) 2023-01-20 14:20:49 +01:00