Skip to content

Commit

Permalink
Merge branch 'main' of github.com:elastic/kibana into rule-execution-…
Browse files Browse the repository at this point in the history
…context
  • Loading branch information
dgieselaar committed Nov 28, 2021
2 parents cb46022 + 3223032 commit 8528192
Show file tree
Hide file tree
Showing 3,490 changed files with 30,448 additions and 17,867 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .buildkite/pipelines/hourly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ steps:
- command: .buildkite/scripts/steps/checks.sh
label: 'Checks'
agents:
queue: c2-4
queue: c2-8
key: checks
timeout_in_minutes: 120

Expand Down
8 changes: 7 additions & 1 deletion .buildkite/scripts/build_kibana.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ else
fi

if [[ "${GITHUB_PR_LABELS:-}" == *"ci:deploy-cloud"* ]]; then
echo "--- Build Kibana Cloud Distribution"
echo "--- Build and push Kibana Cloud Distribution"

echo "$KIBANA_DOCKER_PASSWORD" | docker login -u "$KIBANA_DOCKER_USERNAME" --password-stdin docker.elastic.co
trap 'docker logout docker.elastic.co' EXIT

node scripts/build \
--skip-initialize \
--skip-generic-folders \
--skip-platform-folders \
--skip-archives \
--docker-images \
--docker-tag-qualifier="$GIT_COMMIT" \
--docker-push \
--skip-docker-ubi \
--skip-docker-centos \
--skip-docker-contexts
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/scripts/common/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export TEST_BROWSER_HEADLESS=1

export ELASTIC_APM_ENVIRONMENT=ci
export ELASTIC_APM_TRANSACTION_SAMPLE_RATE=0.1
export ELASTIC_APM_SERVER_URL=https://kibana-ci-apm.apm.us-central1.gcp.cloud.es.io
export ELASTIC_APM_SECRET_TOKEN=7YKhoXsO4MzjhXjx2c

if is_pr; then
if [[ "${GITHUB_PR_LABELS:-}" == *"ci:collect-apm"* ]]; then
Expand Down
6 changes: 6 additions & 0 deletions .buildkite/scripts/lifecycle/pre_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ export GITHUB_TOKEN
KIBANA_CI_REPORTER_KEY=$(retry 5 5 vault read -field=value secret/kibana-issues/dev/kibanamachine-reporter)
export KIBANA_CI_REPORTER_KEY

KIBANA_DOCKER_USERNAME="$(retry 5 5 vault read -field=username secret/kibana-issues/dev/container-registry)"
export KIBANA_DOCKER_USERNAME

KIBANA_DOCKER_PASSWORD="$(retry 5 5 vault read -field=password secret/kibana-issues/dev/container-registry)"
export KIBANA_DOCKER_PASSWORD

