-
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
Move VIRTUAL_COL_USES translation to col_index method in ChargeableField #17747
Merged
gtanzillo
merged 1 commit into
ManageIQ:master
from
lpichler:fix_translation_from_v_derived_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects
Aug 1, 2018
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lpichler
force-pushed
the
fix_translation_from_v_derived_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects
branch
from
July 24, 2018 09:33
4c6afa6
to
ca8de9e
Compare
lpichler
force-pushed
the
fix_translation_from_v_derived_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects
branch
from
July 24, 2018 12:58
ca8de9e
to
07760c5
Compare
lpichler
changed the title
[WIP] Fix getting values for cpu_usage_rate_average_chargeback_for_projects
[WIP] Move VIRTUAL_COL_USES translation to method values
Jul 24, 2018
lpichler
force-pushed
the
fix_translation_from_v_derived_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects
branch
2 times, most recently
from
July 24, 2018 13:39
91e1387
to
5d04ec5
Compare
lpichler
force-pushed
the
fix_translation_from_v_derived_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects
branch
from
July 24, 2018 15:07
5d04ec5
to
d81064b
Compare
lpichler
force-pushed
the
fix_translation_from_v_derived_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects
branch
from
July 24, 2018 18:57
d81064b
to
485da7e
Compare
lpichler
changed the title
[WIP] Move VIRTUAL_COL_USES translation to method values
Move VIRTUAL_COL_USES translation to col_index method in ChargeableField
Jul 24, 2018
@miq-bot add_label blocker, chargeback @miq-bot assign @gtanzillo |
Checked commit lpichler@485da7e with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
gtanzillo
approved these changes
Aug 1, 2018
lpichler
deleted the
fix_translation_from_v_derived_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects
branch
August 1, 2018 13:40
@lpichler Can this be |
@simaishi yes, @miq_bot add_label gaprindashvili/yes |
@miq-bot add-label gaprindashvili/yes |
simaishi
pushed a commit
that referenced
this pull request
Aug 17, 2018
…d_cpu_total_cores_used_to_cpu_usage_rate_average_chargeback_for_projects Move VIRTUAL_COL_USES translation to col_index method in ChargeableField (cherry picked from commit ee216b0) https://bugzilla.redhat.com/show_bug.cgi?id=1613295
Gaprindashvili backport details:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Caused by #17592
Chargeback for Projects is using
v_derived_cpu_total_cores_used
from yaml definition butwe are using from
MetricRollup#cpu_usage_rate_average
to get metric value and use it in chargeback calculation.But reason why it was not caught by specs is that we were using
cpu_usage_rate_average
in rspec factories(instead ofv_derived_cpu_total_cores_used
as it is used in yaml) and thanks to that this case have not been covered.Links
https://bugzilla.redhat.com/show_bug.cgi?id=1602818