-
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
Add Host Check Selection Domain logic #1524
Conversation
02b0e06
to
e62ec9e
Compare
e62ec9e
to
c723433
Compare
b83c54c
to
33d5606
Compare
33d5606
to
fc32b7e
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.
One change then we can merge 👍
fc32b7e
to
5f1e790
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.
Hey thanks for all --> LGTM :D
5f1e790
to
d16a90e
Compare
%Host{host_id: nil}, | ||
%SelectHostChecks{} | ||
) do | ||
{:error, :host_not_registered} |
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.
I added this clause to keep the domain consistent.
However, this will be likely replaced by what has been implemented in deregistration
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.
Indeed, it will cause conflicts
%Host{host_id: nil}, | ||
%SelectHostChecks{} | ||
) do | ||
{:error, :host_not_registered} |
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.
Indeed, it will cause conflicts
Co-authored-by: Eugen Maksymenko <eugen.maksymenko@suse.com>
d16a90e
to
e2a161a
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.
LGTM
Co-authored-by: Eugen Maksymenko <eugen.maksymenko@suse.com>
e2a161a
to
37d424b
Compare
Description
This PR adds a new command
Trento.Domain.Commands.SelectHostChecks
, which allows the selection of host checks within the host aggregate. Upon execution, the command triggers the emission of theTrento.Domain.Events.HostChecksSelected
event, leading to a change in the state.We're deferring updating cluster related command/event pair related to check selection
Trento.Domain.Commands.SelectChecks
/Trento.Domain.Events.ChecksSelected
.Not much for the command, but mainly for the event.
How was this tested?
Automated tests.