[TSVB] Filter with scripted field doesn't work after migration to 7.13.1 (#115762)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Diana Derevyankina 2021-11-11 16:46:29 +03:00 committed by GitHub
parent 744530ecdb
commit b2e2264a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -36,7 +36,10 @@ export async function getSeriesData(
fieldFormatService,
} = services;
const panelIndex = await cachedIndexPatternFetcher(panel.index_pattern);
const panelIndex = await cachedIndexPatternFetcher(
panel.index_pattern,
!panel.use_kibana_indexes
);
const strategy = await searchStrategyRegistry.getViableStrategy(requestContext, req, panelIndex);

View file

@ -31,7 +31,10 @@ export async function getTableData(
panel: Panel,
services: VisTypeTimeseriesRequestServices
) {
const panelIndex = await services.cachedIndexPatternFetcher(panel.index_pattern);
const panelIndex = await services.cachedIndexPatternFetcher(
panel.index_pattern,
!panel.use_kibana_indexes
);
const strategy = await services.searchStrategyRegistry.getViableStrategy(
requestContext,