Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fleet] Ignore missing policies when fetching agent data #199325

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Nov 7, 2024

Summary

In #191661 we changed the way we fetch agent policies, we do not fetch all policies with all package policies anymore but do a bulk get call to load the needed policies.

That PR fix that call to still be able to render the agent list table if a policy is missing.

Test

How to test? You can enroll an agent and delete the related agent policies saved objects

POST .kibana_ingest/_delete_by_query?q=type:ingest-agent-policies
Screenshot 2024-11-07 at 9 38 44 AM

@nchaulet nchaulet added bug Fixes for quality problems that affect the customer experience Team:Fleet Team label for Observability Data Collection Fleet team backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) v8.16.0 labels Nov 7, 2024
@nchaulet nchaulet self-assigned this Nov 7, 2024
@nchaulet nchaulet requested a review from a team as a code owner November 7, 2024 14:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@nchaulet nchaulet added the release_note:skip Skip the PR/issue when compiling release notes label Nov 7, 2024
@nchaulet nchaulet enabled auto-merge (squash) November 7, 2024 15:44
@nchaulet nchaulet merged commit 52d7eaf into elastic:main Nov 7, 2024
35 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.x

https://github.com/elastic/kibana/actions/runs/11727209788

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.7MB 1.7MB +17.0B

cc @nchaulet

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 7, 2024
) (#199348)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Fleet] Ignore missing policies when fetching agent data
(#199325)](#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
(#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
(#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
(#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]>
kibanamachine added a commit that referenced this pull request Nov 7, 2024
…) (#199349)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Fleet] Ignore missing policies when fetching agent data
(#199325)](#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
(#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
(#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
(#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]>
mbondyra pushed a commit to mbondyra/kibana that referenced this pull request Nov 8, 2024
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Nov 8, 2024
@mistic mistic added v8.16.1 and removed v8.16.0 labels Nov 12, 2024
@mistic
Copy link
Member

mistic commented Nov 12, 2024

This PR didn't make it on time to the latest 8.16.0 BC. Updating the labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.16.1 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants