-
Notifications
You must be signed in to change notification settings - Fork 896
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
nix the string interpolation on the hardware query in the aggregation mixin #20146
Conversation
LGTM... super minor, but since there's no changes in the value of from = from.to_s.singularize.to_sym
...
hdws = Hardware.where(from => targets).select(select) |
119ee3e
to
ba56cfa
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.
Thanks for putting this together.
You may want to check out master...kbrock:virtual_aggregates_ems
ugh. that was 7 months ago... (too many ideas :( )
leave the inject
in there for now, but maybe the other optimizations may treat you well.
Also, could you just do a quick check that this method is even called from tests.
Maybe put in a raise
statement or something?
thnx
aside: that branch I pointed to does all metrics in 1 query bringing back only 1 number. |
ba56cfa
to
727f637
Compare
per ManageIQ#20146 (comment) I stole most of this from ManageIQ/manageiq@master...kbrock:virtual_aggregates_ems thanks Keenan and Jason :)
727f637
to
d7e0121
Compare
per ManageIQ#20146 (comment) I stole most of this from ManageIQ/manageiq@master...kbrock:virtual_aggregates_ems thanks Keenan and Jason :)
d7e0121
to
7d51f60
Compare
per ManageIQ#20146 (comment) I stole most of this from ManageIQ/manageiq@master...kbrock:virtual_aggregates_ems thanks Keenan and Jason :)
7d51f60
to
1864591
Compare
3658d3e
to
402c497
Compare
haha, |
|
wait - no. Your pr doesn't go the whole way so i want to merge this instead of that. We still have an overflow issue with 12427 and we won't fix that any time soon |
phoooey, it was a good try though |
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.
nice. (but I helped a little here so it would be a problem if I though it was junk)
402c497
to
f7b20d5
Compare
hey @Fryguy sorry but any chance I could get you to re-review this, please? |
f7b20d5
to
ab7cedd
Compare
thanks Keenan and Jason :)
ab7cedd
to
e342471
Compare
Checked commit d-m-u@e342471 with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint |
please? |
nix the string interpolation on the hardware query in the aggregation mixin (cherry picked from commit 9be2b9b)
Jansa backport details:
|
It's just a minor cleanup from #20132 cause I was silly and didn't catch it the first time.
Or rather it was. I'm stealing a lot of this now from master...kbrock:virtual_aggregates_ems
thanks Keenan