# Setup Failed Test Reporter Elasticsearch credentials
{
TEST_FAILURES_ES_CLOUD_ID=$(retry 5 5 vault read -field=cloud_id secret/kibana-issues/dev/failed_tests_reporter_es)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ checks-reporter-with-killswitch "Build TS Refs" \
--no-cache \
--force

set +e;
echo "--- running check types and build api docs in parallel";

checks-reporter-with-killswitch "Check Types" \
node scripts/type_check &> target/check_types.log &
check_types_pid=$!
Expand Down
7 changes: 3 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
/x-pack/plugins/lens/ @elastic/kibana-vis-editors
/src/plugins/advanced_settings/ @elastic/kibana-vis-editors
/src/plugins/charts/ @elastic/kibana-vis-editors
/src/plugins/kibana_legacy/ @elastic/kibana-vis-editors
/src/plugins/vis_default_editor/ @elastic/kibana-vis-editors
/src/plugins/vis_types/metric/ @elastic/kibana-vis-editors
/src/plugins/vis_types/table/ @elastic/kibana-vis-editors
Expand Down Expand Up @@ -68,18 +67,18 @@
/src/plugins/embeddable/ @elastic/kibana-app-services
/src/plugins/expressions/ @elastic/kibana-app-services
/src/plugins/field_formats/ @elastic/kibana-app-services
/src/plugins/index_pattern_editor/ @elastic/kibana-app-services
/src/plugins/data_view_editor/ @elastic/kibana-app-services
/src/plugins/inspector/ @elastic/kibana-app-services
/src/plugins/kibana_react/ @elastic/kibana-app-services
/src/plugins/kibana_react/public/code_editor @elastic/kibana-presentation
/src/plugins/kibana_utils/ @elastic/kibana-app-services
/src/plugins/navigation/ @elastic/kibana-app-services
/src/plugins/share/ @elastic/kibana-app-services
/src/plugins/ui_actions/ @elastic/kibana-app-services
/src/plugins/index_pattern_field_editor @elastic/kibana-app-services
/src/plugins/data_view_field_editor @elastic/kibana-app-services
/src/plugins/screenshot_mode @elastic/kibana-app-services
/src/plugins/bfetch/ @elastic/kibana-app-services
/src/plugins/index_pattern_management/ @elastic/kibana-app-services
/src/plugins/data_view_management/ @elastic/kibana-app-services
/src/plugins/inspector/ @elastic/kibana-app-services
/x-pack/examples/ui_actions_enhanced_examples/ @elastic/kibana-app-services
/x-pack/plugins/data_enhanced/ @elastic/kibana-app-services
Expand Down
8 changes: 3 additions & 5 deletions .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"home": "src/plugins/home",
"flot": "packages/kbn-ui-shared-deps-src/src/flot_charts",
"charts": "src/plugins/charts",
"customIntegrations": "src/plugins/custom_integrations",
"esUi": "src/plugins/es_ui_shared",
"devTools": "src/plugins/dev_tools",
"expressions": "src/plugins/expressions",
Expand All @@ -42,12 +41,11 @@
"monaco": "packages/kbn-monaco/src",
"esQuery": "packages/kbn-es-query/src",
"presentationUtil": "src/plugins/presentation_util",
"indexPatternEditor": "src/plugins/index_pattern_editor",
"indexPatternFieldEditor": "src/plugins/index_pattern_field_editor",
"indexPatternManagement": "src/plugins/index_pattern_management",
"indexPatternEditor": "src/plugins/data_view_editor",
"indexPatternFieldEditor": "src/plugins/data_view_field_editor",
"indexPatternManagement": "src/plugins/data_view_management",
"interactiveSetup": "src/plugins/interactive_setup",
"advancedSettings": "src/plugins/advanced_settings",
"kibana_legacy": "src/plugins/kibana_legacy",
"kibanaOverview": "src/plugins/kibana_overview",
"kibana_react": "src/legacy/core_plugins/kibana_react",
"kibana-react": "src/plugins/kibana_react",
Expand Down
37 changes: 24 additions & 13 deletions api_docs/advanced_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,14 @@
"type": "Function",
"tags": [],
"label": "register",
"description": [],
"description": [
"/**\n * Attempts to register the provided component, with the ability to optionally allow\n * the component to override an existing one.\n *\n * If the intent is to override, then `allowOverride` must be set to true, otherwise an exception is thrown.\n *\n * @param id the id of the component to register\n * @param component the component\n * @param allowOverride (default: false) - optional flag to allow this component to override a previously registered component\n */"
],
"signature": [
"(id: Id, component: React.ComponentType<Record<string, any> | undefined>, allowOverride?: boolean) => void"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false,
"returnComment": [],
"children": [
{
"parentPluginId": "advancedSettings",
Expand All @@ -138,10 +139,11 @@
"label": "id",
"description": [],
"signature": [
"\"advanced_settings_page_title\" | \"advanced_settings_page_subtitle\" | \"advanced_settings_page_footer\""
"Id"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
},
{
"parentPluginId": "advancedSettings",
Expand All @@ -151,10 +153,11 @@
"label": "component",
"description": [],
"signature": [
"React.ComponentClass<Record<string, any> | undefined, any> | React.FunctionComponent<Record<string, any> | undefined>"
"React.ComponentType<Record<string, any> | undefined>"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
},
{
"parentPluginId": "advancedSettings",
Expand All @@ -163,10 +166,15 @@
"tags": [],
"label": "allowOverride",
"description": [],
"signature": [
"boolean"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
}
]
],
"returnComment": []
}
]
},
Expand Down Expand Up @@ -199,13 +207,14 @@
"type": "Function",
"tags": [],
"label": "get",
"description": [],
"description": [
"/**\n * Retrieve a registered component by its ID.\n * If the component does not exist, then an exception is thrown.\n *\n * @param id the ID of the component to retrieve\n */"
],
"signature": [
"(id: Id) => React.ComponentType<Record<string, any> | undefined>"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false,
"returnComment": [],
"children": [
{
"parentPluginId": "advancedSettings",
Expand All @@ -215,12 +224,14 @@
"label": "id",
"description": [],
"signature": [
"\"advanced_settings_page_title\" | \"advanced_settings_page_subtitle\" | \"advanced_settings_page_footer\""
"Id"
],
"path": "src/plugins/advanced_settings/public/component_registry/component_registry.ts",
"deprecated": false
"deprecated": false,
"isRequired": true
}
]
],
"returnComment": []
}
]
}
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 @@ -18,7 +18,7 @@ Contact [Vis Editors](https://github.com/orgs/elastic/teams/kibana-vis-editors)

| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
| 23 | 0 | 22 | 1 |
| 23 | 0 | 20 | 1 |

## Client

Expand Down
44 changes: 43 additions & 1 deletion api_docs/alerting.json
Original file line number Diff line number Diff line change
Expand Up @@ -3552,7 +3552,13 @@
"label": "executionDuration",
"description": [],
"signature": [
"{ average: number; values: number[]; }"
{
"pluginId": "alerting",
"scope": "common",
"docId": "kibAlertingPluginApi",
"section": "def-common.ExecutionDuration",
"text": "ExecutionDuration"
}
],
"path": "x-pack/plugins/alerting/common/alert_summary.ts",
"deprecated": false
Expand Down Expand Up @@ -3764,6 +3770,42 @@
],
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-common.ExecutionDuration",
"type": "Interface",
"tags": [],
"label": "ExecutionDuration",
"description": [],
"path": "x-pack/plugins/alerting/common/alert_summary.ts",
"deprecated": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-common.ExecutionDuration.average",
"type": "number",
"tags": [],
"label": "average",
"description": [],
"path": "x-pack/plugins/alerting/common/alert_summary.ts",
"deprecated": false
},
{
"parentPluginId": "alerting",
"id": "def-common.ExecutionDuration.valuesWithTimestamp",
"type": "Object",
"tags": [],
"label": "valuesWithTimestamp",
"description": [],
"signature": [
"{ [x: string]: number; }"
],
"path": "x-pack/plugins/alerting/common/alert_summary.ts",
"deprecated": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-common.IntervalSchedule",
Expand Down
2 changes: 1 addition & 1 deletion api_docs/alerting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Contact [Kibana Alerting](https://github.com/orgs/elastic/teams/kibana-alerting-

| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
| 260 | 0 | 252 | 18 |
| 263 | 0 | 255 | 18 |

## Client

Expand Down
2 changes: 1 addition & 1 deletion api_docs/apm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4510,7 +4510,7 @@
"section": "def-common.PackagePolicy",
"text": "PackagePolicy"
},
" | undefined; }, ",
" | undefined; has_apm_integrations: boolean; }, ",
"APMRouteCreateOptions",
">; } & { \"POST /internal/apm/fleet/cloud_apm_package_policy\": ",
{
Expand Down
Loading

0 comments on commit 8528192

Please sign in to comment.