Skip to content

Commit

Permalink
Merge branch 'main' into fix-action-message-cursor-issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spong committed Feb 15, 2023
2 parents a5d77c4 + 0a66d93 commit 77bf851
Show file tree
Hide file tree
Showing 1,398 changed files with 26,590 additions and 9,511 deletions.
1 change: 1 addition & 0 deletions .buildkite/ftr_configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ disabled:
- x-pack/test/functional_enterprise_search/cypress.config.ts
- x-pack/test/defend_workflows_cypress/cli_config.ts
- x-pack/test/defend_workflows_cypress/config.ts
- x-pack/test/defend_workflows_cypress/endpoint_config.ts
- x-pack/test/defend_workflows_cypress/visual_config.ts
- x-pack/test/osquery_cypress/cli_config.ts
- x-pack/test/osquery_cypress/config.ts
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/pipelines/pull_request/threat_intelligence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ steps:
limit: 3
- exit_status: '*'
limit: 1
artifact_paths:
- "target/kibana-threat-intelligence/**/*"
4 changes: 2 additions & 2 deletions .buildkite/scripts/steps/artifacts/docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ node scripts/build \
--docker-cross-compile \
--docker-images \
--docker-namespace="kibana-ci" \
--docker-tag="$GIT_ABBREV_COMMIT" \
--docker-tag="git-$GIT_ABBREV_COMMIT" \
--skip-docker-ubi \
--skip-docker-cloud \
--skip-docker-contexts
Expand Down Expand Up @@ -92,7 +92,7 @@ steps:
SERVICE: kibana-controller
NAMESPACE: kibana-ci
IMAGE_NAME: kibana
COMMIT_MESSAGE: "gitops: update kibana tag to elastic/kibana@$BUILDKITE_COMMIT"
COMMIT_MESSAGE: "gitops: update kibana tag to elastic/kibana@$GIT_ABBREV_COMMIT"
EOF

else
Expand Down
10 changes: 10 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ const RESTRICTED_IMPORTS = [
name: 'react-use',
message: 'Please use react-use/lib/{method} instead.',
},
{
name: 'react-router-dom',
importNames: ['Route'],
message: 'Please use @kbn/shared-ux-router instead',
},
{
name: '@kbn/kibana-react-plugin/public',
importNames: ['Route'],
message: 'Please use @kbn/shared-ux-router instead',
},
];

module.exports = {
Expand Down
4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ src/plugins/discover @elastic/kibana-data-discovery
packages/kbn-doc-links @elastic/kibana-docs
packages/kbn-docs-utils @elastic/kibana-operations
packages/kbn-ebt-tools @elastic/kibana-core
packages/kbn-ecs @elastic/kibana-core
packages/kbn-ecs @elastic/kibana-core @elastic/security-threat-hunting-investigations
x-pack/packages/kbn-ecs-data-quality-dashboard @elastic/security-threat-hunting-investigations
x-pack/plugins/ecs_data_quality_dashboard @elastic/security-threat-hunting-investigations
test/plugin_functional/plugins/elasticsearch_client_plugin @elastic/kibana-core
Expand Down Expand Up @@ -911,6 +911,8 @@ packages/kbn-yarn-lock-validator @elastic/kibana-operations
#CC# /x-pack/plugins/translations/ @elastic/kibana-localization @elastic/kibana-core

# Kibana Platform Security
/.github/codeql @elastic/kibana-security
/.github/workflows/codeql.yml @elastic/kibana-security
/src/plugins/telemetry/server/config/telemetry_labels.ts @elastic/kibana-security
/test/interactive_setup_api_integration/ @elastic/kibana-security
/test/interactive_setup_functional/ @elastic/kibana-security
Expand Down
4 changes: 4 additions & 0 deletions .github/paths-labeller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
- "src/plugins/bfetch/**/*.*"
- "Team:apm":
- "x-pack/plugins/apm/**/*.*"
- "x-pack/test/apm_api_integration/**/*.*"
- "packages/kbn-apm-synthtrace/**/*.*"
- "packages/kbn-apm-synthtrace-client/**/*.*"
- "packages/kbn-apm-utils/**/*.*"
- "Team:Fleet":
- "x-pack/plugins/fleet/**/*.*"
- "x-pack/test/fleet_api_integration/**/*.*"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
actions: read
contents: read
security-events: write
if: github.repository == 'elastic/kibana' # Hack: Do not run on forks

strategy:
fail-fast: false
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: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'actions']
---
import actionsObj from './actions.devdocs.json';
Expand Down
4 changes: 2 additions & 2 deletions api_docs/advanced_settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ slug: /kibana-dev-docs/api/advancedSettings
title: "advancedSettings"
image: https://source.unsplash.com/400x175/?github
description: API docs for the advancedSettings plugin
date: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'advancedSettings']
---
import advancedSettingsObj from './advanced_settings.devdocs.json';



