Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions x-pack/plugins/lens/public/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Import the EUI global scope so we can use EUI constants
@import 'src/legacy/ui/public/styles/_styling_constants';

@import "./drag_drop/drag_drop.scss";
@import "./xy_visualization_plugin/xy_expression.scss";
@import './drag_drop/drag_drop.scss';
@import './xy_visualization_plugin/xy_expression.scss';
@import './indexpattern_plugin/indexpattern';
1 change: 1 addition & 0 deletions x-pack/plugins/lens/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
export * from './types';

import 'ui/autoload/all';
// Used to run esaggs queries
import 'uiExports/fieldFormats';
import 'uiExports/search';
import 'uiExports/visRequestHandlers';
Expand Down
50 changes: 48 additions & 2 deletions x-pack/plugins/lens/public/indexpattern_plugin/__mocks__/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getIndexPatterns() {
resolve([
{
id: '1',
title: 'Fake Index Pattern',
title: 'my-fake-index-pattern',
timeFieldName: 'timestamp',
fields: [
{
Expand All @@ -34,7 +34,7 @@ export function getIndexPatterns() {
},
{
id: '2',
title: 'Fake Rollup Pattern',
title: 'my-fake-restricted-pattern',
timeFieldName: 'timestamp',
fields: [
{
Expand All @@ -56,6 +56,52 @@ export function getIndexPatterns() {
searchable: true,
},
],
typeMeta: {
params: {
rollup_index: 'my-fake-index-pattern',
},
aggs: {
terms: {
source: {
agg: 'terms',
},
},
date_histogram: {
timestamp: {
agg: 'date_histogram',
fixed_interval: '1d',
delay: '7d',
time_zone: 'UTC',
},
},
histogram: {
bytes: {
agg: 'histogram',
interval: 1000,
},
},
avg: {
bytes: {
agg: 'avg',
},
},
max: {
bytes: {
agg: 'max',
},
},
min: {
bytes: {
agg: 'min',
},
},
sum: {
bytes: {
agg: 'sum',
},
},
},
},
},
]);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

const actual = jest.requireActual('../operations');

jest.spyOn(actual, 'getPotentialColumns');
jest.spyOn(actual, 'getColumnOrder');

export const {
getPotentialColumns,
getColumnOrder,
getOperations,
getOperationDisplay,
getOperationTypesForField,
getOperationResultType,
} = actual;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading