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

[8.x] [Fleet] Fix wrong condition in status runtime (#211779) #211830

Merged
merged 2 commits into from
Feb 20, 2025

Conversation

nchaulet
Copy link
Member

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

(cherry picked from commit ac63ee9)

# Conflicts:
#	x-pack/platform/plugins/shared/fleet/server/services/agents/build_status_runtime_field.test.ts
#	x-pack/platform/plugins/shared/fleet/server/services/agents/build_status_runtime_field.ts
@nchaulet nchaulet enabled auto-merge (squash) February 19, 2025 18:56
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Feb 19, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@@ -70,7 +70,7 @@ const _buildInactiveCondition = (opts: {
})
.join(' || ');

return `lastCheckinMillis > 0 && ${field('policy_id')}.size() > 0 && ${policyClauses}`;
return `lastCheckinMillis > 0 && ${field('policy_id')}.size() > 0 && (${policyClauses})`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is different as that backport PR is not merged yet #211764 I will update the PR when it's merged

@nchaulet nchaulet disabled auto-merge February 20, 2025 12:29
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@nchaulet nchaulet merged commit 270873e into elastic:8.x Feb 20, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants