-
Notifications
You must be signed in to change notification settings - Fork 358
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
Rendering status for servers and deployments in middleware topology #1461
Rendering status for servers and deployments in middleware topology #1461
Conversation
So 'Reload required' is the same color as 'Starting'. Shouldn't we distinguish between them or else users will be restarting servers that are just starting up? |
@mtho11 Yes, both of them will show the same color. My thinking was using amber to show that something is different than a "normal" state. But you have a good point. May be I should make "starting" to render as gray (the same as unknown) or add a new color (blue is the one I'm thinking)? |
fe2a5e0
to
fa401f2
Compare
@miq-bot add_label enhancement, topology |
probably this test needs fixing too (and its data) |
fa401f2
to
b948104
Compare
It wasn't. Now it's updated. The only state I couldn't do is the "reload required" for servers that should be amber. For some reason, when the server is in "reload required" state, the agent reports it as "down" and becomes red in topology. I'll ask in IRC tomorrow in my morning to know if this is an issue or if that's how it works.
Ah! I missed that test. Thanks for pointing it. Hmm... But the data/fixture is only used to check presence of parsed data here and here. The other examples just test directly the javascript functions as a unit. No changes are required to existent tests, but |
app/assets/stylesheets/topology.css
Outdated
.kube-topology g circle.information { | ||
stroke: #00c; | ||
} | ||
|
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.
does it have to be in the general topology css?
we have a designated css for middleware topology here
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.
It doesn't need to be here. But the case statement selecting which css class will be rendered is in the general topology_service.js. I can move it to the middleware css and place a note in topology js stating where that style is defined and if somebody else needs it, she/he can move the style to the general topology css.
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, I agree with having the css in middleware topology as well.
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.
Done! Now it is in middleware css.
@@ -19,7 +19,8 @@ | |||
:feed => '70c798a0-6985-4f8a-a525-012d8d28e8a3', | |||
:ems_ref => long_id_0, | |||
:nativeid => 'Local~~', | |||
:ext_management_system => ems_hawkular) | |||
:ext_management_system => ems_hawkular, | |||
:properties => { 'Calculated Server State' => 'running' }) |
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.
is there a test checking what happens when the status property is not set?
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.
There isn't. I will add it. It should render as "unknown" (gray circle).
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.
Added, it is down in the file.
@miq-bot add_label middleware |
Please be aware of topology rewrite with angular components: ManageIQ/ui-components#75 |
Status of middleware servers and deployments are set when building topology view. This renders the status in tooltips in related topology nodes and also renders status colors. Regarding colors: - For middleware servers, when status is: * Down => red * Running => green * Reload required => amber * Starting => blue - For deployments: * Enabled => green * Disabled => amber This is the first step to cover ManageIQ/manageiq-providers-hawkular#5
b948104
to
4108d2e
Compare
Checked commit israel-hdez@4108d2e with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
"display_kind": "MiddlewareDeploymentWar" | ||
} | ||
}; | ||
|
||
var mw_deployment_disabled = { | ||
id: "MiddlewareDeployment1", |
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.
it's a nit, but I would set different ids to different vars in the test. from a consistency perspective only.
other than a nit, lgtm and ready for merge. |
As @mtho11 mentioned, I'm currently refactoring the topology screens and moving it to a single angular component with some extra features. From my side it's okay to merge this as it's not so complex, but I'd like to know about such new features to keep up with the new component... |
@skateman |
@abonas thanks! |
Status of middleware servers and deployments are set when building
topology view. This renders the status in tooltips in related
topology nodes and also renders status colors.
Regarding colors:
This is the first step to cover ManageIQ/manageiq-providers-hawkular#5