Skip to content

Commit

Permalink
Update references
Browse files Browse the repository at this point in the history
  • Loading branch information
CoenWarmer committed Feb 23, 2024
1 parent 4618400 commit 9b74006
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ examples/locator_explorer @elastic/appex-sharedux
packages/kbn-logging @elastic/kibana-core
packages/kbn-logging-mocks @elastic/kibana-core
x-pack/plugins/observability_solution/logs_explorer @elastic/obs-ux-logs-team
x-pack/plugins/logs_shared @elastic/obs-ux-logs-team
x-pack/plugins/observability_solution/logs_shared @elastic/obs-ux-logs-team
x-pack/plugins/logstash @elastic/logstash
packages/kbn-managed-content-badge @elastic/kibana-visualizations
packages/kbn-managed-vscode-config @elastic/kibana-operations
Expand Down
2 changes: 1 addition & 1 deletion docs/developer/plugin-list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ using the CURL scripts in the scripts folder.
|This plugin is home to the <LogsExplorer /> component and related types. It implements several of the underlying concepts that the Observability Logs Explorer app builds upon.
|{kib-repo}blob/{branch}/x-pack/plugins/logs_shared/README.md[logsShared]
|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/logs_shared/README.md[logsShared]
|Exposes the shared components and APIs to access and visualize logs.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
"@kbn/logging": "link:packages/kbn-logging",
"@kbn/logging-mocks": "link:packages/kbn-logging-mocks",
"@kbn/logs-explorer-plugin": "link:x-pack/plugins/observability_solution/logs_explorer",
"@kbn/logs-shared-plugin": "link:x-pack/plugins/logs_shared",
"@kbn/logs-shared-plugin": "link:x-pack/plugins/observability_solution/logs_shared",
"@kbn/logstash-plugin": "link:x-pack/plugins/logstash",
"@kbn/managed-content-badge": "link:packages/kbn-managed-content-badge",
"@kbn/management-cards-navigation": "link:packages/kbn-management/cards_navigation",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -1002,8 +1002,8 @@
"@kbn/logging-mocks/*": ["packages/kbn-logging-mocks/*"],
"@kbn/logs-explorer-plugin": ["x-pack/plugins/observability_solution/logs_explorer"],
"@kbn/logs-explorer-plugin/*": ["x-pack/plugins/observability_solution/logs_explorer/*"],
"@kbn/logs-shared-plugin": ["x-pack/plugins/logs_shared"],
"@kbn/logs-shared-plugin/*": ["x-pack/plugins/logs_shared/*"],
"@kbn/logs-shared-plugin": ["x-pack/plugins/observability_solution/logs_shared"],
"@kbn/logs-shared-plugin/*": ["x-pack/plugins/observability_solution/logs_shared/*"],
"@kbn/logstash-plugin": ["x-pack/plugins/logstash"],
"@kbn/logstash-plugin/*": ["x-pack/plugins/logstash/*"],
"@kbn/managed-content-badge": ["packages/kbn-managed-content-badge"],
Expand Down
2 changes: 1 addition & 1 deletion x-pack/.i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"xpack.indexLifecycleMgmt": "plugins/index_lifecycle_management",
"xpack.infra": "plugins/infra",
"xpack.logsExplorer": "plugins/observability_solution/logs_explorer",
"xpack.logsShared": "plugins/logs_shared",
"xpack.logsShared": "plugins/observability_solution/logs_shared",
"xpack.fleet": "plugins/fleet",
"xpack.ingestPipelines": "plugins/ingest_pipelines",
"xpack.kubernetesSecurity": "plugins/kubernetes_security",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { LogStream, LogStreamProps } from '@kbn/logs-shared-plugin/public';
* default for timestamps. All other props get passed as-is to the underlying LogStream.
*
* Documentation links for reference:
* - https://github.com/elastic/kibana/blob/main/x-pack/plugins/logs_shared/public/components/log_stream/log_stream.stories.mdx
* - https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability_solution/logs_shared/public/components/log_stream/log_stream.stories.mdx
* - Run `yarn storybook logsShared` for live docs
*/

Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/enterprise_search/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export class EnterpriseSearchPlugin implements Plugin {

/*
* Register logs source configuration, used by LogStream components
* @see https://github.com/elastic/kibana/blob/main/x-pack/plugins/logs_shared/public/components/log_stream/log_stream.stories.mdx#with-a-source-configuration
* @see https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability_solution/logs_shared/public/components/log_stream/log_stream.stories.mdx#with-a-source-configuration
*/
logsShared.logViews.defineInternalLogView(ENTERPRISE_SEARCH_RELEVANCE_LOGS_SOURCE_ID, {
logIndices: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@

module.exports = {
preset: '@kbn/test',
rootDir: '../../..',
roots: ['<rootDir>/x-pack/plugins/logs_shared'],
coverageDirectory: '<rootDir>/target/kibana-coverage/jest/x-pack/plugins/logs_shared',
rootDir: '../../../..',
roots: ['<rootDir>/x-pack/plugins/observability_solution/logs_shared'],
coverageDirectory:
'<rootDir>/target/kibana-coverage/jest/x-pack/plugins/observability_solution/logs_shared',
coverageReporters: ['text', 'html'],
collectCoverageFrom: [
'<rootDir>/x-pack/plugins/logs_shared/{common,public,server}/**/*.{ts,tsx}',
'<rootDir>/x-pack/plugins/observability_solution/logs_shared/{common,public,server}/**/*.{ts,tsx}',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The component also has a `filters` prop that accepts valid es-query `filters`. T

## Center the view on a specific entry

By default the component will load at the bottom of the list, showing the newest entries. You can change the rendering point with the `center` prop. The prop takes a [`LogEntriesCursor`](https://github.com/elastic/kibana/blob/0a6c748cc837c016901f69ff05d81395aa2d41c8/x-pack/plugins/logs_shared/common/http_api/log_entries/common.ts#L9-L13).
By default the component will load at the bottom of the list, showing the newest entries. You can change the rendering point with the `center` prop. The prop takes a [`LogEntriesCursor`](https://github.com/elastic/kibana/blob/0a6c748cc837c016901f69ff05d81395aa2d41c8/x-pack/plugins/observability_solution/logs_shared/common/http_api/log_entries/common.ts#L9-L13).

```tsx
<LogStream
Expand Down
12 changes: 9 additions & 3 deletions x-pack/plugins/observability_solution/logs_shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"extends": "../../../tsconfig.base.json",
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "target/types",
"outDir": "target/types"
},
"include": ["../../../typings/**/*", "common/**/*", "public/**/*", "server/**/*", "types/**/*"],
"include": [
"../../../../typings/**/*",
"common/**/*",
"public/**/*",
"server/**/*",
"types/**/*"
],
"exclude": ["target/**/*"],
"kbn_references": [
"@kbn/core",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5072,7 +5072,7 @@
version "0.0.0"
uid ""

"@kbn/logs-shared-plugin@link:x-pack/plugins/logs_shared":
"@kbn/logs-shared-plugin@link:x-pack/plugins/observability_solution/logs_shared":
version "0.0.0"
uid ""

Expand Down

0 comments on commit 9b74006

Please sign in to comment.