Skip to content

Commit

Permalink
[7.x] [Security] Report accurate endpoint count (#83092) (#83168)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzl authored Nov 11, 2020
1 parent 1eb8264 commit ec22d2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,
Expand Down Expand Up @@ -84,6 +85,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,
Expand Down Expand Up @@ -142,6 +144,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,
Expand Down Expand Up @@ -213,6 +216,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export function metadataQueryStrategyV2(): MetadataQueryStrategy {
},
},
],
extraBodyProperties: {
track_total_hits: true,
},
queryResponseToHostListResult: (
searchResponse: SearchResponse<HostMetadata | HostMetadataDetails>
): HostListQueryResult => {
Expand Down

0 comments on commit ec22d2c

Please sign in to comment.