-
Notifications
You must be signed in to change notification settings - Fork 356
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 MiddlewareServerEap and MiddlewareServerWildfly for Utilization charts #2976
Conversation
Review @ManageIQ/committers-hawkular |
@miq-bot add_label gaprindashvili/yes |
@miq-bot add_label bug, middleware |
@cfcosta please review |
@tumido please review |
commit message has a typo (Utilziation) , please fix |
@@ -634,7 +634,7 @@ def perf_gen_data_before_wait | |||
from_dt, | |||
to_dt, | |||
interval_type] | |||
elsif %w(MiddlewareServer MiddlewareDatasource MiddlewareMessaging).include?(@perf_record.class.name.demodulize) | |||
elsif %w(MiddlewareServer MiddlewareServerEap MiddlewareDatasource MiddlewareMessaging).include?(@perf_record.class.name.demodulize) |
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 about MiddlewareServerWildfly? it sounds like it would have the same problem, no?
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 We'll have the same problem. Added MiddlewareServerWildfly.
ac79425
to
c8c924d
Compare
Edited commit message and added MiddlewareServerWildfly |
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.
Also it seems you've forgot to do the change for realtime branch on line 664
@@ -634,7 +634,7 @@ def perf_gen_data_before_wait | |||
from_dt, | |||
to_dt, | |||
interval_type] | |||
elsif %w(MiddlewareServer MiddlewareDatasource MiddlewareMessaging).include?(@perf_record.class.name.demodulize) | |||
elsif %w(MiddlewareServer MiddlewareServerEap MiddlewareServerWildfly MiddlewareDatasource MiddlewareMessaging).include?(@perf_record.class.name.demodulize) |
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 don't want to add every class every time we decide something should be sub-classed. I would prefer this much more: %w(MiddlewareServer MiddlewareDatasource MiddlewareMessaging).any? { |e| @perf_record.kind_of? e.constantize }
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.
The problem is that this objct is MiddlewareServerEAP so ..or we control that object include MiddlewareServer or we must check the type.
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 forgot the real-time I'll do after this discussion about how we are going to do it.
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 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 didn't see that your proposal was kind_of ^^ ok I agree with you, I am gonna make the change Thanks @tumido
c8c924d
to
feb3f65
Compare
I did the changes @tumido thanks |
feb3f65
to
f7e71ea
Compare
…ap and MiddlewareServerWildfly for Utilization charts
f7e71ea
to
0ec98f3
Compare
Checked commit aljesusg@0ec98f3 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
This looks much better! 🎉
I know the test coverage is poor in this area (and refactoring is needed), so I leave that on others to decide - can we have this tiny part covered by tests? Something like "with these entities we can at least render a chart" testcases.
Add MiddlewareServerEap and MiddlewareServerWildfly for Utilization charts (cherry picked from commit bec1a6f) https://bugzilla.redhat.com/show_bug.cgi?id=1524706
Gaprindashvili backport details:
|
Bugzilla #1510548
MiddlewareServerEap and MiddlewareServerWildfly was not in the list of types.
cc @abonas