Skip to content

Commit

Permalink
consistent name for reportingPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Feb 12, 2020
1 parent d235b16 commit e8aa02d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { SearchPanel, VisPanel, JobParamsPanelCsv, FakeRequest } from '../../typ
import { generateCsvSearch } from './generate_csv_search';

export function createGenerateCsv(
reportingPlugin: ReportingPlugin,
reporting: ReportingPlugin,
server: ServerFacade,
elasticsearch: ElasticsearchServiceSetup,
logger: Logger
Expand All @@ -32,7 +32,7 @@ export function createGenerateCsv(
case 'search':
return await generateCsvSearch(
request as RequestFacade,
reportingPlugin,
reporting,
server,
elasticsearch,
logger,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ const getUiSettings = async (config: IUiSettingsClient) => {

export async function generateCsvSearch(
req: RequestFacade,
reportingPlugin: ReportingPlugin,
reporting: ReportingPlugin,
server: ServerFacade,
elasticsearch: ElasticsearchServiceSetup,
logger: Logger,
searchPanel: SearchPanel,
jobParams: JobParamsDiscoverCsv
): Promise<CsvResultFromSearch> {
const savedObjectsClient = await reportingPlugin.getSavedObjectsClient(
const savedObjectsClient = await reporting.getSavedObjectsClient(
KibanaRequest.from(req.getRawRequest())
);
const { indexPatternSavedObjectId, timerange } = searchPanel;
Expand All @@ -78,7 +78,7 @@ export async function generateCsvSearch(
indexPatternSavedObjectId
);

const uiConfig = await reportingPlugin.getUiSettingsServiceFactory(savedObjectsClient);
const uiConfig = await reporting.getUiSettingsServiceFactory(savedObjectsClient);
const esQueryConfig = await getEsQueryConfig(uiConfig);

const {
Expand Down

0 comments on commit e8aa02d

Please sign in to comment.