Skip to content

Commit

Permalink
Merge branch 'main' into feat/react-embeddable
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 authored Nov 25, 2024
2 parents a6ffd5c + c6a278b commit 684b106
Show file tree
Hide file tree
Showing 295 changed files with 8,527 additions and 1,982 deletions.
1 change: 1 addition & 0 deletions .buildkite/pipeline-resource-definitions/locations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-artifacts-trigger.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-chrome-forward-testing.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-codeql.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-console-definitions-sync.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-coverage-daily.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-deploy-project.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-es-forward-testing.yml
Expand Down
14 changes: 13 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,14 +952,15 @@ module.exports = {
{
files: [
'x-pack/plugins/observability_solution/**/*.{ts,tsx}',
'x-pack/plugins/{streams,streams_app}/**/*.{ts,tsx}',
'x-pack/packages/observability/**/*.{ts,tsx}',
],
rules: {
'react-hooks/exhaustive-deps': [
'error',
{
additionalHooks:
'^(useAbortableAsync|useMemoWithAbortSignal|useFetcher|useProgressiveFetcher|useBreadcrumb|useAsync|useTimeRangeAsync|useAutoAbortedHttpClient)$',
'^(useAbortableAsync|useMemoWithAbortSignal|useFetcher|useProgressiveFetcher|useBreadcrumb|useAsync|useTimeRangeAsync|useAutoAbortedHttpClient|use.*Fetch)$',
},
],
},
Expand All @@ -968,6 +969,7 @@ module.exports = {
files: [
'x-pack/plugins/aiops/**/*.tsx',
'x-pack/plugins/observability_solution/**/*.tsx',
'x-pack/plugins/{streams,streams_app}/**/*.{ts,tsx}',
'src/plugins/ai_assistant_management/**/*.tsx',
'x-pack/packages/observability/**/*.{ts,tsx}',
],
Expand All @@ -984,6 +986,7 @@ module.exports = {
{
files: [
'x-pack/plugins/observability_solution/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'x-pack/plugins/{streams,streams_app}/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'src/plugins/ai_assistant_management/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
'x-pack/packages/observability/logs_overview/**/!(*.stories.tsx|*.test.tsx|*.storybook_decorator.tsx|*.mock.tsx)',
],
Expand Down Expand Up @@ -2015,6 +2018,15 @@ module.exports = {
'@kbn/imports/no_group_crossing_imports': 'warn',
},
},
{
files: ['packages/kbn-dependency-usage/**/*.{ts,tsx}'],
rules: {
// disabling it since package is a CLI tool
'no-console': 'off',
// disabling it since package is marked as module and it requires extension for files written
'@kbn/imports/uniform_imports': 'off',
},
},
],
};

Expand Down
52 changes: 51 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ packages/kbn-data-service @elastic/kibana-visualizations @elastic/kibana-data-di
packages/kbn-data-stream-adapter @elastic/security-threat-hunting
packages/kbn-data-view-utils @elastic/kibana-data-discovery
packages/kbn-datemath @elastic/kibana-data-discovery
packages/kbn-dependency-usage @elastic/kibana-security
packages/kbn-dev-cli-errors @elastic/kibana-operations
packages/kbn-dev-cli-runner @elastic/kibana-operations
packages/kbn-dev-proc-runner @elastic/kibana-operations
Expand Down Expand Up @@ -977,6 +978,7 @@ x-pack/plugins/spaces @elastic/kibana-security
x-pack/plugins/stack_alerts @elastic/response-ops
x-pack/plugins/stack_connectors @elastic/response-ops
x-pack/plugins/streams @simianhacker @flash1293 @dgieselaar
x-pack/plugins/streams_app @simianhacker @flash1293 @dgieselaar
x-pack/plugins/task_manager @elastic/response-ops
x-pack/plugins/telemetry_collection_xpack @elastic/kibana-core
x-pack/plugins/threat_intelligence @elastic/security-threat-hunting-investigations
Expand Down Expand Up @@ -1047,6 +1049,23 @@ x-pack/test_serverless/api_integration/test_suites/common/platform_security @ela


# Data Discovery
/x-pack/test/functional/fixtures/kbn_archiver/kibana_scripted_fields_on_logstash.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/discover/async_scripted_fields.ts#L35
/x-pack/test/functional/es_archives/getting_started/shakespeare @elastic/kibana-data-discovery
/x-pack/test/functional/fixtures/kbn_archiver/discover @elastic/kibana-data-discovery
/test/functional/fixtures/kbn_archiver/unmapped_fields.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/discover/group7/_indexpattern_with_unmapped_fields.ts#L28
/test/functional/fixtures/kbn_archiver/testlargestring.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/discover/group5/_large_string.ts#L28
/test/functional/fixtures/kbn_archiver/message_with_newline.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/discover/classic/_doc_table_newline.ts#L26
/test/functional/fixtures/kbn_archiver/invalid_scripted_field.json @elastic/kibana-data-discovery
/test/functional/fixtures/kbn_archiver/index_pattern_without_timefield.json @elastic/kibana-data-discovery
/test/functional/fixtures/kbn_archiver/discover @elastic/kibana-data-discovery
/test/functional/fixtures/kbn_archiver/discover.json @elastic/kibana-data-discovery
/test/functional/fixtures/kbn_archiver/date_nested.json @elastic/kibana-data-discovery
/test/functional/fixtures/kbn_archiver/date_* @elastic/kibana-data-discovery
/test/functional/fixtures/es_archiver/unmapped_fields @elastic/kibana-data-discovery # Assigned per the only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/discover/group7/_indexpattern_with_unmapped_fields.ts#L26
/test/functional/fixtures/es_archiver/message_with_newline @elastic/kibana-data-discovery # Assigned per the only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/discover/classic/_doc_table_newline.ts#L24
/test/functional/fixtures/es_archiver/hamlet @elastic/kibana-data-discovery # Assigned per the only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/discover/group5/_large_string.ts#L30
/test/api_integration/fixtures/kbn_archiver/index_patterns @elastic/kibana-data-discovery
/test/api_integration/fixtures/es_archiver/index_patterns @elastic/kibana-data-discovery
/test/functional/fixtures/es_archiver/alias @elastic/kibana-data-discovery
/test/functional/page_objects/context_page.ts @elastic/kibana-data-discovery
/test/functional/services/data_views.ts @elastic/kibana-data-discovery
Expand Down Expand Up @@ -1119,6 +1138,16 @@ src/plugins/discover/public/context_awareness/profile_providers/security @elasti
/x-pack/test/screenshot_creation @elastic/platform-docs

# Visualizations
/x-pack/test/functional/fixtures/kbn_archiver/rollup @elastic/kibana-visualizations # Assigned per the only uses are in lens and tsvb tests
/x-pack/test/functional/fixtures/kbn_archiver/hybrid_dataview.json @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/visualize/hybrid_visualization.ts#L20
/x-pack/test/functional/es_archives/pre_calculated_histogram @elastic/kibana-visualizations # Assigned per usages
/x-pack/test/functional/es_archives/hybrid/rollup @elastic/kibana-visualizations @elastic/search-kibana # Assigned per usage
/x-pack/test/functional/es_archives/hybrid/logstash @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/visualize/hybrid_visualization.ts#L22
/x-pack/test/functional/es_archives/graph @elastic/kibana-visualizations
/x-pack/test/functional/es_archives/visualize @elastic/kibana-visualizations
/test/functional/fixtures/kbn_archiver/visualize.json @elastic/kibana-visualizations
/test/functional/fixtures/kbn_archiver/managed_content.json @elastic/kibana-visualizations # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/managed_content/managed_content.ts#L38
/test/api_integration/fixtures/kbn_archiver/event_annotations/event_annotations.json @elastic/kibana-visualizations
/test/functional/page_objects/unified_search_page.ts @elastic/kibana-visualizations # Assigned per https://github.com/elastic/kibana/pull/200132#discussion_r1847188168
/test/functional/apps/getting_started/*.ts @elastic/kibana-visualizations # Assigned per https://github.com/elastic/kibana/pull/199767#discussion_r1840485031
/x-pack/test/upgrade/apps/graph @elastic/kibana-visualizations
Expand Down Expand Up @@ -1213,6 +1242,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
/x-pack/test/observability_ai_assistant_api_integration @elastic/obs-ai-assistant
/x-pack/test/observability_ai_assistant_functional @elastic/obs-ai-assistant
/x-pack/test_serverless/**/test_suites/observability/ai_assistant @elastic/obs-ai-assistant
/x-pack/test/functional/es_archives/observability/ai_assistant @elastic/obs-ai-assistant

# Infra Obs
## This plugin mostly contains the codebase for the infra services, but also includes some code for the Logs UI app.
Expand Down Expand Up @@ -1288,7 +1318,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
/x-pack/test/functional/apps/infra/logs @elastic/obs-ux-logs-team

# Observability UX management team
/x-pack/test/api_integration/services/data_view_api.ts @elastic/obs-ux-management-team
/test/api_integration/apis/suggestions @elastic/obs-ux-management-team # Assigned per https://github.com/elastic/kibana/pull/200950#discussion_r1853705079
/x-pack/test/api_integration/services/slo.ts @elastic/obs-ux-management-team
/x-pack/test/functional/services/slo @elastic/obs-ux-management-team
/x-pack/test/functional/apps/slo @elastic/obs-ux-management-team
Expand Down Expand Up @@ -1400,6 +1430,7 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
### END Observability Plugins

# Presentation
/test/functional/fixtures/kbn_archiver/legacy.json @elastic/kibana-presentation # Assigned per https://github.com/elastic/kibana/pull/200934#discussion_r1856407606
/x-pack/test/functional/fixtures/kbn_archiver/maps.json @elastic/kibana-presentation
/x-pack/test/functional/fixtures/kbn_archiver/canvas @elastic/kibana-presentation
/x-pack/test/functional/es_archives/dashboard/async_search @elastic/kibana-presentation
Expand Down Expand Up @@ -1664,6 +1695,16 @@ packages/kbn-monaco/src/esql @elastic/kibana-esql
/x-pack/test/api_integration/deployment_agnostic/services/ @elastic/appex-qa

# Core
/test/api_integration/fixtures/kbn_archiver/management/saved_objects/relationships.json @elastic/kibana-core @elastic/kibana-data-discovery
/x-pack/test/functional/es_archives/lists @elastic/kibana-core
/test/functional/fixtures/kbn_archiver/saved_search.json @elastic/kibana-core # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/interpreter_functional/test_suites/run_pipeline/esaggs.ts#L100
/test/functional/fixtures/kbn_archiver/saved_objects_management/show_relationships.json @elastic/kibana-core # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/saved_objects_management/show_relationships.ts#L20
/test/functional/fixtures/kbn_archiver/saved_objects_management/hidden_from_http_apis.json @elastic/kibana-core
/test/functional/fixtures/kbn_archiver/saved_objects_management/edit_saved_object.json @elastic/kibana-core # Assigned per only use: https://github.com/elastic/kibana/blob/main/test/functional/apps/saved_objects_management/inspect_saved_objects.ts#L40
/test/functional/fixtures/es_archiver/saved_objects_management @elastic/kibana-core
/test/api_integration/fixtures/es_archiver/saved_objects @elastic/kibana-core
/test/api_integration/fixtures/kbn_archiver/saved_objects @elastic/kibana-core
/test/interpreter_functional @elastic/kibana-core # Assigned per https://github.com/elastic/kibana/blob/main/test/interpreter_functional/plugins/kbn_tp_run_pipeline/kibana.jsonc#L4
/test/api_integration/apis/general/*.js @elastic/kibana-core # Assigned per https://github.com/elastic/kibana/pull/199795/files/894a8ede3f9d0398c5af56bf5a82654a9bc0610b#r1846691639
/x-pack/test/plugin_api_integration/plugins/feature_usage_test @elastic/kibana-core
/x-pack/test/functional/page_objects/navigational_search.ts @elastic/kibana-core
Expand Down Expand Up @@ -1916,6 +1957,12 @@ x-pack/plugins/cloud_integrations/cloud_full_story/server/config.ts @elastic/kib

# Enterprise Search
# search
/x-pack/test/functional/es_archives/data/search_sessions @elastic/search-kibana
/x-pack/test/common/services/search_secure.ts @elastic/search-kibana
/test/functional/page_objects/unified_search_page.ts @elastic/search-kibana
/test/functional/fixtures/kbn_archiver/ccs @elastic/search-kibana
/test/functional/fixtures/kbn_archiver/annotation_listing_page_search.json @elastic/search-kibana
/test/functional/fixtures/es_archiver/search/downsampled @elastic/search-kibana
/x-pack/test/functional_solution_sidenav/tests/search_sidenav.ts @elastic/search-kibana
/x-pack/test/functional/services/search_sessions.ts @elastic/search-kibana
/x-pack/test/functional/page_objects/search_* @elastic/search-kibana
Expand All @@ -1936,6 +1983,9 @@ x-pack/test/api_integration/apis/management/index_management/inference_endpoints
/x-pack/test/functional_search/ @elastic/search-kibana

# Management Experience - Deployment Management
/test/functional/fixtures/kbn_archiver/management.json @elastic/kibana-management @elastic/kibana-data-discovery # Assigned per 2 uses: test/functional/apps/management/_import_objects.ts && test/functional/apps/management/data_views/_scripted_fields_filter.ts
/x-pack/test/functional/fixtures/kbn_archiver/home/feature_controls/security/security.json @elastic/kibana-management
/x-pack/test/functional/es_archives/upgrade_assistant @elastic/kibana-management
/x-pack/test/functional/services/ace_editor.js @elastic/kibana-management
/x-pack/test/functional/page_objects/remote_clusters_page.ts @elastic/kibana-management
/x-pack/test/stack_functional_integration/apps/ccs @elastic/kibana-management
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ target
*.iml
*.log
types.eslint.config.js
types.eslint.config.cjs
__tmp__

# Ignore example plugin builds
Expand Down Expand Up @@ -159,3 +160,4 @@ x-pack/test/security_solution_playwright/playwright/.cache/
x-pack/test/security_solution_playwright/.auth/
x-pack/test/security_solution_playwright/.env
.codeql
.dependency-graph-log.json
4 changes: 4 additions & 0 deletions docs/developer/plugin-list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,10 @@ routes, etc.
|This plugin provides an interface to manage streams
|{kib-repo}blob/{branch}/x-pack/plugins/streams_app/README.md[streamsApp]
|Home of the Streams app plugin, which allows users to manage Streams via the UI.
|{kib-repo}blob/{branch}/x-pack/plugins/observability_solution/synthetics/README.md[synthetics]
|The purpose of this plugin is to provide users of Heartbeat more visibility of what's happening
in their infrastructure.
Expand Down
2 changes: 1 addition & 1 deletion docs/discover/document-explorer.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ image:images/discover-customize-table.png[Options to customize the table in Disc
[[document-explorer-columns]]
==== Reorder and resize the columns

* To move a single column, open the column's contextual options, and select *Move left* or *Move right* in the available options.
* To move a single column, drag its header and drop it to the position you want. You can also open the column's contextual options, and select *Move left* or *Move right* in the available options.

* To move multiple columns, click *Columns*.
In the pop-up, drag the column names to their new order.
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@
"@kbn/status-plugin-a-plugin": "link:test/server_integration/plugins/status_plugin_a",
"@kbn/status-plugin-b-plugin": "link:test/server_integration/plugins/status_plugin_b",
"@kbn/std": "link:packages/kbn-std",
"@kbn/streams-app-plugin": "link:x-pack/plugins/streams_app",
"@kbn/streams-plugin": "link:x-pack/plugins/streams",
"@kbn/synthetics-plugin": "link:x-pack/plugins/observability_solution/synthetics",
"@kbn/synthetics-private-location": "link:x-pack/packages/kbn-synthetics-private-location",
Expand Down Expand Up @@ -1221,7 +1222,7 @@
"query-string": "^6.13.2",
"rbush": "^3.0.1",
"re-resizable": "^6.9.9",
"re2js": "0.4.2",
"re2js": "0.4.3",
"react": "^17.0.2",
"react-diff-view": "^3.2.1",
"react-dom": "^17.0.2",
Expand Down Expand Up @@ -1429,6 +1430,7 @@
"@kbn/core-ui-settings-server-mocks": "link:packages/core/ui-settings/core-ui-settings-server-mocks",
"@kbn/core-usage-data-server-mocks": "link:packages/core/usage-data/core-usage-data-server-mocks",
"@kbn/cypress-config": "link:packages/kbn-cypress-config",
"@kbn/dependency-usage": "link:packages/kbn-dependency-usage",
"@kbn/dev-cli-errors": "link:packages/kbn-dev-cli-errors",
"@kbn/dev-cli-runner": "link:packages/kbn-dev-cli-runner",
"@kbn/dev-proc-runner": "link:packages/kbn-dev-proc-runner",
Expand Down Expand Up @@ -1708,6 +1710,7 @@
"cypress-recurse": "^1.35.2",
"date-fns": "^2.29.3",
"dependency-check": "^4.1.0",
"dependency-cruiser": "^16.4.2",
"ejs": "^3.1.10",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/deeplinks/observability/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export const OBLT_UX_APP_ID = 'ux';
export const OBLT_PROFILING_APP_ID = 'profiling';

export const INVENTORY_APP_ID = 'inventory';

export const STREAMS_APP_ID = 'streams';
13 changes: 10 additions & 3 deletions packages/deeplinks/observability/deep_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
OBLT_UX_APP_ID,
OBLT_PROFILING_APP_ID,
INVENTORY_APP_ID,
STREAMS_APP_ID,
} from './constants';

type LogsApp = typeof LOGS_APP_ID;
Expand All @@ -36,6 +37,7 @@ type AiAssistantApp = typeof AI_ASSISTANT_APP_ID;
type ObltUxApp = typeof OBLT_UX_APP_ID;
type ObltProfilingApp = typeof OBLT_PROFILING_APP_ID;
type InventoryApp = typeof INVENTORY_APP_ID;
type StreamsApp = typeof STREAMS_APP_ID;

export type AppId =
| LogsApp
Expand All @@ -50,7 +52,8 @@ export type AppId =
| AiAssistantApp
| ObltUxApp
| ObltProfilingApp
| InventoryApp;
| InventoryApp
| StreamsApp;

export type LogsLinkId = 'log-categories' | 'settings' | 'anomalies' | 'stream';

Expand Down Expand Up @@ -83,13 +86,16 @@ export type SyntheticsLinkId = 'certificates' | 'overview';

export type ProfilingLinkId = 'stacktraces' | 'flamegraphs' | 'functions';

export type StreamsLinkId = 'overview';

export type LinkId =
| LogsLinkId
| ObservabilityOverviewLinkId
| MetricsLinkId
| ApmLinkId
| SyntheticsLinkId
| ProfilingLinkId;
| ProfilingLinkId
| StreamsLinkId;

export type DeepLinkId =
| AppId
Expand All @@ -99,4 +105,5 @@ export type DeepLinkId =
| `${ApmApp}:${ApmLinkId}`
| `${SyntheticsApp}:${SyntheticsLinkId}`
| `${ObltProfilingApp}:${ProfilingLinkId}`
| `${InventoryApp}:${InventoryLinkId}`;
| `${InventoryApp}:${InventoryLinkId}`
| `${StreamsApp}:${StreamsLinkId}`;
Loading

0 comments on commit 684b106

Please sign in to comment.