-
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
Make SUSE Manager section in Host Details page reactive #2593
Conversation
Software Updates
settings data reactiveThere 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.
Good job!
We just need to leverage SoftwareUpdatesDiscoveryEventHandler
event handler and do relevant things when specific other relevant things happen 😄
Besides this, what happens when a host gets deregistered or settings are cleared?
We might want that reactiveness also in these cases.
lib/trento/infrastructure/commanded/event_handlers/software_updates_discovery_event_handler.ex
Show resolved
Hide resolved
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.
LGTM, great work!
30e0e84
to
60adfd3
Compare
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.
Alright, great improvements 🚀
It would be great avoiding unnecessary requests to the APIs, but I guess we can just go with this now.
We at least have a saner behavior, now.
Description
This change adds the ability for Trento to send a WebSocket message to indicate that the software update discovery for a given host has been completed (
HOST_SOFTWARE_UPDATES_DISCOVERY_COMPLETED
).When a client receives the
HOST_SOFTWARE_UPDATES_DISCOVERY_COMPLETED
message, the client then requests the software updates settings information, and then also requests the software updates of a given host.How was this tested?