Skip to content

Commit 7f78e6a

Browse files
authored
Merge branch 'main' into simple-filters-schema
2 parents f900770 + d978538 commit 7f78e6a

File tree

2,642 files changed

+30738
-12809
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,642 files changed

+30738
-12809
lines changed

.buildkite/ftr_workplace_ai_serverless_configs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ disabled:
33
- x-pack/platform/test/serverless/functional/config.workplace_ai.base.ts
44

55
# Empty configs
6-
- x-pack/solutions/workplace_ai/test/serverless/functional/configs/config.feature_flags.ts
7-
- x-pack/solutions/workplace_ai/test/serverless/api_integration/configs/config.feature_flags.ts
6+
- x-pack/solutions/workplaceai/test/serverless/functional/configs/config.feature_flags.ts
7+
- x-pack/solutions/workplaceai/test/serverless/api_integration/configs/config.feature_flags.ts
88

99
defaultQueue: 'n2-4-spot'
1010
enabled:
11-
- x-pack/solutions/workplace_ai/test/serverless/api_integration/configs/config.ts
12-
- x-pack/platform/test/serverless/api_integration/configs/workplace_ai/config.group1.ts
13-
- x-pack/solutions/workplace_ai/test/serverless/functional/configs/config.ts
14-
- x-pack/platform/test/serverless/functional/configs/workplace_ai/config.config_compat_mode.ts
15-
- x-pack/platform/test/serverless/functional/configs/workplace_ai/config.group1.ts
11+
- x-pack/solutions/workplaceai/test/serverless/api_integration/configs/config.ts
12+
- x-pack/platform/test/serverless/api_integration/configs/workplaceai/config.group1.ts
13+
- x-pack/solutions/workplaceai/test/serverless/functional/configs/config.ts
14+
- x-pack/platform/test/serverless/functional/configs/workplaceai/config.config_compat_mode.ts
15+
- x-pack/platform/test/serverless/functional/configs/workplaceai/config.group1.ts

