-
Notifications
You must be signed in to change notification settings - Fork 15
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
Change software_updates_discovery_health
default value
#2528
Change software_updates_discovery_health
default value
#2528
Conversation
ca3e8f2
to
b741de3
Compare
software_updates_discovery_health
default health
software_updates_discovery_health
default healthsoftware_updates_discovery_health
default value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
My unique concern is that we don't check for the current software discovery health when we receive the command, because if the health is the same, we don't need to emit the event.
Besides that, (except no_set/unset
term, which I hope @jamie-suse can help), everything looks good.
PD: Let's not merge this in a hurry. We need to see the currently changed things in demo (like tags, selected checks, etc), as we will need to recreate the db and event store
Type that represents the possible health values for the software updates discovery process. | ||
""" | ||
|
||
use Trento.Support.Enum, values: [:passing, :warning, :critical, :unknown, :not_set] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe unset
is more appropriate that not_set
.
What does our anglo native @jamie-suse say hehe ?
91fe6d0
to
614c3bc
Compare
…lth does not actually change
614c3bc
to
fd7e957
Compare
Description
In this PR
software_updates_discovery_health
is changed fromunknown
tonot_set
(required in followup changes settingsoftware_updates_discovery_health
and consequently host's health to unknown on discovery errors)software_updates_discovery_health
based on discovered patches is moved from the Host aggregate to the DiscoverySoftwareUpdatesDiscoveryCompleted
is changed toSoftwareUpdatesHealthChanged
carrying only the computed healthHow was this tested?
Automated tests.