-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into lens/dynamic-coloring-table
- Loading branch information
Showing
344 changed files
with
15,243 additions
and
5,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/groovy | ||
library 'kibana-pipeline-library' | ||
kibanaLibrary.load() | ||
kibanaPipeline(timeoutMinutes: 300) { | ||
slackNotifications.onFailure { | ||
ciStats.trackBuild { | ||
workers.ci(ramDisk: false, name: "package-build", size: 'l', runErrorReporter: false) { | ||
withGcpServiceAccount.fromVaultSecret('secret/kibana-issues/dev/ci-artifacts-key', 'value') { | ||
kibanaPipeline.bash("test/scripts/jenkins_xpack_package_build.sh", "Package builds") | ||
} | ||
} | ||
def packageTypes = ['deb', 'docker', 'rpm'] | ||
def workers = [:] | ||
packageTypes.each { type -> | ||
workers["package-${type}"] = { | ||
testPackage(type) | ||
} | ||
} | ||
parallel(workers) | ||
} | ||
} | ||
} | ||
def testPackage(packageType) { | ||
workers.ci(ramDisk: false, name: "package-${packageType}", size: 's', runErrorReporter: false) { | ||
withGcpServiceAccount.fromVaultSecret('secret/kibana-issues/dev/ci-artifacts-key', 'value') { | ||
kibanaPipeline.bash("test/scripts/jenkins_xpack_package_${packageType}.sh", "Execute package testing for ${packageType}") | ||
} | ||
} | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[[index-patterns-api-default-get]] | ||
=== Get default index pattern API | ||
++++ | ||
<titleabbrev>Get default index pattern</titleabbrev> | ||
++++ | ||
|
||
experimental[] Retrieve a default index pattern ID. Kibana UI uses default index pattern unless user picks a different one. | ||
|
||
[[index-patterns-api-default-get-request]] | ||
==== Request | ||
|
||
`GET <kibana host>:<port>/api/index_patterns/default` | ||
|
||
`GET <kibana host>:<port>/s/<space_id>/api/index_patterns/default` | ||
|
||
[[index-patterns-api-default-get-params]] | ||
==== Path parameters | ||
|
||
`space_id`:: | ||
(Optional, string) An identifier for the space. If `space_id` is not provided in the URL, the default space is used. | ||
|
||
[[index-patterns-api-default-get-codes]] | ||
==== Response code | ||
|
||
`200`:: | ||
Indicates a successful call. | ||
|
||
[[index-patterns-api-default-get-example]] | ||
==== Example | ||
|
||
Retrieve the default index pattern id: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X GET api/index_patterns/default | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
The API returns an ID of a default index pattern: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
{ | ||
"index_pattern_id": "..." | ||
} | ||
-------------------------------------------------- | ||
|
||
In case there is no default index pattern, the API returns: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
{ | ||
"index_pattern_id": null | ||
} | ||
-------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
[[index-patterns-api-default-set]] | ||
=== Set default index pattern API | ||
++++ | ||
<titleabbrev>Set default index pattern</titleabbrev> | ||
++++ | ||
|
||
experimental[] Set a default index pattern ID. Kibana UI will use default index pattern unless user picks a different one. | ||
The API doesn't validate if given `index_pattern_id` is a valid id. | ||
|
||
[[index-patterns-api-default-set-request]] | ||
==== Request | ||
|
||
`POST <kibana host>:<port>/api/index_patterns/default` | ||
|
||
`POST <kibana host>:<port>/s/<space_id>/api/index_patterns/default` | ||
|
||
[[index-patterns-api-default-set-params]] | ||
==== Path parameters | ||
|
||
`space_id`:: | ||
(Optional, string) An identifier for the space. If `space_id` is not provided in the URL, the default space is used. | ||
|
||
[[index-patterns-api-default-set-body]] | ||
==== Request body | ||
|
||
`index_pattern_id`:: (Required, `string` or `null`) Sets a default index pattern id. Use `null` to unset a default index pattern. | ||
|
||
`force`:: (Optional, boolean) Updates existing default index pattern id. The default is `false`. | ||
|
||
|
||
[[index-patterns-api-default-set-codes]] | ||
==== Response code | ||
|
||
`200`:: | ||
Indicates a successful call. | ||
|
||
[[index-patterns-api-default-set-example]] | ||
==== Example | ||
|
||
Set the default index pattern id if none is set: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST api/index_patterns/default | ||
{ | ||
"index_pattern_id": "..." | ||
} | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
|
||
Upsert the default index pattern: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST api/index_patterns/default | ||
{ | ||
"index_pattern_id": "...", | ||
"force": true | ||
} | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
Unset the default index pattern: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST api/index_patterns/default | ||
{ | ||
"index_pattern_id": null, | ||
"force": true | ||
} | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
The API returns: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
{ | ||
"acknowledged": true | ||
} | ||
-------------------------------------------------- | ||
|
64 changes: 64 additions & 0 deletions
64
docs/developer/contributing/development-package-tests.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[[development-package-tests]] | ||
== Package Testing | ||
|
||
Packaging tests use Vagrant virtual machines as hosts and Ansible for | ||
provisioning and assertions. Kibana distributions are copied from the | ||
target folder into each VM and installed, along with required | ||
dependencies. | ||
|
||
=== Setup | ||
|
||
* https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html[Ansible] | ||
+ | ||
``` | ||
# Ubuntu | ||
sudo apt-get install python3-pip libarchive-tools | ||
pip3 install --user ansible | ||
|
||
# Darwin | ||
brew install python3 | ||
pip3 install --user ansible | ||
``` | ||
* https://www.vagrantup.com/downloads[Vagrant] | ||
* https://www.virtualbox.org/wiki/Downloads[Virtualbox] | ||
|
||
=== Machines | ||
|
||
[cols=",,",options="header",] | ||
|=== | ||
|Hostname |IP |Description | ||
|deb |192.168.50.5 |Installation of Kibana’s deb package | ||
|rpm |192.168.50.6 |Installation of Kibana’s rpm package | ||
|docker |192.168.50.7 |Installation of Kibana’s docker image | ||
|=== | ||
|
||
=== Running | ||
|
||
``` | ||
# Build distributions | ||
node scripts/build --all-platforms --debug --no-oss | ||
|
||
cd test/package | ||
|
||
# Setup virtual machine and networking | ||
vagrant up <hostname> --no-provision | ||
|
||
# Install Kibana and run OS level tests | ||
# This step can be repeated when adding new tests, it ensures machine state - installations won't run twice | ||
vagrant provision <hostname> | ||
|
||
# Running functional tests | ||
node scripts/es snapshot \ | ||
-E network.bind_host=127.0.0.1,192.168.50.1 \ | ||
-E discovery.type=single-node \ | ||
--license=trial | ||
TEST_KIBANA_URL=http://elastic:changeme@<ip>:5601 \ | ||
TEST_ES_URL=http://elastic:[email protected]:9200 \ | ||
node scripts/functional_test_runner.js --include-tag=smoke | ||
``` | ||
|
||
=== Cleanup | ||
|
||
.... | ||
vagrant destroy <hostname> | ||
.... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...a/public/kibana-plugin-plugins-data-public.indexpatternsservice.getdefaultid.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPatternsService](./kibana-plugin-plugins-data-public.indexpatternsservice.md) > [getDefaultId](./kibana-plugin-plugins-data-public.indexpatternsservice.getdefaultid.md) | ||
|
||
## IndexPatternsService.getDefaultId property | ||
|
||
Get default index pattern id | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
getDefaultId: () => Promise<string | null>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...a/server/kibana-plugin-plugins-data-server.indexpatternsservice.getdefaultid.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [IndexPatternsService](./kibana-plugin-plugins-data-server.indexpatternsservice.md) > [getDefaultId](./kibana-plugin-plugins-data-server.indexpatternsservice.getdefaultid.md) | ||
|
||
## IndexPatternsService.getDefaultId property | ||
|
||
Get default index pattern id | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
getDefaultId: () => Promise<string | null>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
.../server/kibana-plugin-plugins-data-server.searchstrategydependencies.request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-server](./kibana-plugin-plugins-data-server.md) > [SearchStrategyDependencies](./kibana-plugin-plugins-data-server.searchstrategydependencies.md) > [request](./kibana-plugin-plugins-data-server.searchstrategydependencies.request.md) | ||
|
||
## SearchStrategyDependencies.request property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
request: KibanaRequest; | ||
``` |
Oops, something went wrong.