Skip to content

Commit

Permalink
[8.16] [Fleet] Ignore missing policies when fetching agent data (elas…
Browse files Browse the repository at this point in the history
…tic#199325) (elastic#199348)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Fleet] Ignore missing policies when fetching agent data
(elastic#199325)](elastic#199325)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nicolas
Chaulet","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-07T16:29:37Z","message":"[Fleet]
Ignore missing policies when fetching agent data
(elastic#199325)","sha":"52d7eaf6d71775f7e25f5661175e2d4603164f00","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Fleet","v9.0.0","backport:prev-minor","v8.16.0"],"title":"[Fleet]
Ignore missing policies when fetching agent
data","number":199325,"url":"https://github.com/elastic/kibana/pull/199325","mergeCommit":{"message":"[Fleet]
Ignore missing policies when fetching agent data
(elastic#199325)","sha":"52d7eaf6d71775f7e25f5661175e2d4603164f00"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199325","number":199325,"mergeCommit":{"message":"[Fleet]
Ignore missing policies when fetching agent data
(elastic#199325)","sha":"52d7eaf6d71775f7e25f5661175e2d4603164f00"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nicolas Chaulet <[email protected]>
  • Loading branch information
kibanamachine and nchaulet authored Nov 7, 2024
1 parent 1bcd05c commit e079cab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function useFullAgentPolicyFetcher() {
if (policiesToFetchIds.length) {
const bulkGetAgentPoliciesResponse = await sendBulkGetAgentPolicies(policiesToFetchIds, {
full: authz.fleet.readAgentPolicies,
ignoreMissing: true,
});

if (bulkGetAgentPoliciesResponse.error) {
Expand Down

0 comments on commit e079cab

Please sign in to comment.