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

Group by tenant for chargeback|metering Vm reports #3380

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Feb 6, 2018

Add options group by tenant to the highlighted options.

screen shot 2018-02-06 at 17 51 19

Links

@miq-bot add_label enhancement

@miq-bot assign @mzazrivec

@@ -139,6 +139,7 @@
- opts = [["#{_('Date')}", "date"], ["#{_(@edit[:new][:cb_model])}", "vm"]]
- opts += [["#{_('Tag')}", "tag"]] unless @edit[:new][:model] == "ChargebackContainerImage" || @edit[:new][:model] == "MeteringContainerImage"
- opts += [["#{_('Project')}", "project"], [_('Label'), 'label']] if @edit[:new][:model] == "ChargebackContainerImage" || @edit[:new][:model] == "MeteringContainerImage"
- opts += [["#{_('Tenant')}", "tenant"]] if @edit[:new][:model] == "ChargebackVm" || @edit[:new][:model] == "MeteringVm"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%w(ChargebackVm MeteringVm).include?(@edit[:new][:model])

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 👍

@lpichler lpichler force-pushed the add_grouping_by_tenant_in_chargeback_reports branch from 11d85d6 to 0b1ab90 Compare February 7, 2018 13:57
@miq-bot
Copy link
Member

miq-bot commented Feb 7, 2018

Checked commit lpichler@0b1ab90 with ruby 2.3.3, rubocop 0.52.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 1 offense detected

**

  • 💣 💥 🔥 🚒 - Linter/Haml - Linter::Haml STDERR:
warning: parser/current is loading parser/ruby23, which recognizes
warning: 2.3.5-compliant syntax, but you are running 2.3.3.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

@mzazrivec
Copy link
Contributor

@lpichler Where's the backend PR for this?

@lpichler
Copy link
Contributor Author

lpichler commented Feb 14, 2018

@mzazrivec backend PR ManageIQ/manageiq#17002 (the PR is done).

@lpichler
Copy link
Contributor Author

@miq-bot add_label gaprindashvili/yes

@mzazrivec mzazrivec added this to the Sprint 80 Ending Feb 26, 2018 milestone Feb 15, 2018
@mzazrivec mzazrivec merged commit e87766a into ManageIQ:master Feb 15, 2018
simaishi pushed a commit that referenced this pull request Mar 8, 2018
…geback_reports

Group by tenant for chargeback|metering Vm reports
(cherry picked from commit e87766a)

https://bugzilla.redhat.com/show_bug.cgi?id=1552796
@simaishi
Copy link
Contributor

simaishi commented Mar 8, 2018

Gaprindashvili backport details:

$ git log -1
commit b6b40eaedbbd81db8e1a524701ec2bb329bbfd2a
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Thu Feb 15 12:55:23 2018 +0100

    Merge pull request #3380 from lpichler/add_grouping_by_tenant_in_chargeback_reports
    
    Group by tenant for chargeback|metering Vm reports
    (cherry picked from commit e87766af87bc5157b90f19bdb9685c9d87c4953c)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1552796

@lpichler lpichler deleted the add_grouping_by_tenant_in_chargeback_reports branch April 3, 2018 14:13
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