[Security] Report accurate endpoint count (#83092)

This commit is contained in:
Dan Panzarella 2020-11-11 09:12:25 -05:00 committed by GitHub
parent 7fdd0a1b81
commit 7e24ae6e70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -37,6 +37,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,
@ -84,6 +85,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,
@ -142,6 +144,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,
@ -213,6 +216,7 @@ describe('query builder', () => {
},
},
],
track_total_hits: true,
},
from: 0,
size: 10,

View file

@ -86,6 +86,9 @@ export function metadataQueryStrategyV2(): MetadataQueryStrategy {
},
},
],
extraBodyProperties: {
track_total_hits: true,
},
queryResponseToHostListResult: (
searchResponse: SearchResponse<HostMetadata | HostMetadataDetails>
): HostListQueryResult => {