Skip to content

Commit

Permalink
Merge branch 'main' into one-discover-logs-contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyghiani authored Jun 13, 2024
2 parents db98177 + 75f3af5 commit 9ecedd5
Show file tree
Hide file tree
Showing 1,280 changed files with 16,807 additions and 5,856 deletions.
2 changes: 2 additions & 0 deletions .buildkite/ftr_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ enabled:
- x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/exceptions/workflows/basic_license_essentials_tier/configs/serverless.config.ts
- x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/trial_license_complete_tier/configs/ess.config.ts
- x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_execution_logic/trial_license_complete_tier/configs/serverless.config.ts
- x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_gaps/trial_license_complete_tier/configs/ess.config.ts
- x-pack/test/security_solution_api_integration/test_suites/detections_response/detection_engine/rule_gaps/trial_license_complete_tier/configs/serverless.config.ts
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/basic_license_essentials_tier/configs/ess.config.ts
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/basic_license_essentials_tier/configs/serverless.config.ts
- x-pack/test/security_solution_api_integration/test_suites/detections_response/rules_management/rule_creation/trial_license_complete_tier/configs/ess.config.ts
Expand Down
6 changes: 3 additions & 3 deletions .buildkite/pipelines/esql_grammar_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ steps:
provider: gcp
machineType: n2-standard-2
preemptible: true
- command: .buildkite/scripts/steps/esql_generate_function_definitions.sh
label: Generate Function Definitions
timeout_in_minutes: 10
- command: .buildkite/scripts/steps/esql_generate_function_metadata.sh
label: Generate Function Metadata
timeout_in_minutes: 15
agents:
image: family/kibana-ubuntu-2004
imageProject: elastic-images-prod
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/scripts/lifecycle/pre_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ if [[ "$(curl -is metadata.google.internal || true)" ]]; then
echo "gcloud compute ssh --tunnel-through-iap --project elastic-kibana-ci --zone \"$(curl -sH Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/zone)\" \"$(curl -sH Metadata-Flavor:Google http://metadata.google.internal/computeMetadata/v1/instance/name)\""
echo ""
fi

if [[ "${BUILDKITE_LABEL:-}" == *"Run Dynamic Pipeline"* || "${BUILDKITE_LABEL:-}" == *"Upload Pipeline"* ]]; then
cat << EOF | buildkite-agent annotate --context "ctx-gobld-metrics" --style "info"
<details>
<summary>Agent information from gobld</summary>
EOF
fi
3 changes: 0 additions & 3 deletions .buildkite/scripts/packer_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ done
for version in $(cat versions.json | jq -r '.versions[].version'); do
node x-pack/plugins/security_solution/scripts/endpoint/agent_downloader --version "$version"
done

echo "--- Cloning repos for docs build"
node scripts/validate_next_docs --clone-only
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

VALIDATION_PACKAGE_DIR="packages/kbn-esql-validation-autocomplete"
EDITOR_PACKAGE_DIR="packages/kbn-text-based-editor"
GIT_SCOPE="$VALIDATION_PACKAGE_DIR/**/* $EDITOR_PACKAGE_DIR/**/*"

