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 topology view for a single physical infra provider #4158
Conversation
298943a
to
01542e1
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.
Some inconsistencies are being introduced, please fix them. Thanks 👍 🍻
|
||
:javascript | ||
miq_bootstrap('.topology'); | ||
= render :partial => "ems_physical_infra/show_topology" |
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.
Why introducing this inconsistency? All the other topology views are using *_topology/show.html.haml
file structure...
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.
Ok, what happened here was that ems_comon/_show.html.haml
was rendering ems_container/show_topology
which is specific to containers ( I guess no other provider show a topology for a single provider, at least ems_infra
doesn't ). I changed that to make it more generic. Do you have any other suggestion to make it look better?
|
||
:javascript | ||
miq_bootstrap('.topology'); | ||
= render :partial => "ems_container/show_topology" |
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.
What this PR has to do with containers?
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.
Since ems_comon
show be generic, and it was rendering a file specific to containers, I moved it to a partial so ems_comon/_show.html.haml
could be more generic. I kept this file because the topology view (that shows every provider) still uses this file.
01542e1
to
5a95a0a
Compare
Checked commit felipedf@5a95a0a with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
I see, you are right. |
@felipedf yes, please do so. Try to follow the other topology screens in consistency and all should be okay 🍻 |
Closing this PR as it will be waiting on changes of the container topology view |
The goal here is to create a topology for a single physical infra provider