Skip to content

Commit 0ce6ed5

Browse files
committed
Merge branch 'master' into alerting/zombie-redux
* master: (69 commits) [Graph] Fix various a11y issues (elastic#54097) Add ApplicationService app status management (elastic#50223) logs in one time (elastic#54447) Deprecate using `elasticsearch.ssl.certificate` without `elasticsearch.ssl.key` and vice versa (elastic#54392) [Optimizer] Fix a stack overflow with watch_cache when it attempts to delete very large folders. (elastic#54457) Security - Role Mappings UI (elastic#53620) [SIEM] [Detection engine] Permission II (elastic#54292) Allow User to Cleanup Repository from UI (elastic#53047) [Detection engine] Some UX for rule creation (elastic#54471) share specific instances of some ui packages (elastic#54079) [ML] APM modules configs for RUM Javascript and NodeJS (elastic#53792) [APM] Delay rendering invalid license notification (elastic#53924) [Graph] Improve error message on graph requests (elastic#54230) [ILM] Kibana should allow a min_age setting of 0ms in ILM policy phases (elastic#53719) Unit Tests for common/lib (elastic#53736) [Graph] Only show explorable fields (elastic#54101) remove linting rule exception for markdown (elastic#54232) [Monitoring] Fetch shard data more efficiently (elastic#54028) [Maps] Add hiddenLayers option to embeddable map input (elastic#54355) Pass termOrder and hasTermsAgg properties to serializeThresholdWatch function (elastic#54391) ...
2 parents b8b09df + 204155b commit 0ce6ed5

File tree

1,035 files changed

+37070
-8434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,035 files changed

+37070
-8434
lines changed

.ci/Jenkinsfile_flaky

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def getWorkerMap(agentNumber, numberOfExecutions, worker, workerFailures, maxWor
9999
def numberOfWorkers = Math.min(numberOfExecutions, maxWorkerProcesses)
100100

101101
for(def i = 1; i <= numberOfWorkers; i++) {
102-
def workerExecutions = numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0)
102+
def workerExecutions = floor(numberOfExecutions/numberOfWorkers + (i <= numberOfExecutions%numberOfWorkers ? 1 : 0))
103103

104104
workerMap["agent-${agentNumber}-worker-${i}"] = { workerNumber ->
105105
for(def j = 0; j < workerExecutions; j++) {

.eslintrc.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,6 @@ module.exports = {
8282
'react-hooks/exhaustive-deps': 'off',
8383
},
8484
},
85-
{
86-
files: ['src/legacy/core_plugins/tile_map/**/*.{js,ts,tsx}'],
87-
rules: {
88-
'react-hooks/exhaustive-deps': 'off',
89-
},
90-
},
91-
{
92-
files: ['src/legacy/core_plugins/vis_type_markdown/**/*.{js,ts,tsx}'],
93-
rules: {
94-
'react-hooks/exhaustive-deps': 'off',
95-
},
96-
},
97-
{
98-
files: ['src/legacy/core_plugins/vis_type_metric/**/*.{js,ts,tsx}'],
99-
rules: {
100-
'jsx-a11y/click-events-have-key-events': 'off',
101-
},
102-
},
10385
{
10486
files: ['src/legacy/core_plugins/vis_type_table/**/*.{js,ts,tsx}'],
10587
rules: {
@@ -359,9 +341,8 @@ module.exports = {
359341
'src/fixtures/**/*.js', // TODO: this directory needs to be more obviously "public" (or go away)
360342
],
361343
settings: {
362-
// instructs import/no-extraneous-dependencies to treat modules
363-
// in plugins/ or ui/ namespace as "core modules" so they don't
364-
// trigger failures for not being listed in package.json
344+
// instructs import/no-extraneous-dependencies to treat certain modules
345+
// as core modules, even if they aren't listed in package.json
365346
'import/core-modules': [
366347
'plugins',
367348
'legacy/ui',

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
/packages/kbn-es/ @elastic/kibana-operations
8787
/packages/kbn-pm/ @elastic/kibana-operations
8888
/packages/kbn-test/ @elastic/kibana-operations
89+
/packages/kbn-ui-shared-deps/ @elastic/kibana-operations
8990
/src/legacy/server/keystore/ @elastic/kibana-operations
9091
/src/legacy/server/pid/ @elastic/kibana-operations
9192
/src/legacy/server/sass/ @elastic/kibana-operations
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [AppBase](./kibana-plugin-public.appbase.md) &gt; [chromeless](./kibana-plugin-public.appbase.chromeless.md)
4+
5+
## AppBase.chromeless property
6+
7+
Hide the UI chrome when the application is mounted. Defaults to `false`<!-- -->. Takes precedence over chrome service visibility settings.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
chromeless?: boolean;
13+
```

docs/development/core/public/kibana-plugin-public.appbase.id.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
## AppBase.id property
66

7+
The unique identifier of the application
8+
79
<b>Signature:</b>
810

911
```typescript

docs/development/core/public/kibana-plugin-public.appbase.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ export interface AppBase
1616
| Property | Type | Description |
1717
| --- | --- | --- |
1818
| [capabilities](./kibana-plugin-public.appbase.capabilities.md) | <code>Partial&lt;Capabilities&gt;</code> | Custom capabilities defined by the app. |
19+
| [chromeless](./kibana-plugin-public.appbase.chromeless.md) | <code>boolean</code> | Hide the UI chrome when the application is mounted. Defaults to <code>false</code>. Takes precedence over chrome service visibility settings. |
1920
| [euiIconType](./kibana-plugin-public.appbase.euiicontype.md) | <code>string</code> | A EUI iconType that will be used for the app's icon. This icon takes precendence over the <code>icon</code> property. |
2021
| [icon](./kibana-plugin-public.appbase.icon.md) | <code>string</code> | A URL to an image file used as an icon. Used as a fallback if <code>euiIconType</code> is not provided. |
21-
| [id](./kibana-plugin-public.appbase.id.md) | <code>string</code> | |
22+
| [id](./kibana-plugin-public.appbase.id.md) | <code>string</code> | The unique identifier of the application |
23+
| [navLinkStatus](./kibana-plugin-public.appbase.navlinkstatus.md) | <code>AppNavLinkStatus</code> | The initial status of the application's navLink. Defaulting to <code>visible</code> if <code>status</code> is <code>accessible</code> and <code>hidden</code> if status is <code>inaccessible</code> See [AppNavLinkStatus](./kibana-plugin-public.appnavlinkstatus.md) |
2224
| [order](./kibana-plugin-public.appbase.order.md) | <code>number</code> | An ordinal used to sort nav links relative to one another for display. |
25+
| [status](./kibana-plugin-public.appbase.status.md) | <code>AppStatus</code> | The initial status of the application. Defaulting to <code>accessible</code> |
2326
| [title](./kibana-plugin-public.appbase.title.md) | <code>string</code> | The title of the application. |
24-
| [tooltip$](./kibana-plugin-public.appbase.tooltip_.md) | <code>Observable&lt;string&gt;</code> | An observable for a tooltip shown when hovering over app link. |
27+
| [tooltip](./kibana-plugin-public.appbase.tooltip.md) | <code>string</code> | A tooltip shown when hovering over app link. |
28+
| [updater$](./kibana-plugin-public.appbase.updater_.md) | <code>Observable&lt;AppUpdater&gt;</code> | An [AppUpdater](./kibana-plugin-public.appupdater.md) observable that can be used to update the application [AppUpdatableFields](./kibana-plugin-public.appupdatablefields.md) at runtime. |
2529

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [AppBase](./kibana-plugin-public.appbase.md) &gt; [navLinkStatus](./kibana-plugin-public.appbase.navlinkstatus.md)
4+
5+
## AppBase.navLinkStatus property
6+
7+
The initial status of the application's navLink. Defaulting to `visible` if `status` is `accessible` and `hidden` if status is `inaccessible` See [AppNavLinkStatus](./kibana-plugin-public.appnavlinkstatus.md)
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
navLinkStatus?: AppNavLinkStatus;
13+
```
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
22

3-
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [AppBase](./kibana-plugin-public.appbase.md) &gt; [tooltip$](./kibana-plugin-public.appbase.tooltip_.md)
3+
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [AppBase](./kibana-plugin-public.appbase.md) &gt; [status](./kibana-plugin-public.appbase.status.md)
44

5-
## AppBase.tooltip$ property
5+
## AppBase.status property
66

7-
An observable for a tooltip shown when hovering over app link.
7+
The initial status of the application. Defaulting to `accessible`
88

99
<b>Signature:</b>
1010

1111
```typescript
12-
tooltip$?: Observable<string>;
12+
status?: AppStatus;
1313
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [AppBase](./kibana-plugin-public.appbase.md) &gt; [tooltip](./kibana-plugin-public.appbase.tooltip.md)
4+
5+
## AppBase.tooltip property
6+
7+
A tooltip shown when hovering over app link.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
tooltip?: string;
13+
```
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-public](./kibana-plugin-public.md) &gt; [AppBase](./kibana-plugin-public.appbase.md) &gt; [updater$](./kibana-plugin-public.appbase.updater_.md)
4+
5+
## AppBase.updater$ property
6+
7+
An [AppUpdater](./kibana-plugin-public.appupdater.md) observable that can be used to update the application [AppUpdatableFields](./kibana-plugin-public.appupdatablefields.md) at runtime.
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
updater$?: Observable<AppUpdater>;
13+
```
14+
15+
## Example
16+
17+
How to update an application navLink at runtime
18+
19+
```ts
20+
// inside your plugin's setup function
21+
export class MyPlugin implements Plugin {
22+
private appUpdater = new BehaviorSubject<AppUpdater>(() => ({}));
23+
24+
setup({ application }) {
25+
application.register({
26+
id: 'my-app',
27+
title: 'My App',
28+
updater$: this.appUpdater,
29+
async mount(params) {
30+
const { renderApp } = await import('./application');
31+
return renderApp(params);
32+
},
33+
});
34+
}
35+
36+
start() {
37+
// later, when the navlink needs to be updated
38+
appUpdater.next(() => {
39+
navLinkStatus: AppNavLinkStatus.disabled,
40+
})
41+
}
42+
43+
```
44+

0 commit comments

Comments
 (0)