Skip to content

Commit

Permalink
[Discover] Minor cleanup (elastic#90260) (elastic#90283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic authored Feb 4, 2021
1 parent f9b2ad1 commit af940d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 454 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ export class SearchEmbeddable
);
if (useNewFieldsApi) {
searchSource.removeField('fieldsFromSource');
const fields: Record<string, any> = { field: '*' };
const fields: Record<string, string> = { field: '*' };
if (pre712) {
fields.include_unmapped = true;
fields.include_unmapped = 'true';
}
searchSource.setField('fields', [fields]);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

before(async () => {
await esArchiver.loadIfNeeded('unmapped_fields');
await kibanaServer.uiSettings.replace({ defaultIndex: 'test-index-unmapped-fields' });
await kibanaServer.uiSettings.update({
await kibanaServer.uiSettings.replace({
defaultIndex: 'test-index-unmapped-fields',
'discover:searchFieldsFromSource': false,
});
log.debug('discover');
Expand Down
Binary file removed test/functional/fixtures/es_archiver/data/data.json.gz
Binary file not shown.
Loading

0 comments on commit af940d5

Please sign in to comment.