-
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 ENSA version info to Checks execution #2177
Conversation
db6669b
to
d537d81
Compare
There is an existing enum |
ensa version is a specificity of SapSystems, however its |
b6691b0
to
1d6b530
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.
Just a tiny thing in cluster_execution_env.ex
: we need to use the correct EnsaVersion
enum.
Besides that, LGTM.
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.
Great, thanks!
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 little thing then we can merge
lib/trento/clusters.ex
Outdated
case length(ensa_versions) do | ||
1 -> Enum.at(ensa_versions, 0) | ||
_ -> EnsaVersion.mixed_versions() | ||
end |
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.
case length(ensa_versions) do | |
1 -> Enum.at(ensa_versions, 0) | |
_ -> EnsaVersion.mixed_versions() | |
end | |
case ensa_versions do | |
[ensa_version] -> ensa_version | |
_ -> EnsaVersion.mixed_versions() | |
end |
You can leverage Elixir's declarative approach even more 👍
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.
Thanks! I was trying to figure out how to do essentially this 😆 looks a lot better 👍
1c1496b
to
c79373c
Compare
c79373c
to
bb51fde
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, great job 👍
Description
Adds ENSA version info to Checks execution.
How was this tested?
Added unit tests.