Skip to content

Commit ef0a007

Browse files
afgomezAlejandro Fernández Gómez
authored andcommitted
Merge branch 'master' into 72402-manage-jobs-links
2 parents 99ce32a + 87414ad commit ef0a007

File tree

225 files changed

+5141
-2762
lines changed

Some content is hidden

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

225 files changed

+5141
-2762
lines changed

.ci/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# NOTE: This Dockerfile is ONLY used to run certain tasks in CI. It is not used to run Kibana or as a distributable.
22
# If you're looking for the Kibana Docker image distributable, please see: src/dev/build/tasks/os_packages/docker_generator/templates/dockerfile.template.ts
33

4-
ARG NODE_VERSION=10.21.0
4+
ARG NODE_VERSION=10.22.0
55

66
FROM node:${NODE_VERSION} AS base
77

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.21.0
1+
10.22.0

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.21.0
1+
10.22.0

docs/development/core/server/kibana-plugin-core-server.routeconfigoptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ export interface RouteConfigOptions<Method extends RouteMethod>
1919
| [authRequired](./kibana-plugin-core-server.routeconfigoptions.authrequired.md) | <code>boolean &#124; 'optional'</code> | Defines authentication mode for a route: - true. A user has to have valid credentials to access a resource - false. A user can access a resource without any credentials. - 'optional'. A user can access a resource if has valid credentials or no credentials at all. Can be useful when we grant access to a resource but want to identify a user if possible.<!-- -->Defaults to <code>true</code> if an auth mechanism is registered. |
2020
| [body](./kibana-plugin-core-server.routeconfigoptions.body.md) | <code>Method extends 'get' &#124; 'options' ? undefined : RouteConfigOptionsBody</code> | Additional body options [RouteConfigOptionsBody](./kibana-plugin-core-server.routeconfigoptionsbody.md)<!-- -->. |
2121
| [tags](./kibana-plugin-core-server.routeconfigoptions.tags.md) | <code>readonly string[]</code> | Additional metadata tag strings to attach to the route. |
22-
| [timeout](./kibana-plugin-core-server.routeconfigoptions.timeout.md) | <code>number</code> | Timeouts for processing durations. Response timeout is in milliseconds. Default value: 2 minutes |
22+
| [timeout](./kibana-plugin-core-server.routeconfigoptions.timeout.md) | <code>{</code><br/><code> payload?: Method extends 'get' &#124; 'options' ? undefined : number;</code><br/><code> idleSocket?: number;</code><br/><code> }</code> | Defines per-route timeouts. |
2323
| [xsrfRequired](./kibana-plugin-core-server.routeconfigoptions.xsrfrequired.md) | <code>Method extends 'get' ? never : boolean</code> | Defines xsrf protection requirements for a route: - true. Requires an incoming POST/PUT/DELETE request to contain <code>kbn-xsrf</code> header. - false. Disables xsrf protection.<!-- -->Set to true by default |
2424

docs/development/core/server/kibana-plugin-core-server.routeconfigoptions.timeout.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55
## RouteConfigOptions.timeout property
66

7-
Timeouts for processing durations. Response timeout is in milliseconds. Default value: 2 minutes
7+
Defines per-route timeouts.
88

99
<b>Signature:</b>
1010

1111
```typescript
12-
timeout?: number;
12+
timeout?: {
13+
payload?: Method extends 'get' | 'options' ? undefined : number;
14+
idleSocket?: number;
15+
};
1316
```

docs/settings/reporting-settings.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ control the capturing process.
129129
| Specify how long to allow the Reporting browser to wait for the "Loading..." screen
130130
to dismiss and find the initial data for the Kibana page. If the time is
131131
exceeded, a page screenshot is captured showing the current state, and the download link shows a warning message.
132-
Defaults to `30000` (30 seconds).
132+
Defaults to `60000` (1 minute).
133133

134134
| `xpack.reporting.capture.timeouts.waitForElements`
135135
| Specify how long to allow the Reporting browser to wait for all visualization

examples/embeddable_examples/public/book/add_book_to_library_action.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { i18n } from '@kbn/i18n';
2121
import { createAction, IncompatibleActionError } from '../../../../src/plugins/ui_actions/public';
2222
import { BookEmbeddable, BOOK_EMBEDDABLE } from './book_embeddable';
2323
import { ViewMode, isReferenceOrValueEmbeddable } from '../../../../src/plugins/embeddable/public';
24+
import { DASHBOARD_CONTAINER_TYPE } from '../../../../src/plugins/dashboard/public';
2425

2526
interface ActionContext {
2627
embeddable: BookEmbeddable;
@@ -41,6 +42,8 @@ export const createAddBookToLibraryAction = () =>
4142
return (
4243
embeddable.type === BOOK_EMBEDDABLE &&
4344
embeddable.getInput().viewMode === ViewMode.EDIT &&
45+
embeddable.getRoot().isContainer &&
46+
embeddable.getRoot().type !== DASHBOARD_CONTAINER_TYPE &&
4447
isReferenceOrValueEmbeddable(embeddable) &&
4548
!embeddable.inputIsRefType(embeddable.getInput())
4649
);

examples/embeddable_examples/public/book/book_embeddable.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import {
2626
EmbeddableOutput,
2727
SavedObjectEmbeddableInput,
2828
ReferenceOrValueEmbeddable,
29+
Container,
2930
} from '../../../../src/plugins/embeddable/public';
3031
import { BookSavedObjectAttributes } from '../../common';
3132
import { BookEmbeddableComponent } from './book_component';
@@ -103,7 +104,12 @@ export class BookEmbeddable extends Embeddable<BookEmbeddableInput, BookEmbeddab
103104
};
104105

105106
getInputAsValueType = async (): Promise<BookByValueInput> => {
106-
return this.attributeService.getInputAsValueType(this.input);
107+
const input =
108+
this.getRoot() && (this.getRoot() as Container).getInput().panels[this.id].explicitInput
109+
? ((this.getRoot() as Container).getInput().panels[this.id]
110+
.explicitInput as BookEmbeddableInput)
111+
: this.input;
112+
return this.attributeService.getInputAsValueType(input);
107113
};
108114

109115
getInputAsRefType = async (): Promise<BookByReferenceInput> => {

examples/embeddable_examples/public/book/unlink_book_from_library_action.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { i18n } from '@kbn/i18n';
2121
import { createAction, IncompatibleActionError } from '../../../../src/plugins/ui_actions/public';
2222
import { BookEmbeddable, BOOK_EMBEDDABLE } from './book_embeddable';
2323
import { ViewMode, isReferenceOrValueEmbeddable } from '../../../../src/plugins/embeddable/public';
24+
import { DASHBOARD_CONTAINER_TYPE } from '../../../../src/plugins/dashboard/public';
2425

2526
interface ActionContext {
2627
embeddable: BookEmbeddable;
@@ -41,6 +42,8 @@ export const createUnlinkBookFromLibraryAction = () =>
4142
return (
4243
embeddable.type === BOOK_EMBEDDABLE &&
4344
embeddable.getInput().viewMode === ViewMode.EDIT &&
45+
embeddable.getRoot().isContainer &&
46+
embeddable.getRoot().type !== DASHBOARD_CONTAINER_TYPE &&
4447
isReferenceOrValueEmbeddable(embeddable) &&
4548
embeddable.inputIsRefType(embeddable.getInput())
4649
);

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@
9090
"**/graphql-toolkit/lodash": "^4.17.15",
9191
"**/hoist-non-react-statics": "^3.3.2",
9292
"**/isomorphic-git/**/base64-js": "^1.2.1",
93+
"**/istanbul-instrumenter-loader/schema-utils": "1.0.0",
9394
"**/image-diff/gm/debug": "^2.6.9",
9495
"**/load-grunt-config/lodash": "^4.17.20",
9596
"**/react-dom": "^16.12.0",
9697
"**/react": "^16.12.0",
9798
"**/react-test-renderer": "^16.12.0",
99+
"**/request": "^2.88.2",
98100
"**/deepmerge": "^4.2.2",
99101
"**/fast-deep-equal": "^3.1.1"
100102
},
@@ -479,7 +481,7 @@
479481
"zlib": "^1.0.5"
480482
},
481483
"engines": {
482-
"node": "10.21.0",
484+
"node": "10.22.0",
483485
"yarn": "^1.21.1"
484486
}
485487
}

0 commit comments

Comments
 (0)