Explore: Refactor deduplication, hiding of logs and Logs component (#33531)

* Move fitlering and deduplication to comnponent to enable future caching

* Clean up LogsMetaInfo

* Update

* Memoize component

* Fix type errors

* Clean uo

* Add tests for filtering in combination with deduplication
This commit is contained in:
Ivana Huckova
2021-04-29 18:26:30 +02:00
committed by GitHub
parent 1e380e869e
commit cf958e0b4f
9 changed files with 215 additions and 308 deletions

View File

@@ -6,8 +6,6 @@ import {
DataQueryRequest,
DataSourceApi,
HistoryItem,
LogLevel,
LogsDedupStrategy,
LogsModel,
PanelData,
QueryHint,
@@ -119,16 +117,6 @@ export interface ExploreItemState {
*/
queryKeys: string[];
/**
* Current logs deduplication strategy
*/
dedupStrategy: LogsDedupStrategy;
/**
* Currently hidden log series
*/
hiddenLogLevels?: LogLevel[];
/**
* How often query should be refreshed
*/