.buildkite/pipeline-utils/ci-stats/pick_test_group_run_order.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export async function pickTestGroupRunOrder() {
254254
.filter(Boolean)
255255
: undefined;
256256
if (LIMIT_SOLUTIONS) {
257-
const validSolutions = ['observability', 'search', 'security', 'workplace_ai'];
257+
const validSolutions = ['observability', 'search', 'security', 'workplaceai'];
258258
const invalidSolutions = LIMIT_SOLUTIONS.filter((s) => !validSolutions.includes(s));
259259
if (invalidSolutions.length) throw new Error('Unsupported LIMIT_SOLUTIONS value');
260260
}

.buildkite/scripts/steps/artifacts/docker_image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fi
1717
KIBANA_BASE_IMAGE="docker.elastic.co/kibana-ci/kibana-serverless"
1818
export KIBANA_IMAGE="$KIBANA_BASE_IMAGE:$KIBANA_IMAGE_TAG"
1919

20-
KIBANA_WORKPLACE_AI_BASE_IMAGE="docker.elastic.co/kibana-ci/kibana-serverless-workplace_ai"
20+
KIBANA_WORKPLACE_AI_BASE_IMAGE="docker.elastic.co/kibana-ci/kibana-serverless-workplaceai"
2121
export KIBANA_WORKPLACE_AI_IMAGE="$KIBANA_WORKPLACE_AI_BASE_IMAGE:$KIBANA_IMAGE_TAG"
2222

2323
KIBANA_OBSERVABILITY_BASE_IMAGE="docker.elastic.co/kibana-ci/kibana-serverless-observability"
@@ -77,7 +77,7 @@ if [[ "$SKIP_BUILD" == "false" ]]; then
7777

7878
echo "--- Tag images"
7979
retag_image_with_architecture "$KIBANA_IMAGE" "kibana-serverless-$BASE_VERSION-docker-image"
80-
retag_image_with_architecture "$KIBANA_WORKPLACE_AI_IMAGE" "kibana-serverless-workplace_ai-$BASE_VERSION-docker-image"
80+
retag_image_with_architecture "$KIBANA_WORKPLACE_AI_IMAGE" "kibana-serverless-workplaceai-$BASE_VERSION-docker-image"
8181
retag_image_with_architecture "$KIBANA_OBSERVABILITY_IMAGE" "kibana-serverless-observability-$BASE_VERSION-docker-image"
8282
retag_image_with_architecture "$KIBANA_SEARCH_IMAGE" "kibana-serverless-search-$BASE_VERSION-docker-image"
8383
retag_image_with_architecture "$KIBANA_SECURITY_IMAGE" "kibana-serverless-security-$BASE_VERSION-docker-image"

.buildkite/scripts/steps/checks/telemetry.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ echo --- Check Telemetry Schema
99
if is_pr && ! is_auto_commit_disabled; then
1010
node scripts/telemetry_check --baseline "${GITHUB_PR_MERGE_BASE:-}" --fix
1111
check_for_changed_files "node scripts/telemetry_check" true
12-
else
12+
elif is_pr; then
1313
node scripts/telemetry_check --baseline "${GITHUB_PR_MERGE_BASE:-}"
14+
else
15+
# assume on-merge pipeline
16+
node scripts/telemetry_check --baseline "${BUILDKITE_BRANCH:-main}"
1417
fi

.buildkite/scripts/steps/cloud/purge_projects.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { getKibanaDir } from '#pipeline-utils';
1414
async function getPrProjects() {
1515
// BOOKMARK - List of Kibana project types
1616
const match =
17-
/^(keep.?)?kibana-pr-([0-9]+)-(elasticsearch|security|observability|workplace_ai)(?:-(ai_soc|logs_essentials))?$/;
17+
/^(keep.?)?kibana-pr-([0-9]+)-(elasticsearch|security|observability|workplaceai)(?:-(ai_soc|logs_essentials))?$/;
1818
try {
1919
// BOOKMARK - List of Kibana project types
2020
return (
@@ -52,12 +52,12 @@ async function deleteProject({
5252
name,
5353
}: {
5454
// BOOKMARK - List of Kibana project types
55-
type: 'elasticsearch' | 'security' | 'observability' | 'workplace_ai';
55+
type: 'elasticsearch' | 'security' | 'observability' | 'workplaceai';
5656
id: number;
5757
name: string;
5858
}) {
5959
try {
60-
// TODO handle the new 'workplace_ai' project type, and ideally rename 'elasticsearch' to 'search'
60+
// TODO handle the new 'workplaceai' project type, and ideally rename 'elasticsearch' to 'search'
6161
await projectRequest.delete(`/api/v1/serverless/projects/${type}/${id}`);
6262

6363
execSync(`.buildkite/scripts/common/deployment_credentials.sh unset ${name}`, {
@@ -103,7 +103,7 @@ async function purgeProjects() {
103103
} else if (
104104
!Boolean(
105105
pullRequest.labels.filter((label: any) =>
106-
/^ci:project-deploy-(elasticsearch|observability|log_essentials|security|workplace_ai|ai4soc)$/.test(
106+
/^ci:project-deploy-(elasticsearch|observability|log_essentials|security|workplaceai|ai4soc)$/.test(
107107
label.name
108108
)
109109
).length

.buildkite/scripts/steps/serverless/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ deploy() {
2727
security)
2828
PROJECT_TYPE_LABEL='Security'
2929
;;
30-
workplace_ai)
30+
workplaceai)
3131
PROJECT_TYPE_LABEL='Workplace AI'
3232
;;
3333
esac
@@ -190,7 +190,7 @@ is_pr_with_label "ci:project-deploy-elasticsearch" && deploy "elasticsearch"
190190
is_pr_with_label "ci:project-deploy-security" && deploy "security"
191191
is_pr_with_label "ci:project-deploy-ai4soc" && deploy "security" "ai_soc"
192192
is_pr_with_label "ci:project-deploy-log_essentials" && deploy "observability" "logs_essentials"
193-
is_pr_with_label "ci:project-deploy-workplace_ai" && deploy "workplace_ai"
193+
is_pr_with_label "ci:project-deploy-workplace_ai" && deploy "workplaceai"
194194
if is_pr_with_label "ci:project-deploy-observability" ; then
195195
# Only deploy observability if the PR is targeting main
196196
if [[ "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" == "main" ]]; then

.eslintrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,15 @@ module.exports = {
12751275
],
12761276
},
12771277
},
1278+
// Allow node.js imports only for the prebuilt rules package generation scripts
1279+
{
1280+
files: [
1281+
'x-pack/solutions/security/packages/test-api-clients/prebuilt_rules_package_generation/*.{js,mjs,ts,tsx}',
1282+
],
1283+
rules: {
1284+
'import/no-nodejs-modules': 'off',
1285+
},
1286+
},
12781287
{
12791288
// typescript only for front and back end, but excludes the test files.
12801289
// We use this section to add rules in which we do not want to apply to test files.

.github/CODEOWNERS

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,9 +1192,9 @@ x-pack/solutions/security/plugins/security_solution_serverless @elastic/security
11921192
x-pack/solutions/security/plugins/session_view @elastic/contextual-security-apps
11931193
x-pack/solutions/security/test
11941194
x-pack/solutions/security/test/plugin_functional/plugins/resolver_test @elastic/security-solution
1195-
x-pack/solutions/workplace_ai/plugins/serverless_workplace_ai @elastic/search-kibana @elastic/workchat-eng
1196-
x-pack/solutions/workplace_ai/plugins/workplace_ai_app @elastic/search-kibana @elastic/workchat-eng
1197-
x-pack/solutions/workplace_ai/test @elastic/workchat-eng
1195+
x-pack/solutions/workplaceai/plugins/serverless_workplace_ai @elastic/search-kibana @elastic/workchat-eng
1196+
x-pack/solutions/workplaceai/plugins/workplace_ai_app @elastic/search-kibana @elastic/workchat-eng
1197+
x-pack/solutions/workplaceai/test @elastic/workchat-eng
11981198
####
11991199
## Everything below this line overrides the default assignments for each package.
12001200
## Items lower in the file have higher precedence:
@@ -1214,6 +1214,8 @@ x-pack/platform/test/serverless/api_integration/test_suites/platform_security @e
12141214

12151215
# Data Discovery
12161216
/x-pack/platform/test/api_integration/services/data_view_api.ts @elastic/kibana-data-discovery
1217+
/src/platform/test/functional/page_objects/unified_field_list.ts @elastic/kibana-data-discovery
1218+
/src/platform/test/functional/page_objects/unified_tabs.ts @elastic/kibana-data-discovery
12171219
/src/platform/test/functional/fixtures/es_archiver/makelogs @elastic/kibana-data-discovery
12181220
/src/platform/test/functional/fixtures/es_archiver/large_fields @elastic/kibana-data-discovery # Assigned per only use: test/functional/apps/management/data_views/_test_huge_fields.ts
12191221
/x-pack/platform/test/functional/fixtures/kbn_archives/kibana_scripted_fields_on_logstash.json @elastic/kibana-data-discovery # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/platform/test/functional/apps/discover/async_scripted_fields.ts#L35
@@ -1893,19 +1895,15 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security
18931895
/src/platform/test/functional/services/global_nav.ts @elastic/appex-qa
18941896
/src/platform/test/functional/services/flyout.ts @elastic/appex-qa
18951897
/src/platform/test/functional/services/filter_bar.ts @elastic/appex-qa
1896-
/src/platform/test/functional/services/field_editor.ts @elastic/appex-qa
1898+
/src/platform/test/functional/services/field_editor.ts @elastic/kibana-data-discovery
18971899
/src/platform/test/functional/services/embedding.ts @elastic/appex-qa
1898-
/src/platform/test/functional/services/doc_table.ts @elastic/appex-qa
1899-
/src/platform/test/functional/services/data_grid.ts @elastic/appex-qa
1900+
/src/platform/test/functional/services/data_grid.ts @elastic/kibana-data-discovery
19001901
/src/platform/test/functional/services/combo_box.ts @elastic/appex-qa
1901-
/src/platform/test/functional/page_objects/unified_field_list.ts @elastic/appex-qa
1902-
/src/platform/test/functional/page_objects/unified_tabs.ts @elastic/appex-qa
19031902
/src/platform/test/functional/page_objects/time_picker.ts @elastic/appex-qa
19041903
/src/platform/test/functional/page_objects/index.ts @elastic/appex-qa
19051904
/src/platform/test/functional/page_objects/header_page.ts @elastic/appex-qa
19061905
/src/platform/test/functional/page_objects/error_page.ts @elastic/appex-qa
19071906
/src/platform/test/functional/page_objects/common_page.ts @elastic/appex-qa
1908-
/src/platform/test/functional/page_objects/space_settings.ts @elastic/appex-qa
19091907
/src/platform/test/functional/jest.config.js @elastic/appex-qa
19101908
/src/platform/test/functional/ftr_provider_context.ts @elastic/appex-qa
19111909
/src/platform/test/functional/fixtures/es_archiver/README.md @elastic/appex-qa
@@ -1946,7 +1944,6 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security
19461944
/src/platform/packages/shared/kbn-test/src/functional_test_runner @elastic/appex-qa
19471945
/packages/kbn-performance-testing-dataset-extractor @elastic/appex-qa
19481946
/x-pack/platform/test/serverless/api_integration/test_suites/elasticsearch_api @elastic/appex-qa
1949-
/x-pack/solutions/security/test/serverless/functional/test_suites/ftr/ @elastic/appex-qa
19501947
/x-pack/platform/test/serverless/functional/test_suites/home_page/ @elastic/appex-qa
19511948
/src/platform/packages/shared/kbn-es/src/stateful_resources/roles.yml @elastic/appex-qa
19521949
/x-pack/solutions/observability/test/api_integration_deployment_agnostic/ftr_provider_context.d.ts @elastic/appex-qa
@@ -1961,28 +1958,23 @@ x-pack/platform/plugins/shared/ml/server/models/data_recognizer/modules/security
19611958
/x-pack/platform/test/api_integration_basic/config.basic_license.ts @elastic/appex-qa
19621959
/x-pack/platform/test/api_integration_basic/ftr_provider_context.d.ts @elastic/appex-qa
19631960
/x-pack/solutions/security/test/README.md @elastic/appex-qa
1964-
/x-pack/solutions/security/test/kibana.jsonc @elastic/appex-qa
1965-
/x-pack/solutions/security/test/tsconfig.json @elastic/appex-qa
19661961
/x-pack/solutions/security/test/api_integration/config.ts @elastic/appex-qa
19671962
/x-pack/solutions/security/test/api_integration/ftr_provider_context.d.ts @elastic/appex-qa
19681963
/x-pack/solutions/security/test/api_integration/services/index.ts @elastic/appex-qa
19691964
/x-pack/solutions/security/test/alerting_api_integration/ftr_provider_context.d.ts @elastic/appex-qa
19701965
/x-pack/platform/test/serverless/shared @elastic/appex-qa
1971-
/x-pack/platform/test/functional/services/ml/api.ts @elastic/appex-qa # temporarily due to SKA tests relocation
19721966
/x-pack/platform/test/.gitignore @elastic/appex-qa
19731967
/x-pack/solutions/**/test/.gitignore @elastic/appex-qa
1974-
/x-pack/platform/test/functional/services/pipeline_list.ts @elastic/appex-qa
1975-
/x-pack/platform/test/functional/services/pipeline_editor.ts @elastic/appex-qa
19761968
/x-pack/platform/test/accessibility/ftr_provider_context.d.ts @elastic/appex-qa
19771969
/x-pack/platform/test/accessibility/page_objects.ts @elastic/appex-qa
19781970
/x-pack/platform/test/accessibility/services.ts @elastic/appex-qa
19791971
/x-pack/platform/test/serverless/api_integration/config.base.ts @elastic/appex-qa
19801972
/x-pack/platform/test/serverless/api_integration/ftr_provider_context.d.ts @elastic/appex-qa
19811973
/x-pack/platform/test/serverless/api_integration/services/ @elastic/appex-qa
19821974
/x-pack/platform/test/serverless/api_integration/configs/ @elastic/appex-qa
1983-
/x-pack/platform/test/serverless/functional/configs/ @elastic/appex-qa # temporarily due to SKA tests relocation
1984-
/x-pack/platform/test/serverless/functional/page_objects/ @elastic/appex-qa # temporarily due to SKA tests relocation
1985-
/x-pack/platform/test/serverless/functional/services/ @elastic/appex-qa # temporarily due to SKA tests relocation
1975+
/x-pack/platform/test/serverless/functional/configs/ @elastic/appex-qa
1976+
/x-pack/platform/test/serverless/functional/page_objects/ @elastic/appex-qa
1977+
/x-pack/platform/test/serverless/functional/services/ @elastic/appex-qa
19861978
/x-pack/platform/test/serverless/functional/config* @elastic/appex-qa
19871979
/x-pack/platform/test/serverless/functional/ftr_provider_context.d.ts @elastic/appex-qa
19881980

@@ -2077,7 +2069,7 @@ x-pack/platform/test/plugin_api_integration/test_suites/platform/ @elastic/kiban
20772069
/config/ @elastic/kibana-core
20782070
/config/serverless.yml @elastic/kibana-core @elastic/kibana-security
20792071
/config/serverless.*.yml @elastic/kibana-core @elastic/kibana-security
2080-
/config/serverless.workplace_ai.yml @elastic/kibana-core @elastic/kibana-security @elastic/search-kibana
2072+
/config/serverless.workplaceai.yml @elastic/kibana-core @elastic/kibana-security @elastic/search-kibana
20812073
/config/serverless.es.yml @elastic/kibana-core @elastic/kibana-security @elastic/search-kibana
20822074
/config/serverless.oblt.yml @elastic/kibana-core @elastic/kibana-security @elastic/observability-ui
20832075
/config/serverless.oblt.complete.yml @elastic/kibana-core @elastic/kibana-security @elastic/observability-ui
@@ -2141,6 +2133,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi
21412133
/x-pack/platform/test/api_integration/apis/cloud @elastic/kibana-security # Assigned per https://github.com/elastic/kibana/pull/198444
21422134
/src/platform/test/plugin_functional/snapshots/baseline/hardening @elastic/kibana-security # Assigned per https://github.com/elastic/kibana/pull/190716
21432135
/src/platform/test/functional/page_objects/login_page.ts @elastic/kibana-security
2136+
/src/platform/test/functional/page_objects/space_settings.ts @elastic/kibana-security
21442137
/x-pack/solutions/observability/test/serverless/functional/test_suites/role_management @elastic/kibana-security
21452138
/x-pack/platform/test/functional/config_security_basic.ts @elastic/kibana-security
21462139
/x-pack/platform/test/functional/page_objects/user_profile_page.ts @elastic/kibana-security
@@ -2283,9 +2276,9 @@ x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/se
22832276
/x-pack/solutions/search/test/functional_search/ @elastic/search-kibana
22842277
/x-pack/solutions/search/test/api_integration/apis/search_playground/ @elastic/search-kibana
22852278

2286-
# workplace_ai
2287-
/x-pack/solutions/workplace_ai/test/serverless/api_integration/configs/config.ts @elastic/search-kibana @elastic/appex-qa
2288-
/x-pack/solutions/workplace_ai/test/serverless/functional/configs/config.ts @elastic/search-kibana @elastic/appex-qa
2279+
# workplaceai
2280+
/x-pack/solutions/workplaceai/test/serverless/api_integration/configs/config.ts @elastic/search-kibana @elastic/appex-qa
2281+
/x-pack/solutions/workplaceai/test/serverless/functional/configs/config.ts @elastic/search-kibana @elastic/appex-qa
22892282
/x-pack/platform/test/onechat_api_integration @elastic/search-kibana @elastic/workchat-eng
22902283
/x-pack/platform/test/onechat_functional @elastic/search-kibana @elastic/workchat-eng
22912284
/x-pack/platform/test/functional/page_objects/onechat_page.ts @elastic/workchat-eng
@@ -2383,6 +2376,8 @@ x-pack/platform/test/functional/page_objects/search_profiler_page.ts @elastic/se
23832376
#CC# /x-pack/plugins/cross_cluster_replication/ @elastic/kibana-management
23842377

23852378
# Security Solution
2379+
/x-pack/solutions/security/test/kibana.jsonc @elastic/security-solution
2380+
/x-pack/solutions/security/test/tsconfig.json @elastic/security-solution
23862381
/x-pack/solutions/security/test/fixtures/kbn_archives/timelines/7.15.0_space @elastic/security-solution # Assigned per only use: https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/test/security_solution_api_integration/test_suites/investigation/timeline/tests/timeline_migrations.ts#L58
23872382
/x-pack/solutions/security/test/fixtures/es_archives/packetbeat @elastic/security-solution
23882383
/x-pack/solutions/security/test/fixtures/es_archives/security_solution @elastic/security-solution

.github/copilot-instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ yarn start --no-base-path # Disable basePath
277277
yarn es serverless --projectType=oblt # Observability
278278
yarn es serverless --projectType=security # Security
279279
yarn es serverless --projectType=es # Elasticsearch
280-
yarn es serverless --projectType=workplace_ai # Workplace AI
280+
yarn es serverless --projectType=workplaceai # Workplace AI
281281

282282
# 2. THEN: Start Kibana in MATCHING serverless mode
283283
# Kibana uses --serverless flag (NOT --projectType)
@@ -286,7 +286,7 @@ yarn serverless # Generic (uses config or defaults to 'es')
286286
yarn serverless-oblt # Matches ES projectType=oblt
287287
yarn serverless-security # Matches ES projectType=security
288288
yarn serverless-es # Matches ES projectType=es
289-
yarn serverless-workplace-ai # Matches ES projectType=workplace_ai
289+
yarn serverless-workplace-ai # Matches ES projectType=workplaceai
290290

291291
# Login: elastic_serverless / changeme (or system_indices_superuser / changeme)
292292
# Note: Cannot use basePath in serverless mode

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ webpackstats.json
6767
!/config/README.md
6868
!/config/serverless.yml
6969
!/config/serverless.es.yml
70-
!/config/serverless.workplace_ai.yml
70+
!/config/serverless.workplaceai.yml
7171
!/config/serverless.oblt.yml
7272
!/config/serverless.oblt.complete.yml
7373
!/config/serverless.oblt.logs_essentials.yml

0 commit comments

Comments
 (0)