-
Notifications
You must be signed in to change notification settings - Fork 897
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
Adjust LiveMetric conditions parsing #10570
Adjust LiveMetric conditions parsing #10570
Conversation
@miq-bot add_label bug,providers/hawkular |
50d9ec5
to
6fb3ec7
Compare
6fb3ec7
to
f348765
Compare
Added a new commit related to the same context. |
5950c00
to
1c88b14
Compare
Following this PR I have identified two potential enhancements to improve the performance of Hawkular calls, so once it is merged I will work on that. |
@@ -43,7 +42,7 @@ def self.parse_condition(column, op, value) | |||
end | |||
|
|||
def self.process_conditions(conditions) | |||
parsed_conditions = parse_conditions(conditions) | |||
parsed_conditions = parse_conditions(conditions[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.
conditions.first
is more idiomatic than conditions[0]
1c88b14
to
39cdbb4
Compare
Perhaps the two commits can be squashed into one. |
39cdbb4
to
8e73992
Compare
Checked commits lucasponce/manageiq@f348765~...8e73992 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
I think it's ok the way it is now. |
Some errors on travis |
I have close/reopened this PR to trigger travis CI. |
@chessbyte this is super green 🍏 |
Fix needed to resolve #10087.
After changes on AAArM conditions are wrapped into an array that needs minor adjustment on live_metrics side.