Skip to content

Commit

Permalink
Fix cluster call responses that are missing source fields
Browse files Browse the repository at this point in the history
Change usage from `_source: 'true'` to `_source: true`.
  • Loading branch information
Joe Portner committed Nov 16, 2021
1 parent 5fe8d74 commit cb65ac1
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 cb65ac1

Please sign in to comment.