Loki: Update log context UI (#66730)

* fix logrowcontext scrolling behavior

* Loki: Update loki context ui menu

* Update

* Add test, update

* Use escapeLabelValueInSelector when displaying labels

* Update test for new appliedContextFilters

---------

Co-authored-by: Sven Grossmann <svennergr@gmail.com>
This commit is contained in:
Ivana Huckova
2023-04-18 15:59:22 +02:00
committed by GitHub
parent 0741f47876
commit f612a72f96
9 changed files with 226 additions and 152 deletions

View File

@@ -141,7 +141,7 @@ export interface DataSourceWithLogsContextSupport<TQuery extends DataQuery = Dat
* @alpha
* @internal
*/
getLogRowContextUi?(row: LogRowModel, runContextQuery?: () => void): React.ReactNode;
getLogRowContextUi?(row: LogRowModel, runContextQuery?: () => void, origQuery?: TQuery): React.ReactNode;
}
export const hasLogsContextSupport = (datasource: unknown): datasource is DataSourceWithLogsContextSupport => {