grafana/public/app/features/explore
Dominik Prokop a9c94ec93b
Explore: Update the way Loki retrieve log context (#17204)
* Move log's typings into grafana/ui
* Update the way context is retrieved for Loki

Major changes:

1. getLogRowContext expects row to be of LogRowModel type
2. getLogRowContext accepts generic options object, specific to a datasource of interest. limit option has been removed, and now it's a part of Loki's context query options (see below)
3. LogRowContextProvider performs two queries now. Before, it was Loki ds that performed queries in both directions when getLogRowContext.
4. Loki's getLogRowContext accepts options object of a type:

interface LokiContextQueryOptions {
    direction?: 'BACKWARD' | 'FORWARD';
    limit?: number;
}

This will enable querying in either direction independently and also slightly simplifies the way query errors are handled.

LogRowContextProvider maps the results to a Loki specific context types, basically string[][], as raw log lines are displayed in first version.
2019-05-22 23:10:05 +02:00
..
__mocks__ created test for graph disclaimer 2018-09-25 11:50:55 +02:00
__snapshots__ Explore: use @grafana/ui legend (#17027) 2019-05-14 08:46:35 +02:00
slate-plugins Move prism to app/features/explore 2019-02-01 14:47:17 +03:00
state Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
utils Feat: Suggestion list in Explore is virtualized (#16342) 2019-04-09 14:25:13 +02:00
ElapsedTime.tsx Explore: Adds Live option for supported datasources (#17062) 2019-05-20 13:28:23 +02:00
Error.tsx Feat: Adds reconnect for failing datasource in Explore (#16226) 2019-04-01 07:38:00 +02:00
ErrorBoundary.tsx Explore: error handling and time fixes 2018-10-26 18:16:00 +02:00
ErrorContainer.tsx Explore: Align Explore with Dashboards and Panels (#16823) 2019-05-10 14:00:39 +02:00
Explore.tsx Explore: Adds Live option for supported datasources (#17062) 2019-05-20 13:28:23 +02:00
ExploreToolbar.tsx Explore: Adds Live option for supported datasources (#17062) 2019-05-20 13:28:23 +02:00
Graph.test.tsx Explore: Support user timezone (#16469) 2019-04-29 18:28:41 +02:00
Graph.tsx Explore: use @grafana/ui legend (#17027) 2019-05-14 08:46:35 +02:00
GraphContainer.tsx explore: fix issues when loading and both graph/table are collapsed (#17113) 2019-05-17 12:45:11 +02:00
JSONViewer.tsx Explore: moved code to app/features/explore 2018-09-24 12:16:06 +02:00
LiveLogs.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
LogLabel.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
LogLabels.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
LogLabelStats.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
LogMessageAnsi.test.tsx Fixed prettier issue (#15471) 2019-02-16 15:45:19 +01:00
LogMessageAnsi.tsx fix(renderer): Vendor ansicolor as typescript 2019-03-06 14:22:59 +01:00
LogRow.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
LogRowContext.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
LogRowContextProvider.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
Logs.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
LogsContainer.tsx Explore: Update the way Loki retrieve log context (#17204) 2019-05-22 23:10:05 +02:00
NoDataSourceCallToAction.tsx Theme: Reworking button styling (#16362) 2019-04-08 09:48:15 +02:00
Panel.tsx explore: fix issues when loading and both graph/table are collapsed (#17113) 2019-05-17 12:45:11 +02:00
PlaceholdersBuffer.test.ts Add tests to cover PlaceholdersBuffer and sum hint 2018-10-28 21:07:40 +08:00
PlaceholdersBuffer.ts public/app/features/*: Fix some misspell issues 2018-12-05 13:08:00 +01:00
QueryEditor.tsx explore: make sure datasource is added to target (#17116) 2019-05-17 10:11:55 +02:00
QueryField.tsx fix(explore): Prevent double querying for Prometheus and Loki (#17004) 2019-05-13 09:55:20 +02:00
QueryRow.tsx Explore: Allow switching between metrics and logs (#16959) 2019-05-16 09:52:22 +02:00
QueryRows.tsx Replaced intialQueris with queryKeys 2019-02-04 13:41:29 +01:00
QueryStatus.tsx Explore: Align Explore with Dashboards and Panels (#16823) 2019-05-10 14:00:39 +02:00
Table.tsx Explore: Fixes filtering in Prometheus queries when clicking in Table (#17083) 2019-05-15 11:43:27 +02:00
TableContainer.tsx explore: fix issues when loading and both graph/table are collapsed (#17113) 2019-05-17 12:45:11 +02:00
TimePicker.test.tsx Chore: Replaces moment with Grafanas DateTime (#16919) 2019-05-08 13:51:44 +02:00
TimePicker.tsx Chore: Replaces moment with Grafanas DateTime (#16919) 2019-05-08 13:51:44 +02:00
Typeahead.tsx Chore: Adds typings to lodash (#16590) 2019-04-15 12:11:52 +02:00
TypeaheadInfo.tsx Feat: Suggestion list in Explore is virtualized (#16342) 2019-04-09 14:25:13 +02:00
TypeaheadItem.tsx Feat: Suggestion list in Explore is virtualized (#16342) 2019-04-09 14:25:13 +02:00
Value.ts Explore: moved code to app/features/explore 2018-09-24 12:16:06 +02:00
Wrapper.tsx chore: remove x character in explore 2019-05-13 16:33:27 +02:00