Skip to content

Commit

Permalink
[Security] Report accurate endpoint count (elastic#83092)
Browse files Browse the repository at this point in the history
  • Loading branch information
pzl committed Nov 11, 2020
1 parent 7cdf492 commit ae4b9da
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 ae4b9da

Please sign in to comment.