-
Notifications
You must be signed in to change notification settings - Fork 898
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
Use pluck on metric rollup query in chargeback #17560
Use pluck on metric rollup query in chargeback #17560
Conversation
@lpichler if this can be backported, please add the gaprindashvili/yes label |
@miq-bot add_label blocker |
This pull request is not mergeable. Please rebase and repush. |
ad79e6f
to
21cc480
Compare
@lpichler where does this PR stand. |
This pull request is not mergeable. Please rebase and repush. |
…Field GOAL: ConsumptionHistory is receiving array of values(got by pluck method) instead of array MetricRollups This commit - this will be method used as argument in pluck method for base MetricRollup query - add @rollup_array to keep array of values which will be used in calculations instead of array MetricRollups - sort list of columns
…onsumptionWithRollups - also add self.col_index(column) as help method to access proper column from array of values - resource_tag_names and all_tag_names don't removed yet from Metric::ChargebackHelper because there is still usage in this helper
…sumptionWithRollups
21cc480
to
541dfe7
Compare
Checked commits lpichler/manageiq@9262bf5~...a4579d6 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@lpichler where does this PR stand. Will it be able to be merged today? |
@JPrause yes, @gtanzillo is about to merge it. |
@miq-bot add_label gaprindashvili/yes |
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 work @lpichler! 👍
…_in_chargeback Use pluck on metric rollup query in chargeback (cherry picked from commit 8180f01) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1591939
Gaprindashvili backport details:
|
fixes #17592
Stop use AR collection in ConsumptionWithRollups.
Links [Optional]
https://bugzilla.redhat.com/show_bug.cgi?id=1566452
fifth part of fix