-
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 checks execution domain logic #256
Conversation
3d7fcbc
to
59eb80e
Compare
) | ||
|
||
# TODO: post event to callback |
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.
remove TODO
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.
Amazing, amazing job @fabriziosestito
I have noted down some discussion points, but the change looks super promising.
PD: This looks a crutial part of the project, and I think a mob review would be ideal
"http://localhost:4000/api/runner/callback", | ||
Jason.encode!(%{ | ||
"event" => "execution_started", | ||
"cluster_id" => cluster_id, |
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.
We need to implement this in the runner part. I have already forgotten hehe
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.
Crazy journey 😄
Great iteration!
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.
YES
Wow you did actually fry your brain for this. I'm impressed! 😆
lib/trento/application/integration/checks/dto/execution_completed_event.ex
Show resolved
Hide resolved
@@ -17,9 +15,8 @@ defmodule Trento.CheckResultReadModel do | |||
field :cluster_id, Ecto.UUID, primary_key: true | |||
field :host_id, Ecto.UUID, primary_key: true | |||
field :check_id, :string, primary_key: true | |||
field :result, Ecto.Enum, values: [:passing, :warning, :critical, :running] | |||
field :result, Ecto.Enum, values: [:passing, :warning, :critical, :unknown] |
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.
Other small comment. From the runner, we pass the skipped
result as well to show which were the skipped checks.
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.
noted, will come in follow up PRs
59eb80e
to
6beed13
Compare
5665e29
to
f2ba0b1
Compare
This PR is the first iteration of the runner checks execution.
It adds the domain logic in the cluster aggregate and the commands and events needed to perform an execution process.
It also temporarily fixes the old FE so we can have some user feedback (review, yay).
ATM we are leveraging the
MockRunner
in the development environment and ignoring the host connection settings.More to come!