-
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
Check all costs fields for relevancy for the report #17387
Check all costs fields for relevancy for the report #17387
Conversation
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1567254 If a user asks only for some of the fields (memory cost) in a chargeback report and they didn't request specific ones (memory allocated cost), we would skip calculating the memory cost because we thought it wasn't relevant. We need to check all cost fields to see if they're relevant for the requested fields in the report.
262221e
to
4b15db4
Compare
I believe this will require a manual backport to the different branches. I'll check that on Monday. |
Checked commit jrafanie@4b15db4 with ruby 2.3.3, rubocop 0.52.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.
very good thanks! LGTM 👍
Note: this change is also fixing general total_cost
column, so maybe it would be beneficial to add other it
case when only column
subject.total_cost
is requested.
expect(subject.total_cost).to eq(_)..
thanks!
most likely caused by this: |
@lpichler I need to test various combinations:
|
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.
LGTM 👍
@miq-bot add_label gaprindashvili/yes |
It isn't a clean cherry-pick to Fine, in fact some might even say it's not Fine. I'll open a PR for Fine. |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1576101 Manual backport of ManageIQ#17387 If a user asks only for some of the fields (memory cost) in a chargeback report and they didn't request specific ones (memory allocated cost), we would skip calculating the memory cost because we thought it wasn't relevant. We need to check all cost fields to see if they're relevant for the requested fields in the report.
Here is the very Fine PR: #17395 |
Backported to Fine via #17395 |
…ed_for_charge_calculation Check all costs fields for relevancy for the report (cherry picked from commit 1588636) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1576099
Gaprindashvili backport details:
|
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1576101 Manual backport of ManageIQ#17387 If a user asks only for some of the fields (memory cost) in a chargeback report and they didn't request specific ones (memory allocated cost), we would skip calculating the memory cost because we thought it wasn't relevant. We need to check all cost fields to see if they're relevant for the requested fields in the report.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1567254
If a user asks only for some of the fields (memory cost) in a chargeback report
and they didn't request specific ones (memory allocated cost), we would skip
calculating the memory cost because we thought it wasn't relevant. We need to
check all cost fields to see if they're relevant for the requested fields in the
report.