report_main_step () {
echo "--- $1"
}
Expand All @@ -19,7 +23,7 @@ main () {

.buildkite/scripts/bootstrap.sh

cd "$KIBANA_DIR/packages/kbn-esql-validation-autocomplete"
cd "$KIBANA_DIR/$VALIDATION_PACKAGE_DIR"

report_main_step "Generate function definitions"

Expand All @@ -29,9 +33,21 @@ main () {

yarn make:tests

report_main_step "Generate inline function docs"

cd "$KIBANA_DIR/$EDITOR_PACKAGE_DIR"

yarn make:docs $PARENT_DIR/elasticsearch

report_main_step "Run i18n check"

cd "$KIBANA_DIR"

node scripts/i18n_check.js --fix

# Check for differences
set +e
git diff --exit-code --quiet .
git diff --exit-code --quiet $GIT_SCOPE
if [ $? -eq 0 ]; then
echo "No differences found. Our work is done here."
exit
Expand All @@ -44,8 +60,8 @@ main () {
git config --global user.name "$KIBANA_MACHINE_USERNAME"
git config --global user.email '[email protected]'

PR_TITLE='[ES|QL] Update function definitions'
PR_BODY='This PR updates the function definitions based on the latest metadata from Elasticsearch.'
PR_TITLE='[ES|QL] Update function metadata'
PR_BODY='This PR updates the function definitions and inline docs based on the latest metadata from Elasticsearch.'

# Check if a PR already exists
pr_search_result=$(gh pr list --search "$PR_TITLE" --state open --author "$KIBANA_MACHINE_USERNAME" --limit 1 --json title -q ".[].title")
Expand All @@ -58,12 +74,12 @@ main () {
echo "No existing PR found. Committing changes."

# Make a commit
BRANCH_NAME="esql_generate_function_definitions_$(date +%s)"
BRANCH_NAME="esql_generate_function_metadata_$(date +%s)"

git checkout -b "$BRANCH_NAME"

git add ./**/*
git commit -m "Update function definitions"
git add $GIT_SCOPE
git commit -m "Update function metadata"

report_main_step "Changes committed. Creating pull request."

Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ x-pack/test/observability_ai_assistant_functional @elastic/obs-ai-assistant
/WORKSPACE.bazel @elastic/kibana-operations
/.buildkite/ @elastic/kibana-operations
/.buildkite/scripts/steps/esql_grammar_sync.sh @elastic/kibana-esql
/.buildkite/scripts/steps/esql_generate_function_definitions.sh @elastic/kibana-esql
/.buildkite/scripts/steps/esql_generate_function_metadata.sh @elastic/kibana-esql
/.buildkite/pipelines/esql_grammar_sync.yml @elastic/kibana-esql
/kbn_pm/ @elastic/kibana-operations
/x-pack/dev-tools @elastic/kibana-operations
Expand Down
2 changes: 1 addition & 1 deletion api_docs/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/actions
title: "actions"
image: https://source.unsplash.com/400x175/?github
description: API docs for the actions plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
---
import actionsObj from './actions.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/advanced_settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/advancedSettings
title: "advancedSettings"
image: https://source.unsplash.com/400x175/?github
description: API docs for the advancedSettings plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
---
import advancedSettingsObj from './advanced_settings.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/ai_assistant_management_selection.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiAssistantManagementSelection
title: "aiAssistantManagementSelection"
image: https://source.unsplash.com/400x175/?github
description: API docs for the aiAssistantManagementSelection plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiAssistantManagementSelection']
---
import aiAssistantManagementSelectionObj from './ai_assistant_management_selection.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/aiops.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/aiops
title: "aiops"
image: https://source.unsplash.com/400x175/?github
description: API docs for the aiops plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
---
import aiopsObj from './aiops.devdocs.json';
Expand Down
75 changes: 39 additions & 36 deletions api_docs/alerting.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1646,9 +1646,9 @@
"signature": [
"() => Promise<",
{
"pluginId": "alerting",
"pluginId": "@kbn/alerting-types",
"scope": "common",
"docId": "kibAlertingPluginApi",
"docId": "kibKbnAlertingTypesPluginApi",
"section": "def-common.AlertsHealth",
"text": "AlertsHealth"
},
Expand Down Expand Up @@ -2906,9 +2906,9 @@
"signature": [
"() => Promise<",
{
"pluginId": "alerting",
"pluginId": "@kbn/alerting-types",
"scope": "common",
"docId": "kibAlertingPluginApi",
"docId": "kibKbnAlertingTypesPluginApi",
"section": "def-common.AlertsHealth",
"text": "AlertsHealth"
},
Expand Down Expand Up @@ -5305,9 +5305,9 @@
"ResolveParams",
") => Promise<",
{
"pluginId": "alerting",
"pluginId": "@kbn/alerting-types",
"scope": "common",
"docId": "kibAlertingPluginApi",
"docId": "kibKbnAlertingTypesPluginApi",
"section": "def-common.ResolvedSanitizedRule",
"text": "ResolvedSanitizedRule"
},
Expand Down Expand Up @@ -6704,7 +6704,7 @@
"tags": [],
"label": "AlertingFrameworkHealth",
"description": [],
"path": "x-pack/plugins/alerting/common/index.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
Expand All @@ -6715,7 +6715,7 @@
"tags": [],
"label": "isSufficientlySecure",
"description": [],
"path": "x-pack/plugins/alerting/common/index.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false
},
Expand All @@ -6726,7 +6726,7 @@
"tags": [],
"label": "hasPermanentEncryptionKey",
"description": [],
"path": "x-pack/plugins/alerting/common/index.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false
},
Expand All @@ -6739,14 +6739,14 @@
"description": [],
"signature": [
{
"pluginId": "alerting",
"pluginId": "@kbn/alerting-types",
"scope": "common",
"docId": "kibAlertingPluginApi",
"docId": "kibKbnAlertingTypesPluginApi",
"section": "def-common.AlertsHealth",
"text": "AlertsHealth"
}
],
"path": "x-pack/plugins/alerting/common/index.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false
}
Expand Down Expand Up @@ -6904,7 +6904,7 @@
"tags": [],
"label": "AlertsHealth",
"description": [],
"path": "x-pack/plugins/alerting/common/rule.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
Expand All @@ -6918,15 +6918,15 @@
"signature": [
"{ status: ",
{
"pluginId": "alerting",
"pluginId": "@kbn/alerting-types",
"scope": "common",
"docId": "kibAlertingPluginApi",
"docId": "kibKbnAlertingTypesPluginApi",
"section": "def-common.HealthStatus",
"text": "HealthStatus"
},
"; timestamp: string; }"
],
"path": "x-pack/plugins/alerting/common/rule.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false
},
Expand All @@ -6940,15 +6940,15 @@
"signature": [
"{ status: ",
{
"pluginId": "alerting",
"pluginId": "@kbn/alerting-types",
"scope": "common",
"docId": "kibAlertingPluginApi",
"docId": "kibKbnAlertingTypesPluginApi",
"section": "def-common.HealthStatus",
"text": "HealthStatus"
},
"; timestamp: string; }"
],
"path": "x-pack/plugins/alerting/common/rule.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false
},
Expand All @@ -6962,15 +6962,15 @@
"signature": [
"{ status: ",
{
"pluginId": "alerting",
"pluginId": "@kbn/alerting-types",
"scope": "common",
"docId": "kibAlertingPluginApi",
"docId": "kibKbnAlertingTypesPluginApi",
"section": "def-common.HealthStatus",
"text": "HealthStatus"
},
"; timestamp: string; }"
],
"path": "x-pack/plugins/alerting/common/rule.ts",
"path": "packages/kbn-alerting-types/alerting_framework_health_types.ts",
"deprecated": false,
"trackAdoption": false
}
Expand Down Expand Up @@ -10422,18 +10422,6 @@
}
],
"enums": [
{
"parentPluginId": "alerting",
"id": "def-common.HealthStatus",
"type": "Enum",
"tags": [],
"label": "HealthStatus",
"description": [],
"path": "x-pack/plugins/alerting/common/rule.ts",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-common.MaintenanceWindowStatus",
Expand Down Expand Up @@ -10845,6 +10833,21 @@
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-common.INTERNAL_ALERTING_BACKFILL_SCHEDULE_API_PATH",
"type": "string",
"tags": [],
"label": "INTERNAL_ALERTING_BACKFILL_SCHEDULE_API_PATH",
"description": [],
"signature": [
"\"/internal/alerting/rules/backfill/_schedule\""
],
"path": "x-pack/plugins/alerting/common/index.ts",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-common.INTERNAL_ALERTING_SNOOZE_RULE",
Expand Down Expand Up @@ -11517,7 +11520,7 @@
},
"<unknown>, \"saved_object\"> & { outcome: string; alias_target_id?: string | undefined; }"
],
"path": "x-pack/plugins/alerting/common/rule.ts",
"path": "packages/kbn-alerting-types/rule_types.ts",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
Expand Down Expand Up @@ -11654,7 +11657,7 @@
},
"[]"
],
"path": "x-pack/plugins/alerting/common/rule.ts",
"path": "packages/kbn-alerting-types/rule_types.ts",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
Expand Down
2 changes: 1 addition & 1 deletion api_docs/alerting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/alerting
title: "alerting"
image: https://source.unsplash.com/400x175/?github
description: API docs for the alerting plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
---
import alertingObj from './alerting.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/apm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apm
title: "apm"
image: https://source.unsplash.com/400x175/?github
description: API docs for the apm plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm']
---
import apmObj from './apm.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/apm_data_access.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/apmDataAccess
title: "apmDataAccess"
image: https://source.unsplash.com/400x175/?github
description: API docs for the apmDataAccess plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apmDataAccess']
---
import apmDataAccessObj from './apm_data_access.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/asset_manager.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/assetManager
title: "assetManager"
image: https://source.unsplash.com/400x175/?github
description: API docs for the assetManager plugin
date: 2024-06-11
date: 2024-06-13
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'assetManager']
---
import assetManagerObj from './asset_manager.devdocs.json';
Expand Down
Loading

0 comments on commit 9ecedd5

Please sign in to comment.