-
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 storybook-tweak
- Loading branch information
Showing
603 changed files
with
13,512 additions
and
5,447 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
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
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,81 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
/** | ||
* DO NOT EDIT THIS FILE! | ||
* | ||
* This file contains the configuration for the Elastic APM instrumentaion of | ||
* Kibana itself and is only intented to be used during development of Kibana. | ||
* | ||
* Instrumentation is turned off by default. Once activated it will send APM | ||
* data to an Elasticsearch cluster accessible by Elastic employees. | ||
* | ||
* To modify the configuration, either use environment variables, or create a | ||
* file named `config/apm.dev.js`, which exports a config object as described | ||
* in the docs. | ||
* | ||
* For an overview over the available configuration files, see: | ||
* https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html | ||
* | ||
* For general information about Elastic APM, see: | ||
* https://www.elastic.co/guide/en/apm/get-started/current/index.html | ||
*/ | ||
|
||
const { readFileSync } = require('fs'); | ||
const { join } = require('path'); | ||
const { execSync } = require('child_process'); | ||
const merge = require('lodash.merge'); | ||
|
||
module.exports = merge({ | ||
active: false, | ||
serverUrl: 'https://f1542b814f674090afd914960583265f.apm.us-central1.gcp.cloud.es.io:443', | ||
// The secretToken below is intended to be hardcoded in this file even though | ||
// it makes it public. This is not a security/privacy issue. Normally we'd | ||
// instead disable the need for a secretToken in the APM Server config where | ||
// the data is transmitted to, but due to how it's being hosted, it's easier, | ||
// for now, to simply leave it in. | ||
secretToken: 'R0Gjg46pE9K9wGestd', | ||
globalLabels: {}, | ||
centralConfig: false, | ||
logUncaughtExceptions: true | ||
}, devConfig()); | ||
|
||
const rev = gitRev(); | ||
if (rev !== null) module.exports.globalLabels.git_rev = rev; | ||
|
||
try { | ||
const filename = join(__dirname, '..', 'data', 'uuid'); | ||
module.exports.globalLabels.kibana_uuid = readFileSync(filename, 'utf-8'); | ||
} catch (e) {} // eslint-disable-line no-empty | ||
|
||
function gitRev() { | ||
try { | ||
return execSync('git rev-parse --short HEAD', { encoding: 'utf-8' }).trim(); | ||
} catch (e) { | ||
return null; | ||
} | ||
} | ||
|
||
function devConfig() { | ||
try { | ||
return require('./apm.dev'); // eslint-disable-line import/no-unresolved | ||
} catch (e) { | ||
return {}; | ||
} | ||
} |
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
docs/development/core/server/kibana-plugin-server.capabilities.catalogue.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-server](./kibana-plugin-server.md) > [Capabilities](./kibana-plugin-server.capabilities.md) > [catalogue](./kibana-plugin-server.capabilities.catalogue.md) | ||
|
||
## Capabilities.catalogue property | ||
|
||
Catalogue capabilities. Catalogue entries drive the visibility of the Kibana homepage options. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
catalogue: Record<string, boolean>; | ||
``` |
15 changes: 15 additions & 0 deletions
15
docs/development/core/server/kibana-plugin-server.capabilities.management.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,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [Capabilities](./kibana-plugin-server.capabilities.md) > [management](./kibana-plugin-server.capabilities.management.md) | ||
|
||
## Capabilities.management property | ||
|
||
Management section capabilities. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
management: { | ||
[sectionId: string]: Record<string, boolean>; | ||
}; | ||
``` |
22 changes: 22 additions & 0 deletions
22
docs/development/core/server/kibana-plugin-server.capabilities.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,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [Capabilities](./kibana-plugin-server.capabilities.md) | ||
|
||
## Capabilities interface | ||
|
||
The read-only set of capabilities available for the current UI session. Capabilities are simple key-value pairs of (string, boolean), where the string denotes the capability ID, and the boolean is a flag indicating if the capability is enabled or disabled. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface Capabilities | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [catalogue](./kibana-plugin-server.capabilities.catalogue.md) | <code>Record<string, boolean></code> | Catalogue capabilities. Catalogue entries drive the visibility of the Kibana homepage options. | | ||
| [management](./kibana-plugin-server.capabilities.management.md) | <code>{</code><br/><code> [sectionId: string]: Record<string, boolean>;</code><br/><code> }</code> | Management section capabilities. | | ||
| [navLinks](./kibana-plugin-server.capabilities.navlinks.md) | <code>Record<string, boolean></code> | Navigation link capabilities. | | ||
|
13 changes: 13 additions & 0 deletions
13
docs/development/core/server/kibana-plugin-server.capabilities.navlinks.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-server](./kibana-plugin-server.md) > [Capabilities](./kibana-plugin-server.capabilities.md) > [navLinks](./kibana-plugin-server.capabilities.navlinks.md) | ||
|
||
## Capabilities.navLinks property | ||
|
||
Navigation link capabilities. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
navLinks: Record<string, boolean>; | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/development/core/server/kibana-plugin-server.capabilitiesprovider.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-server](./kibana-plugin-server.md) > [CapabilitiesProvider](./kibana-plugin-server.capabilitiesprovider.md) | ||
|
||
## CapabilitiesProvider type | ||
|
||
See [CapabilitiesSetup](./kibana-plugin-server.capabilitiessetup.md) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type CapabilitiesProvider = () => Partial<Capabilities>; | ||
``` |
27 changes: 27 additions & 0 deletions
27
docs/development/core/server/kibana-plugin-server.capabilitiessetup.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,27 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [CapabilitiesSetup](./kibana-plugin-server.capabilitiessetup.md) | ||
|
||
## CapabilitiesSetup interface | ||
|
||
APIs to manage the [Capabilities](./kibana-plugin-server.capabilities.md) that will be used by the application. | ||
|
||
Plugins relying on capabilities to toggle some of their features should register them during the setup phase using the `registerProvider` method. | ||
|
||
Plugins having the responsibility to restrict capabilities depending on a given context should register their capabilities switcher using the `registerSwitcher` method. | ||
|
||
Refers to the methods documentation for complete description and examples. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface CapabilitiesSetup | ||
``` | ||
|
||
## Methods | ||
|
||
| Method | Description | | ||
| --- | --- | | ||
| [registerProvider(provider)](./kibana-plugin-server.capabilitiessetup.registerprovider.md) | Register a [CapabilitiesProvider](./kibana-plugin-server.capabilitiesprovider.md) to be used to provide [Capabilities](./kibana-plugin-server.capabilities.md) when resolving them. | | ||
| [registerSwitcher(switcher)](./kibana-plugin-server.capabilitiessetup.registerswitcher.md) | Register a [CapabilitiesSwitcher](./kibana-plugin-server.capabilitiesswitcher.md) to be used to change the default state of the [Capabilities](./kibana-plugin-server.capabilities.md) entries when resolving them.<!-- -->A capabilities switcher can only change the state of existing capabilities. Capabilities added or removed when invoking the switcher will be ignored. | | ||
|
Oops, something went wrong.