Skip to content

Commit 5f04c15

Browse files
author
Liza K
committed
Merge branch 'master' of github.com:elastic/kibana into data/queryinput-manager
2 parents b0dc470 + 2a82ff9 commit 5f04c15

File tree

360 files changed

+8987
-5988
lines changed

Some content is hidden

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

360 files changed

+8987
-5988
lines changed

docs/maps/trouble-shooting.asciidoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ image::maps/images/inspector.png[]
2020
[float]
2121
=== Solutions to common problems
2222

23+
[float]
24+
==== Index not listed when adding layer
25+
26+
* Verify your geospatial data is correctly mapped as {ref}/geo-point.html[geo_point] or {ref}/geo-shape.html[geo_shape].
27+
** Run `GET myIndexPatternTitle/_field_caps?fields=myGeoFieldName` in <<console-kibana, Console>>, replacing `myIndexPatternTitle` and `myGeoFieldName` with your index pattern title and geospatial field name.
28+
** Ensure response specifies `type` as `geo_point` or `geo_shape`.
29+
* Verify your geospatial data is correctly mapped in your <<managing-fields, Kibana index pattern>>.
30+
** Open your index pattern in <<management, Stack Management>>.
31+
** Ensure your geospatial field type is `geo_point` or `geo_shape`.
32+
** Ensure your geospatial field is searchable and aggregatable.
33+
** If your geospatial field type does not match your Elasticsearch mapping, click the *Refresh* button to refresh the field list from Elasticsearch.
34+
* Index patterns with thousands of fields can exceed the default maximum payload size.
35+
Increase <<settings, `server.maxPayloadBytes`>> for large index patterns.
36+
2337
[float]
2438
==== Features are not displayed
2539

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@
317317
"@types/accept": "3.1.1",
318318
"@types/angular": "^1.6.56",
319319
"@types/angular-mocks": "^1.7.0",
320+
"@types/archiver": "^3.1.0",
320321
"@types/babel__core": "^7.1.2",
321322
"@types/bluebird": "^3.1.1",
322323
"@types/boom": "^7.2.0",
@@ -398,6 +399,7 @@
398399
"@types/testing-library__react-hooks": "^3.1.0",
399400
"@types/type-detect": "^4.0.1",
400401
"@types/uuid": "^3.4.4",
402+
"@types/vinyl": "^2.0.4",
401403
"@types/vinyl-fs": "^2.4.11",
402404
"@types/zen-observable": "^0.8.0",
403405
"@typescript-eslint/eslint-plugin": "^2.34.0",
@@ -474,6 +476,7 @@
474476
"license-checker": "^16.0.0",
475477
"listr": "^0.14.1",
476478
"load-grunt-config": "^3.0.1",
479+
"load-json-file": "^6.2.0",
477480
"mocha": "^7.1.1",
478481
"mock-fs": "^4.12.0",
479482
"mock-http-server": "1.3.0",

packages/kbn-dev-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"normalize-path": "^3.0.0",
2121
"moment": "^2.24.0",
2222
"rxjs": "^6.5.5",
23+
"strip-ansi": "^6.0.0",
2324
"tree-kill": "^1.2.2",
2425
"tslib": "^2.0.0"
2526
},

packages/kbn-dev-utils/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
export { withProcRunner, ProcRunner } from './proc_runner';
2121
export * from './tooling_log';
22-
export { createAbsolutePathSerializer } from './serializers';
22+
export * from './serializers';
2323
export {
2424
CA_CERT_PATH,
2525
ES_KEY_PATH,

packages/kbn-dev-utils/src/serializers/absolute_path_serializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { REPO_ROOT } from '../repo_root';
2121

2222
export function createAbsolutePathSerializer(rootPath: string = REPO_ROOT) {
2323
return {
24-
serialize: (value: string) => value.replace(rootPath, '<absolute path>').replace(/\\/g, '/'),
2524
test: (value: any) => typeof value === 'string' && value.startsWith(rootPath),
25+
serialize: (value: string) => value.replace(rootPath, '<absolute path>').replace(/\\/g, '/'),
2626
};
2727
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
export function createAnyInstanceSerializer(Class: Function, name?: string) {
21+
return {
22+
test: (v: any) => v instanceof Class,
23+
serialize: () => `<${name ?? Class.name}>`,
24+
};
25+
}

packages/kbn-dev-utils/src/serializers/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
export { createAbsolutePathSerializer } from './absolute_path_serializer';
20+
export * from './absolute_path_serializer';
21+
export * from './strip_ansi_serializer';
22+
export * from './recursive_serializer';
23+
export * from './any_instance_serizlizer';
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
export function createRecursiveSerializer(test: (v: any) => boolean, print: (v: any) => string) {
21+
return {
22+
test: (v: any) => test(v),
23+
serialize: (v: any, ...rest: any[]) => {
24+
const replacement = print(v);
25+
const printer = rest.pop()!;
26+
return printer(replacement, ...rest);
27+
},
28+
};
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import stripAnsi from 'strip-ansi';
21+
22+
import { createRecursiveSerializer } from './recursive_serializer';
23+
24+
export function createStripAnsiSerializer() {
25+
return createRecursiveSerializer(
26+
(v) => typeof v === 'string' && stripAnsi(v) !== v,
27+
(v) => stripAnsi(v)
28+
);
29+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
* under the License.
1818
*/
1919

20-
export * from './run';
20+
export * from './src/index';

0 commit comments

Comments
 (0)