Skip to content

Commit 65967cd

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 97ba8a7 + 7d929fe commit 65967cd

File tree

366 files changed

+6869
-3018
lines changed

Some content is hidden

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

366 files changed

+6869
-3018
lines changed

docs/management/advanced-options.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@ of buckets to try to represent.
454454

455455
[horizontal]
456456
[[visualization-colormapping]]`visualization:colorMapping`::
457-
Maps values to specified colors in visualizations.
457+
**This setting is deprecated and will not be supported as of 8.0.**
458+
Maps values to specific colors in *Visualize* charts and *TSVB*. This setting does not apply to *Lens*.
458459

459460
[[visualization-dimmingopacity]]`visualization:dimmingOpacity`::
460461
The opacity of the chart items that are dimmed when highlighting another element

examples/embeddable_examples/public/book/book_embeddable_factory.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ export class BookEmbeddableFactoryDefinition
127127

128128
private async unwrapMethod(savedObjectId: string): Promise<BookSavedObjectAttributes> {
129129
const { savedObjectsClient } = await this.getStartServices();
130-
const savedObject: SimpleSavedObject<BookSavedObjectAttributes> = await savedObjectsClient.get<
131-
BookSavedObjectAttributes
132-
>(this.type, savedObjectId);
130+
const savedObject: SimpleSavedObject<BookSavedObjectAttributes> = await savedObjectsClient.get<BookSavedObjectAttributes>(
131+
this.type,
132+
savedObjectId
133+
);
133134
return { ...savedObject.attributes };
134135
}
135136

@@ -163,9 +164,9 @@ export class BookEmbeddableFactoryDefinition
163164

