Skip to content

Commit

Permalink
Merge branch 'master' into unskip_functional_tests_master
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Apr 2, 2021
2 parents 02d8329 + 82f7b21 commit eae9aaf
Show file tree
Hide file tree
Showing 995 changed files with 13,885 additions and 5,530 deletions.
5 changes: 4 additions & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
.idea
.teamcity
.yarn-local-mirror
/bazel
bazel-bin
bazel-kibana
bazel-out
bazel-testlogs
build
node_modules
target
7 changes: 3 additions & 4 deletions .bazelrc.common
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@ build --disk_cache=~/.bazel-cache/disk-cache
build --repository_cache=~/.bazel-cache/repository-cache

# Bazel will create symlinks from the workspace directory to output artifacts.
# Build results will be placed in a directory called "bazel/bin"
# Build results will be placed in a directory called "bazel-bin"
# This will still create a bazel-out symlink in
# the project directory, which must be excluded from the
# editor's search path.
build --symlink_prefix=bazel/
# To disable the symlinks altogether (including bazel-out) we can use
# build --symlink_prefix=/
# however this makes it harder to find outputs.

# Prevents the creation of bazel-out dir
build --experimental_no_product_name_out_symlink
# build --experimental_no_product_name_out_symlink

# Make direct file system calls to create symlink trees
build --experimental_inprocess_symlink_creation
Expand Down Expand Up @@ -83,7 +82,7 @@ test:debug --test_output=streamed --test_strategy=exclusive --test_timeout=9999
run:debug --define=VERBOSE_LOGS=1 -- --node_options=--inspect-brk
# The following option will change the build output of certain rules such as terser and may not be desirable in all cases
# It will also output both the repo cache and action cache to a folder inside the repo
build:debug --compilation_mode=dbg --show_result=1 --disk_cache=bazel/disk-cache --repository_cache=bazel/repository-cache
build:debug --compilation_mode=dbg --show_result=1

# Turn off legacy external runfiles
# This prevents accidentally depending on this feature, which Bazel will remove.
Expand Down
6 changes: 4 additions & 2 deletions .ci/packer_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

set -e

# cache image used by kibana-load-testing project
docker pull "maven:3.6.3-openjdk-8-slim"
if [[ "$(which docker)" != "" && "$(command uname -m)" != "aarch64" ]]; then
# cache image used by kibana-load-testing project
docker pull "maven:3.6.3-openjdk-8-slim"
fi

./.ci/packer_cache_for_branch.sh master
./.ci/packer_cache_for_branch.sh 7.x
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ snapshots.js
/packages/kbn-monaco/src/painless/antlr

