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

Exclude checks result from host's health when empty selection is saved #1858

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

nelsonkopliku
Copy link
Member

@nelsonkopliku nelsonkopliku commented Sep 22, 2023

Description

This PR makes sure to ignore the checks result from the host's aggregated health computation when an empty selection is saved.

Imagine a host whose heartbeat is successful, but the latest checks execution is warning: the resulting host health would be warning.
If we now deselect all the checks for the host and save the empty selection, no other execution would run and the checks_health would remain in warning, keeping also the host's aggregated health in warning state, which would not make sense if there are no selected checks.

How was this tested?

Automated test added

@nelsonkopliku nelsonkopliku changed the title Ignore checks result on empty selection Exclude checks result from host's aggregated health when an empty selection is saved Sep 22, 2023
@nelsonkopliku nelsonkopliku changed the base branch from main to determine-host-health September 22, 2023 10:34
@nelsonkopliku nelsonkopliku changed the title Exclude checks result from host's aggregated health when an empty selection is saved Exclude checks result from host's aggregated health on empty selection is saved Sep 22, 2023
@nelsonkopliku nelsonkopliku changed the title Exclude checks result from host's aggregated health on empty selection is saved Exclude checks result from host's health when empty selection is saved Sep 22, 2023
@nelsonkopliku nelsonkopliku self-assigned this Sep 22, 2023
@nelsonkopliku nelsonkopliku added enhancement New feature or request user story elixir Pull requests that update Elixir code labels Sep 22, 2023
Base automatically changed from determine-host-health to main September 25, 2023 13:36
@nelsonkopliku nelsonkopliku force-pushed the ignore-checks-result-on-empty-selection branch from 0781f93 to b4fd419 Compare September 25, 2023 13:41
@nelsonkopliku nelsonkopliku marked this pull request as ready for review September 25, 2023 13:41
Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

LGTM

@nelsonkopliku nelsonkopliku merged commit 74470d3 into main Sep 27, 2023
@nelsonkopliku nelsonkopliku deleted the ignore-checks-result-on-empty-selection branch September 27, 2023 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elixir Pull requests that update Elixir code enhancement New feature or request user story
Development

Successfully merging this pull request may close these issues.

2 participants