164165
private async getAttributeService() {
165166
if (!this.attributeService) {
166-
this.attributeService = (await this.getStartServices()).getAttributeService<
167-
BookSavedObjectAttributes
168-
>(this.type, {
167+
this.attributeService = (
168+
await this.getStartServices()
169+
).getAttributeService<BookSavedObjectAttributes>(this.type, {
169170
saveMethod: this.saveMethod.bind(this),
170171
unwrapMethod: this.unwrapMethod.bind(this),
171172
checkForDuplicateTitle: this.checkForDuplicateTitleMethod.bind(this),

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"**/load-grunt-config/lodash": "^4.17.20",
9393
"**/minimist": "^1.2.5",
9494
"**/node-jose/node-forge": "^0.10.0",
95+
"**/prismjs": "1.22.0",
9596
"**/request": "^2.88.2",
9697
"**/trim": "0.0.3",
9798
"**/typescript": "4.0.2"
@@ -510,7 +511,7 @@
510511
"@types/pdfmake": "^0.1.15",
511512
"@types/pegjs": "^0.10.1",
512513
"@types/pngjs": "^3.4.0",
513-
"@types/prettier": "^2.0.2",
514+
"@types/prettier": "^2.1.5",
514515
"@types/pretty-ms": "^5.0.0",
515516
"@types/prop-types": "^15.7.3",
516517
"@types/proper-lockfile": "^3.0.1",
@@ -626,7 +627,7 @@
626627
"enzyme-adapter-utils": "^1.13.0",
627628
"enzyme-to-json": "^3.4.4",
628629
"eslint": "^6.8.0",
629-
"eslint-config-prettier": "^6.11.0",
630+
"eslint-config-prettier": "^6.15.0",
630631
"eslint-import-resolver-node": "0.3.2",
631632
"eslint-import-resolver-webpack": "0.11.1",
632633
"eslint-module-utils": "2.5.0",
@@ -762,7 +763,7 @@
762763
"postcss": "^7.0.32",
763764
"postcss-loader": "^3.0.0",
764765
"postcss-prefix-selector": "^1.7.2",
765-
"prettier": "^2.1.1",
766+
"prettier": "^2.2.0",
766767
"pretty-ms": "5.0.0",
767768
"proxyquire": "1.8.0",
768769
"querystring": "^0.2.0",

packages/kbn-test/src/functional_test_runner/lib/snapshots/decorate_snapshot_ui.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ function getSnapshotState(file: string, test: Test, updateSnapshots: boolean) {
196196
path.join(dirname + `/__snapshots__/` + filename.replace(path.extname(filename), '.snap')),
197197
{
198198
updateSnapshot: updateSnapshots ? 'all' : 'new',
199+
// @ts-expect-error
199200
getPrettier: () => prettier,
200201
getBabelTraverse: () => babelTraverse,
201202
}

src/core/server/elasticsearch/elasticsearch_service.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ let coreContext: CoreContext;
5757
const logger = loggingSystemMock.create();
5858

5959
let mockClusterClientInstance: ReturnType<typeof elasticsearchClientMock.createCustomClusterClient>;
60-
let mockLegacyClusterClientInstance: ReturnType<typeof elasticsearchServiceMock.createLegacyCustomClusterClient>;
60+
let mockLegacyClusterClientInstance: ReturnType<
61+
typeof elasticsearchServiceMock.createLegacyCustomClusterClient
62+
>;
6163

6264
beforeEach(() => {
6365
env = Env.createDefault(REPO_ROOT, getEnvOptions());

src/core/server/saved_objects/migrations/mocks.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
import { SavedObjectMigrationContext } from './types';
2121
import { SavedObjectsMigrationLogger } from './core';
2222

23-
export const createSavedObjectsMigrationLoggerMock = (): jest.Mocked<
24-
SavedObjectsMigrationLogger
25-
> => {
23+
export const createSavedObjectsMigrationLoggerMock = (): jest.Mocked<SavedObjectsMigrationLogger> => {
2624
const mock = {
2725
debug: jest.fn(),
2826
info: jest.fn(),

src/core/server/saved_objects/saved_objects_service.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,8 @@ describe('SavedObjectsService', () => {
217217
await soService.setup(setupDeps);
218218
soService.start(createStartDeps());
219219
expect(migratorInstanceMock.runMigrations).toHaveBeenCalledTimes(0);
220-
((setupDeps.elasticsearch.esNodesCompatibility$ as any) as BehaviorSubject<
221-
NodesVersionCompatibility
222-
>).next({
220+
((setupDeps.elasticsearch
221+
.esNodesCompatibility$ as any) as BehaviorSubject<NodesVersionCompatibility>).next({
223222
isCompatible: true,
224223
incompatibleNodes: [],
225224
warningNodes: [],

src/core/server/saved_objects/service/lib/repository_create_repository.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ describe('SavedObjectsRepository#createRepository', () => {
6666
});
6767

6868
const migrator = mockKibanaMigrator.create({ types: typeRegistry.getAllTypes() });
69-
const RepositoryConstructor = (SavedObjectsRepository as unknown) as jest.Mock<
70-
SavedObjectsRepository
71-
>;
69+
const RepositoryConstructor = (SavedObjectsRepository as unknown) as jest.Mock<SavedObjectsRepository>;
7270

7371
beforeEach(() => {
7472
RepositoryConstructor.mockClear();

src/plugins/charts/server/plugin.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,18 @@ export class ChartsServerPlugin implements Plugin<object, object> {
4141
}),
4242
type: 'json',
4343
description: i18n.translate('charts.advancedSettings.visualization.colorMappingText', {
44-
defaultMessage: 'Maps values to specified colors within visualizations',
44+
defaultMessage:
45+
'Maps values to specific colors in <strong>Visualize</strong> charts and <strong>TSVB</strong>. This setting does not apply to <strong>Lens.</strong>',
4546
}),
47+
deprecation: {
48+
message: i18n.translate(
49+
'charts.advancedSettings.visualization.colorMappingTextDeprecation',
50+
{
51+
defaultMessage: 'This setting is deprecated and will not be supported as of 8.0.',
52+
}
53+
),
54+
docLinksKey: 'visualizationSettings',
55+
},
4656
category: ['visualization'],
4757
schema: schema.string(),
4858
},

src/plugins/console/public/application/models/legacy_core_editor/legacy_core_editor.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -368,20 +368,21 @@ export class LegacyCoreEditor implements CoreEditor {
368368

369369
// disable standard context based autocompletion.
370370
// @ts-ignore
371-
ace.define('ace/autocomplete/text_completer', ['require', 'exports', 'module'], function (
372-
require: any,
373-
exports: any
374-
) {
375-
exports.getCompletions = function (
376-
innerEditor: any,
377-
session: any,
378-
pos: any,
379-
prefix: any,
380-
callback: any
381-
) {
382-
callback(null, []);
383-
};
384-
});
371+
ace.define(
372+
'ace/autocomplete/text_completer',
373+
['require', 'exports', 'module'],
374+
function (require: any, exports: any) {
375+
exports.getCompletions = function (
376+
innerEditor: any,
377+
session: any,
378+
pos: any,
379+
prefix: any,
380+
callback: any
381+
) {
382+
callback(null, []);
383+
};
384+
}
385+
);
385386

386387
const langTools = ace.acequire('ace/ext/language_tools');
387388

0 commit comments

Comments
 (0)