Contact [@elastic/kibana-core](https://github.com/orgs/elastic/teams/kibana-core) for questions regarding this plugin.
Contact [@elastic/appex-sharedux](https://github.com/orgs/elastic/teams/appex-sharedux) for questions regarding this plugin.

**Code health stats**

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: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'aiops']
---
import aiopsObj from './aiops.devdocs.json';
Expand Down
163 changes: 161 additions & 2 deletions api_docs/alerting.devdocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,22 @@
"trackAdoption": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "alerting",
"id": "def-server.PluginSetupContract.getFrameworkAlertsEnabled",
"type": "Function",
"tags": [],
"label": "getFrameworkAlertsEnabled",
"description": [],
"signature": [
"() => boolean"
],
"path": "x-pack/plugins/alerting/server/plugin.ts",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": []
}
],
"initialIsOpen": false
Expand Down Expand Up @@ -2505,7 +2521,7 @@
"section": "def-common.DataView",
"text": "DataView"
},
">; getDefaultDataView: (refreshFields?: boolean | undefined) => Promise<",
">; getDefaultDataView: (options?: { displayErrors?: boolean | undefined; refreshFields?: boolean | undefined; }) => Promise<",
{
"pluginId": "dataViews",
"scope": "common",
Expand Down Expand Up @@ -3177,6 +3193,23 @@
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY_NAME",
"type": "string",
"tags": [],
"label": "DEFAULT_ALERTS_ILM_POLICY_NAME",
"description": [
"\nDefault alert index ILM policy\n- _meta.managed: notify users this is a managed policy and should be modified\n at their own risk\n- no delete phase as we want to keep these indices around indefinitely\n\nThis should be used by all alerts-as-data indices"
],
"signature": [
"\".alerts-ilm-policy\""
],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_MAX_EPHEMERAL_ACTIONS_PER_ALERT",
Expand Down Expand Up @@ -3648,7 +3681,133 @@
"initialIsOpen": false
}
],
"objects": []
"objects": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY",
"type": "Object",
"tags": [],
"label": "DEFAULT_ALERTS_ILM_POLICY",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy",
"type": "Object",
"tags": [],
"label": "policy",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy._meta",
"type": "Object",
"tags": [],
"label": "_meta",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy._meta.managed",
"type": "boolean",
"tags": [],
"label": "managed",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false
}
]
},
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy.phases",
"type": "Object",
"tags": [],
"label": "phases",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy.phases.hot",
"type": "Object",
"tags": [],
"label": "hot",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy.phases.hot.actions",
"type": "Object",
"tags": [],
"label": "actions",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy.phases.hot.actions.rollover",
"type": "Object",
"tags": [],
"label": "rollover",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy.phases.hot.actions.rollover.max_age",
"type": "string",
"tags": [],
"label": "max_age",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "alerting",
"id": "def-server.DEFAULT_ALERTS_ILM_POLICY.policy.phases.hot.actions.rollover.max_primary_shard_size",
"type": "string",
"tags": [],
"label": "max_primary_shard_size",
"description": [],
"path": "x-pack/plugins/alerting/server/alerts_service/default_lifecycle_policy.ts",
"deprecated": false,
"trackAdoption": false
}
]
}
]
}
]
}
]
}
]
}
],
"initialIsOpen": false
}
]
},
"common": {
"classes": [],
Expand Down
7 changes: 5 additions & 2 deletions 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: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'alerting']
---
import alertingObj from './alerting.devdocs.json';
Expand All @@ -21,7 +21,7 @@ Contact [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-o

| Public API count | Any count | Items lacking comments | Missing exports |
|-------------------|-----------|------------------------|-----------------|
| 476 | 1 | 466 | 39 |
| 488 | 1 | 477 | 39 |

## Client

Expand All @@ -36,6 +36,9 @@ Contact [@elastic/response-ops](https://github.com/orgs/elastic/teams/response-o

## Server

### Objects
<DocDefinitionList data={alertingObj.server.objects}/>

### Functions
<DocDefinitionList data={alertingObj.server.functions}/>

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: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'apm']
---
import apmObj from './apm.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/banners.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/banners
title: "banners"
image: https://source.unsplash.com/400x175/?github
description: API docs for the banners plugin
date: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'banners']
---
import bannersObj from './banners.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/bfetch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/bfetch
title: "bfetch"
image: https://source.unsplash.com/400x175/?github
description: API docs for the bfetch plugin
date: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'bfetch']
---
import bfetchObj from './bfetch.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/canvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/canvas
title: "canvas"
image: https://source.unsplash.com/400x175/?github
description: API docs for the canvas plugin
date: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'canvas']
---
import canvasObj from './canvas.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/cases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/cases
title: "cases"
image: https://source.unsplash.com/400x175/?github
description: API docs for the cases plugin
date: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'cases']
---
import casesObj from './cases.devdocs.json';
Expand Down
2 changes: 1 addition & 1 deletion api_docs/charts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ slug: /kibana-dev-docs/api/charts
title: "charts"
image: https://source.unsplash.com/400x175/?github
description: API docs for the charts plugin
date: 2023-02-13
date: 2023-02-15
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'charts']
---
import chartsObj from './charts.devdocs.json';
Expand Down

0 comments on commit 77bf851

Please sign in to comment.