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

Add monthly/hourly/weekly in rates for 'per time' types #11733

Merged

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Oct 6, 2016

basically revert of https://github.com/ManageIQ/manageiq/pull/9298/files

as we are doing new calculations for chargeback we can also support
chargeback rates in monthly/hourly/weekly time frame (Per Time in UI)

@miq-bot add_label ui, chargeback
@miq-bot assign @gtanzillo

cc @mzazrivec

screen shot 2016-10-06 at 07 38 07

@lpichler lpichler force-pushed the return_back_per_time_to_more_intervals branch from d822c9d to edae13b Compare October 6, 2016 05:48
@lpichler lpichler closed this Oct 6, 2016
@lpichler lpichler reopened this Oct 6, 2016
@lpichler lpichler closed this Oct 6, 2016
@lpichler lpichler reopened this Oct 6, 2016
@lpichler lpichler force-pushed the return_back_per_time_to_more_intervals branch from edae13b to 54175ac Compare October 6, 2016 09:06
@lpichler lpichler closed this Oct 6, 2016
@lpichler lpichler reopened this Oct 6, 2016
@lpichler lpichler force-pushed the return_back_per_time_to_more_intervals branch from 54175ac to 871b087 Compare October 6, 2016 11:51
@@ -4,6 +4,8 @@ class ChargebackController < ApplicationController
after_action :cleanup_action
after_action :set_session_data

PER_TIME_TYPES = {"hourly" => _("Hourly"), "weekly" => _("Weekly"), "monthly" => "Monthly"}.freeze
Copy link
Contributor

Choose a reason for hiding this comment

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

"Monthly" needs to be inside a _()

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 return_back_per_time_to_more_intervals branch from 871b087 to 03f455d Compare October 7, 2016 14:37
@lpichler lpichler force-pushed the return_back_per_time_to_more_intervals branch from 03f455d to 95f356f Compare October 7, 2016 15:54
@miq-bot
Copy link
Member

miq-bot commented Oct 7, 2016

Checked commit lpichler@95f356f with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1
3 files checked, 0 offenses detected
Everything looks good. 🍪

@lpichler lpichler changed the title Add monthly/hourly/weekly in rates for 'per time' types [WIP] Add monthly/hourly/weekly in rates for 'per time' types Oct 17, 2016
@lpichler
Copy link
Contributor Author

depends on #11648

@mzazrivec mzazrivec added the wip label Oct 17, 2016
@lpichler
Copy link
Contributor Author

@miq-bot remove_label wip

@miq-bot miq-bot removed the wip label Oct 20, 2016
@lpichler
Copy link
Contributor Author

lpichler commented Oct 20, 2016

this can be merged because this is already merged

@lpichler lpichler changed the title [WIP] Add monthly/hourly/weekly in rates for 'per time' types Add monthly/hourly/weekly in rates for 'per time' types Oct 20, 2016
@mzazrivec mzazrivec added this to the Sprint 48 Ending Oct 24, 2016 milestone Oct 20, 2016
@mzazrivec mzazrivec merged commit 4c854e4 into ManageIQ:master Oct 20, 2016
@chessbyte
Copy link
Member

@mzazrivec @gtanzillo euwe/yes or euwe/no?

@chessbyte
Copy link
Member

Also - what is this PR? Bug fix, enhancement, tech debt, refactor? Please label accordingly

chessbyte pushed a commit that referenced this pull request Oct 21, 2016
…intervals

Add monthly/hourly/weekly in rates for 'per time' types
(cherry picked from commit 4c854e4)
@chessbyte
Copy link
Member

Euwe Backport details:

$ git log -1
commit 03acdfe5cca6bad8a32aa511502dcd4e8fa72b63
Author: Milan Zázrivec <mzazrivec@redhat.com>
Date:   Thu Oct 20 11:07:43 2016 +0200

    Merge pull request #11733 from lpichler/return_back_per_time_to_more_intervals

    Add monthly/hourly/weekly in rates for 'per time' types
    (cherry picked from commit 4c854e48cc37aac9ef4f8628ebd3c8c163cc26ac)

@simaishi
Copy link
Contributor

Backported to Darga via #13559

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.

None yet

6 participants