Skip to content

Commit

Permalink
Fix cluster call responses that are missing source fields (#118642)
Browse files Browse the repository at this point in the history
Change usage from `_source: 'true'` to `_source: true`.
  • Loading branch information
jportner authored Nov 16, 2021
1 parent e66072d commit 349434e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
"calls": Array [
Array [
Object {
"_source": "true",
"_source": true,
"index": "bar",
"query": undefined,
"rest_total_hits_as_int": true,
Expand All @@ -136,7 +136,7 @@ describe('esArchiver: createGenerateDocRecordsStream()', () => {
],
Array [
Object {
"_source": "true",
"_source": true,
"index": "foo",
"query": undefined,
"rest_total_hits_as_int": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function createGenerateDocRecordsStream({
index,
scroll: SCROLL_TIMEOUT,
size: SCROLL_SIZE,
_source: 'true',
_source: true,
query,
rest_total_hits_as_int: true,
},
Expand Down
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/service/lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ export class SavedObjectsRepository {
index: this.getIndexForType(type),
refresh,
require_alias: true,
_source: 'true',
_source: true,
body: {
script: {
source: `
Expand Down

0 comments on commit 349434e

Please sign in to comment.