Skip to content
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

Fix counts in log message in ConsumptionHistory #17868

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

lpichler
Copy link
Contributor

after recent changes we in records such structure:

records = {11 => [22, 33, 44], 55 => [66, 77]} when
keys are ids of resources and arrays contains ids of
metric rollups and to fix issue (or make it some as before)
we have to count elements in the arrays.

records.flatten :

[11, [22,33,..], 55, [66,...]]

records.flatten :
[11, 22, 33,.., 55, 66]
but have to remove keys
records.flatten.flatten.count - records.keys.count
@miq-bot
Copy link
Member

miq-bot commented Aug 16, 2018

Checked commit lpichler@15cbee5 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

@gtanzillo gtanzillo added this to the Sprint 93 Ending Aug 27, 2018 milestone Aug 17, 2018
@gtanzillo gtanzillo merged commit 85cdfe6 into ManageIQ:master Aug 17, 2018
@lpichler lpichler deleted the fix_logging_in_chargeback branch August 27, 2018 09:26
@simaishi
Copy link
Contributor

@lpichler can this be gaprindashvili/yes?

@lpichler
Copy link
Contributor Author

yes

@miq-bot add_label gaprindashvili/yes

simaishi pushed a commit that referenced this pull request Sep 11, 2018
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 965c73fc61fd1214945bed48fa98b53eac8f735c
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Fri Aug 17 09:04:13 2018 -0400

    Merge pull request #17868 from lpichler/fix_logging_in_chargeback
    
    Fix counts in log message in ConsumptionHistory
    (cherry picked from commit 85cdfe601f115a71b23af104a499afcd7cb12a11)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1623582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants