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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import _ from 'lodash';

// FIXME this logic should be re-used with Discover
// TODO this logic should be re-used with Discover
export function createFlattenHit(fields, metaFields, conflictedTypesFields) {
const flattenSource = (flat, obj, keyPrefix) => {
keyPrefix = keyPrefix ? keyPrefix + '.' : '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
SearchPanel,
TimeRangeParams,
VisObjectAttributesJSON,
} from '../../types';
} from '../../';
import { createGenerateCsv } from '../lib/generate_csv';
import { createJobSearch } from './create_job_search';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SavedSearchObjectAttributes,
SearchPanel,
TimeRangeParams,
} from '../../types';
} from '../../';

interface SearchPanelData {
title: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Request } from 'hapi';
// @ts-ignore
import { createTaggedLogger } from '../../../../server/lib';
import { KbnServer, Logger } from '../../../../types';
import { SearchPanel, VisPanel } from '../../types';
import { SearchPanel, VisPanel } from '../../';
import { generateCsvSearch } from './generate_csv_search';

interface FakeRequest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
SearchRequest,
SearchSource,
TimeRangeParams,
} from '../../types';
} from '../../';
import { getDataSource } from './get_data_source';

interface SavedSearchGeneratorResult {
Expand All @@ -42,7 +42,7 @@ interface GenerateCsvParams {
formatsMap: FormatsMap;
metaFields: string[]; // FIXME not sure what this is for
conflictedTypesFields: string[]; // FIXME not sure what this is for
cancellationToken: any; // FIXME not sure how to do anything with this
cancellationToken: any;
settings: {
separator: string;
quoteValues: boolean;
Expand Down Expand Up @@ -181,7 +181,7 @@ export async function generateCsvSearch(
formatsMap: new Map(), // there is no field formatting in this API; this is required for generateCsv
metaFields: [],
conflictedTypesFields: [],
cancellationToken: [],
cancellationToken: [], // TODO
settings: {
...uiSettings,
maxSizeBytes: config.get('xpack.reporting.csv.maxSizeBytes'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
SavedObjectReference,
SavedSearchObjectAttributesJSON,
SearchSource,
} from '../../types';
} from '../../';

export async function getDataSource(
savedObjectsClient: any,
Expand Down