Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
4508cd5
Scaffold LogView types, service and routes
weltenwort Feb 8, 2022
ca68c60
Scaffold new saved object type
weltenwort Feb 8, 2022
ad187d8
Export plugin contract types
weltenwort Feb 9, 2022
d1cacca
Fix `this` binding
weltenwort Feb 9, 2022
a304951
Factor out SO reference handling
weltenwort Feb 9, 2022
2bf832c
Implement log view resolution order
weltenwort Feb 9, 2022
be49ea5
Fix imports from the data_views plugin
weltenwort Feb 9, 2022
7b4b1f3
Remove legacy error wrapper from route handler
weltenwort Feb 9, 2022
12fcfc5
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Feb 22, 2022
685e9ee
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Feb 23, 2022
61a6a01
Add GET log view fallback api tests
weltenwort Feb 23, 2022
bb5e17d
Remove commented-out code and console logs
weltenwort Feb 23, 2022
123439d
Add PUT log view route
weltenwort Feb 23, 2022
54cbf9c
Allow partial log view PUT and add api tests
weltenwort Feb 23, 2022
fb964c6
Add new saved object type to core tests
weltenwort Feb 23, 2022
11948a4
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Feb 23, 2022
798174c
Rename log view saved object type
weltenwort Feb 23, 2022
09bbd8d
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Feb 24, 2022
d6269cb
Fix typo in saved object reference code
weltenwort Feb 24, 2022
25165d3
Add client-side log view service (WIP)
weltenwort Feb 24, 2022
80fbf29
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 1, 2022
1fe344a
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 2, 2022
c6217a7
Move source config defaults to common
weltenwort Mar 2, 2022
841aed5
Instantiate client-side log views service
weltenwort Mar 2, 2022
1c2bae8
Adapt log entry search strategy
weltenwort Mar 2, 2022
c2606ad
Fix linter error
weltenwort Mar 2, 2022
d11762d
Inject own start services into common react context
weltenwort Mar 2, 2022
04aa66a
Start to create the useLogView hook
weltenwort Mar 2, 2022
5b4fa6e
Refine useLogView hook
weltenwort Mar 4, 2022
a9af34f
Implement client-side index status check
weltenwort Mar 7, 2022
15e0101
Allow for different observable types to be derived
weltenwort Mar 7, 2022
7b81328
Add unit test for LogViewsClient.getResolvedLogView
weltenwort Mar 7, 2022
cdce313
Adapt log entries search strategy unit tests
weltenwort Mar 7, 2022
c959f26
Adapt log entry search strategy unit test
weltenwort Mar 7, 2022
4ae8ced
Use log view in log threshold rule registration
weltenwort Mar 8, 2022
1dd75b2
Replace references to log source with log view
weltenwort Mar 8, 2022
e428ec3
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 8, 2022
957cd8d
Fix metric app providers
weltenwort Mar 8, 2022
1299f41
Add method to get LogViewClient without request
weltenwort Mar 8, 2022
6b6dab6
Replace get_log_query_fields with logViewsClient
weltenwort Mar 8, 2022
cd19011
Use the log view in log threshold executor
weltenwort Mar 8, 2022
eea047d
Refine saved object registration
weltenwort Mar 8, 2022
a468e81
Add new getClient method to log views service mock
weltenwort Mar 9, 2022
5e9df6c
Use logViews client in log overview fetchers
weltenwort Mar 9, 2022
90216d5
Fix log overview fetcher tests
weltenwort Mar 9, 2022
0a605d3
Fix some test types
weltenwort Mar 9, 2022
84673e9
Inject start contract into LogStreamEmbeddable
weltenwort Mar 9, 2022
a789148
Fix linter error
weltenwort Mar 10, 2022
9629b7a
Use logViewsClient in shared log stream
weltenwort Mar 10, 2022
86c5adf
Fix typo
weltenwort Mar 10, 2022
32affef
Adapt link_to component tests
weltenwort Mar 10, 2022
ff54b3f
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 10, 2022
a1a8969
Correctly use FetchLogViewStatusError
weltenwort Mar 10, 2022
510ebcf
Break dependency on old source column types
weltenwort Mar 10, 2022
7494fed
Replace references to log_source with log_view
weltenwort Mar 10, 2022
c3f3fc1
Replace more references to LogSource
weltenwort Mar 10, 2022
32b9e73
Replace more references to log sources
weltenwort Mar 10, 2022
48b9399
Fix lazy provider wrapping
weltenwort Mar 14, 2022
73c3916
Fix log index status check
weltenwort Mar 14, 2022
a18cc84
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 14, 2022
b26bdbc
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 15, 2022
f8fe4c1
Add missing feature permissions for new saved object
weltenwort Mar 16, 2022
0660942
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 16, 2022
5642bda
Tweak useLogView hook
weltenwort Mar 16, 2022
0e90879
Replace LogSource with LogView in properties
weltenwort Mar 16, 2022
00b2fba
Remove old log source code
weltenwort Mar 16, 2022
bf5c9ea
Fix useLogView mock
weltenwort Mar 16, 2022
7178c5b
Fix and update the log stream storybook
weltenwort Mar 17, 2022
f6d6df5
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 17, 2022
87403d7
Convert filename to snake case
weltenwort Mar 17, 2022
953952e
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 18, 2022
21fc56b
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 21, 2022
88a6ccf
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 24, 2022
2e56e5a
Add new metrics table exports to start contract mocks
weltenwort Mar 24, 2022
c9579f8
Access component deps indirectly to avoid recursion
weltenwort Mar 24, 2022
b0657ff
Access the start services later rather than earlier
weltenwort Mar 24, 2022
484b6fc
Attempt to fix mock types
weltenwort Mar 24, 2022
e738380
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 28, 2022
b223219
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 29, 2022
f3cebfc
Remove outdated todo comment
weltenwort Mar 29, 2022
1c50e36
Align log view routes dependencies with common practice
weltenwort Mar 29, 2022
8239a38
Use the newest log view as the default
weltenwort Mar 30, 2022
06e85d6
Fix typo in test
weltenwort Mar 30, 2022
32df363
Merge branch 'main' into logs-ui-dedicated-configuration-saved-object
weltenwort Mar 31, 2022
6f7545e
Improve api test
weltenwort Mar 31, 2022
86d5a99
Use nicer titles in saved object registration
weltenwort Mar 31, 2022
57096ed
Satisfy the linter
weltenwort Mar 31, 2022
1a9c263
Automatically initialize the log view hook
weltenwort Mar 31, 2022
c5f3db5
Adapt useLogView mock to new signature
weltenwort Mar 31, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const previouslyRegisteredTypes = [
'fleet-preconfiguration-deletion-record',
'graph-workspace',
'index-pattern',
'infrastructure-monitoring-log-view',
'infrastructure-ui-source',
'ingest-agent-policies',
'ingest-outputs',
Expand Down
14 changes: 14 additions & 0 deletions x-pack/plugins/infra/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

export const parameters = {
docs: {
source: {
type: 'code', // without this, stories in mdx documents freeze the browser
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import * as rt from 'io-ts';
import { logEntryCursorRT, logEntryRT } from '../../log_entry';
import { logSourceColumnConfigurationRT } from '../../log_sources/log_source_configuration';
import { logViewColumnConfigurationRT } from '../../log_views';

export const LOG_ENTRIES_HIGHLIGHTS_PATH = '/api/log_entries/highlights';

Expand All @@ -21,7 +21,7 @@ export const logEntriesHighlightsBaseRequestRT = rt.intersection([
rt.partial({
query: rt.union([rt.string, rt.null]),
size: rt.number,
columns: rt.array(logSourceColumnConfigurationRT),
columns: rt.array(logViewColumnConfigurationRT),
}),
]);

Expand Down
11 changes: 0 additions & 11 deletions x-pack/plugins/infra/common/http_api/log_sources/common.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

10 changes: 10 additions & 0 deletions x-pack/plugins/infra/common/http_api/log_views/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

export const LOG_VIEW_URL_PREFIX = '/api/infra/log_views';
export const LOG_VIEW_URL = `${LOG_VIEW_URL_PREFIX}/{logViewId}`;
export const getLogViewUrl = (logViewId: string) => `${LOG_VIEW_URL_PREFIX}/${logViewId}`;
18 changes: 18 additions & 0 deletions x-pack/plugins/infra/common/http_api/log_views/get_log_view.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import * as rt from 'io-ts';
import { logViewRT } from '../../log_views';

export const getLogViewRequestParamsRT = rt.type({
// the id of the log view
logViewId: rt.string,
});

export const getLogViewResponsePayloadRT = rt.type({
data: logViewRT,
});
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* 2.0.
*/

export * from './get_log_source_configuration';
export * from './get_log_source_status';
export * from './patch_log_source_configuration';
export * from './common';
export { getLogViewUrl, LOG_VIEW_URL } from './common';
export * from './get_log_view';
export * from './put_log_view';
22 changes: 22 additions & 0 deletions x-pack/plugins/infra/common/http_api/log_views/put_log_view.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import * as rt from 'io-ts';
import { logViewAttributesRT, logViewRT } from '../../log_views';

export const putLogViewRequestParamsRT = rt.type({
logViewId: rt.string,
});

export const putLogViewRequestPayloadRT = rt.type({
attributes: rt.partial(logViewAttributesRT.type.props),
});
export type PutLogViewRequestPayload = rt.TypeOf<typeof putLogViewRequestPayloadRT>;

export const putLogViewResponsePayloadRT = rt.type({
data: logViewRT,
});

This file was deleted.

Loading