Log Context: Add cacheFilters property (#79784)

* add `forceApplyFilters` property

* PR review

* fix tests

* remove import

* comment flaky test

* add context tab documentation

* review

* doc
This commit is contained in:
Sven Grossmann
2023-12-21 17:02:29 +01:00
committed by GitHub
parent a77ba40ed4
commit 99a821e665
13 changed files with 132 additions and 73 deletions

View File

@@ -135,9 +135,15 @@ export interface DataSourceWithLogsContextSupport<TQuery extends DataQuery = Dat
getLogRowContext: (row: LogRowModel, options?: LogRowContextOptions, query?: TQuery) => Promise<DataQueryResponse>;
/**
* Retrieve the context query object for a given log row. This is currently used to open LogContext queries in a split view.
* Retrieve the context query object for a given log row. This is currently used to open LogContext queries in a split view and in a new browser tab.
* The `cacheFilters` parameter can be used to force a refetch of the cached applied filters. Default value `true`.
*/
getLogRowContextQuery?: (row: LogRowModel, options?: LogRowContextOptions, query?: TQuery) => Promise<TQuery | null>;
getLogRowContextQuery?: (
row: LogRowModel,
options?: LogRowContextOptions,
query?: TQuery,
cacheFilters?: boolean
) => Promise<TQuery | null>;
/**
* @deprecated Deprecated since 10.3. To display the context option and support the feature implement DataSourceWithLogsContextSupport interface instead.