# Bazel
/bazel
/bazel-*
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ module.exports = {
pathGroups: [
{
pattern:
'{../../../../../../,../../../../../,../../../../,../../../,../../,../}{common/,*}__mocks__{*,/**}',
'{../../../../../../,../../../../../,../../../../,../../../,../../,../,./}{common/,*}__mocks__{*,/**}',
group: 'unknown',
},
{
Expand Down
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@

# Security Solution sub teams
/x-pack/plugins/case @elastic/security-threat-hunting
/x-pack/plugins/timelines @elastic/security-threat-hunting
/x-pack/test/case_api_integration @elastic/security-threat-hunting
/x-pack/plugins/lists @elastic/security-detections-response

Expand Down
20 changes: 9 additions & 11 deletions .github/ISSUE_TEMPLATE/v8_breaking_change.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 8.0 Breaking change
about: Breaking changes from 7.x -> 8.0
title: "[Breaking change]"
labels: Team:Elasticsearch UI, Feature:Upgrade Assistant, Breaking Change
labels: Feature:Upgrade Assistant, Breaking Change
assignees: ''

---
Expand All @@ -12,8 +12,8 @@ assignees: ''
******* LABEL CHANGES NECESSARY ********
****************************************
Please add a "NeededFor:${TeamName}" label to denote the team that is
requesting the breaking change to be surfaced in the Upgrade Assistant.
Please add a team label to denote the team that the
breaking change is applicable to.
-->

Expand All @@ -30,16 +30,14 @@ requesting the breaking change to be surfaced in the Upgrade Assistant.
<!-- e.g. Based on telemetry data, roughly 75% of our users will need to make changes to x. -->
<!-- e.g. A majority of users will need to make changes to x. -->

**How can we programmatically determine whether the cluster is affected by this breaking change?**
**Can the change be registered with the [Kibana deprecation service](https://github.com/elastic/kibana/blob/master/docs/development/core/server/kibana-plugin-core-server.deprecationsservicesetup.md)?**

**What can users do to address the change manually?**
<!-- The deprecation service is consumed by the Upgrade Assistant to surface Kibana deprecations.
It provides a way for Kibana deprecations to be resolved automatically via an API
or manually by providing step-by-step instructions for users to follow. -->

<!-- If applicable, describe the manual migration steps and/or link to available docs. -->

**How could we make migration easier with the Upgrade Assistant?**

<!-- This can be as basic as notifying the user about the deprecation and linking to some
migration docs, or as advanced as a dedicated UI for fixing the problem. -->
<!-- Each plugin owner is responsible for registering their deprecations via the service.
Please link to the issue/PR that will add this functionality. -->

**Are there any edge cases?**

Expand Down
3 changes: 3 additions & 0 deletions .github/relabel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
issues:
- missingLabel: needs-team
regex: ^(\:ml)|(Team:.*)$
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@ report.asciidoc
.yarn-local-mirror

# Bazel
/bazel
/.bazelrc.user
bazel
bazel-*
.bazelrc.user
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
x-pack/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss
build
target
bazel-*
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# other packages builds and need to be included as inputs
exports_files(
[
"tsconfig.base.json",
"tsconfig.json",
"package.json"
],
Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions-and-connectors/legacy/create.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy Create connector</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<create-connector-api>> instead.
deprecated::[7.13.0,Use <<create-connector-api>> instead.]

Creates a connector.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions-and-connectors/legacy/delete.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy Delete connector</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<delete-connector-api>> instead.
deprecated::[7.13.0,Use <<delete-connector-api>> instead.]

Deletes a connector by ID.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions-and-connectors/legacy/execute.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy Execute connector</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<execute-connector-api>> instead.
deprecated::[7.13.0,Use <<execute-connector-api>> instead.]

Executes a connector by ID.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions-and-connectors/legacy/get.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy Get connector</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<get-connector-api>> instead.
deprecated::[7.13.0,Use <<get-connector-api>> instead.]

Retrieves a connector by ID.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions-and-connectors/legacy/get_all.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy Get all connector</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<get-all-connectors-api>> instead.
deprecated::[7.13.0,Use <<get-all-connectors-api>> instead.]

Retrieves all connectors.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions-and-connectors/legacy/list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy List all connector types</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<list-connector-types-api>> instead.
deprecated::[7.13.0,Use <<list-connector-types-api>> instead.]

Retrieves a list of all connector types.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/actions-and-connectors/legacy/update.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy Update connector</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<update-connector-api>> instead.
deprecated::[7.13.0,Use <<update-connector-api>> instead.]

Updates the attributes for an existing connector.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/create.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy create alert</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<create-rule-api>> instead.
deprecated::[7.13.0,Use <<create-rule-api>> instead.]

Create {kib} alerts.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/delete.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy delete alert</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<delete-rule-api>> instead.
deprecated::[7.13.0,Use <<delete-rule-api>> instead.]

Permanently remove an alert.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/disable.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy disable alert</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<disable-rule-api>> instead.
deprecated::[7.13.0,Use <<disable-rule-api>> instead.]

Disable an alert.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/enable.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy enable alert</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<enable-rule-api>> instead.
deprecated::[7.13.0,Use <<enable-rule-api>> instead.]

Enable an alert.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/find.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy find alerts</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<find-rules-api>> instead.
deprecated::[7.13.0,Use <<find-rules-api>> instead.]

Retrieve a paginated set of alerts based on condition.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/get.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy get alert</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<get-rule-api>> instead.
deprecated::[7.13.0,Use <<get-rule-api>> instead.]

Retrieve an alert by ID.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/health.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy get Alerting framework health</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<get-alerting-framework-health-api>> instead.
deprecated::[7.13.0,Use <<get-alerting-framework-health-api>> instead.]

Retrieve the health status of the Alerting framework.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy list all alert types</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<list-rule-types-api>> instead.
deprecated::[7.13.0,Use <<list-rule-types-api>> instead.]

Retrieve a list of all alert types.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/mute.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy mute alert instance</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<mute-alert-api>> instead.
deprecated::[7.13.0,Use <<mute-alert-api>> instead.]

Mute an alert instance.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/mute_all.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy mute all alert instances</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<mute-all-alerts-api>> instead.
deprecated::[7.13.0,Use <<mute-all-alerts-api>> instead.]

Mute all alert instances.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/unmute.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy unmute alert instance</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<unmute-alert-api>> instead.
deprecated::[7.13.0,Use <<unmute-alert-api>> instead.]

Unmute an alert instance.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/unmute_all.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy unmute all alert instances</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<unmute-all-alerts-api>> instead.
deprecated::[7.13.0,Use <<unmute-all-alerts-api>> instead.]

Unmute all alert instances.

Expand Down
2 changes: 1 addition & 1 deletion docs/api/alerting/legacy/update.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<titleabbrev>Legacy update alert</titleabbrev>
++++

WARNING: Deprecated in 7.13.0. Use <<update-rule-api>> instead.
deprecated::[7.13.0,Use <<update-rule-api>> instead.]

Update the attributes for an existing alert.

Expand Down
4 changes: 4 additions & 0 deletions docs/developer/plugin-list.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,10 @@ Documentation: https://www.elastic.co/guide/en/kibana/master/task-manager-produc
|Gathers all usage collection, retrieving them from both: OSS and X-Pack plugins.
|{kib-repo}blob/{branch}/x-pack/plugins/timelines/README.md[timelines]
|Timelines is a plugin that provides a grid component with accompanying server side apis to help users identify events of interest and perform root cause analysis within Kibana.
|{kib-repo}blob/{branch}/x-pack/plugins/transform/readme.md[transform]
|This plugin provides access to the transforms features provided by Elastic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ readonly links: {
putComponentTemplateMetadata: string;
putSnapshotLifecyclePolicy: string;
putWatch: string;
simulatePipeline: string;
updateTransform: string;
}>;
readonly observability: Record<string, string>;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<b>Signature:</b>

```typescript
fieldIsTimeField(): boolean | "" | undefined;
fieldIsTimeField(): boolean;
```
<b>Returns:</b>

`boolean | "" | undefined`
`boolean`

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export declare class AggConfigs
| [aggs](./kibana-plugin-plugins-data-public.aggconfigs.aggs.md) | | <code>IAggConfig[]</code> | |
| [createAggConfig](./kibana-plugin-plugins-data-public.aggconfigs.createaggconfig.md) | | <code>&lt;T extends AggConfig = AggConfig&gt;(params: CreateAggConfigParams, { addToAggConfigs }?: {</code><br/><code> addToAggConfigs?: boolean &#124; undefined;</code><br/><code> }) =&gt; T</code> | |
| [indexPattern](./kibana-plugin-plugins-data-public.aggconfigs.indexpattern.md) | | <code>IndexPattern</code> | |
| [timeFields](./kibana-plugin-plugins-data-public.aggconfigs.timefields.md) | | <code>string[]</code> | |
| [timeRange](./kibana-plugin-plugins-data-public.aggconfigs.timerange.md) | | <code>TimeRange</code> | |

## Methods
Expand All @@ -43,6 +44,7 @@ export declare class AggConfigs
| [getResponseAggs()](./kibana-plugin-plugins-data-public.aggconfigs.getresponseaggs.md) | | Gets the AggConfigs (and possibly ResponseAggConfigs) that represent the values that will be produced when all aggs are run.<!-- -->With multi-value metric aggs it is possible for a single agg request to result in multiple agg values, which is why the length of a vis' responseValuesAggs may be different than the vis' aggs {<!-- -->array\[AggConfig\]<!-- -->} |
| [jsonDataEquals(aggConfigs)](./kibana-plugin-plugins-data-public.aggconfigs.jsondataequals.md) | | Data-by-data comparison of this Aggregation Ignores the non-array indexes |
| [onSearchRequestStart(searchSource, options)](./kibana-plugin-plugins-data-public.aggconfigs.onsearchrequeststart.md) | | |
| [setTimeFields(timeFields)](./kibana-plugin-plugins-data-public.aggconfigs.settimefields.md) | | |
| [setTimeRange(timeRange)](./kibana-plugin-plugins-data-public.aggconfigs.settimerange.md) | | |
| [toDsl(hierarchical)](./kibana-plugin-plugins-data-public.aggconfigs.todsl.md) | | |

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) &gt; [AggConfigs](./kibana-plugin-plugins-data-public.aggconfigs.md) &gt; [setTimeFields](./kibana-plugin-plugins-data-public.aggconfigs.settimefields.md)

## AggConfigs.setTimeFields() method

<b>Signature:</b>

```typescript
setTimeFields(timeFields: string[] | undefined): void;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| timeFields | <code>string[] &#124; undefined</code> | |

<b>Returns:</b>

`void`

Loading

0 comments on commit eae9aaf

Please sign in to comment.