-
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
Charge only for past hours #13134
Charge only for past hours #13134
Conversation
9347446
to
96c99de
Compare
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
Uff. This is gonna be one of the more expensive rebases. People were trying to approach the same problems in different prs, but did not fixed the root cause. Gosh. |
75d73ca
to
1716f8d
Compare
@miq-bot remove_label wip |
After spending 15 minutes of head scratching.
and fix related rubocop
Otherwise, nobody will ever understand why we have them. Now each file includes single hardcoded datetime and everything else is relative to it. Think about it. That's actually meaning of the specs prescription. The hardcoded values were hardcoded to be relative to other hc values.
For variable_rate, we charge only that much that has been consumed. Perhaps I'll end the service tmrw, I should not be charged in advanced. https://bugzilla.redhat.com/show_bug.cgi?id=1402072
Checked commits isimluk/manageiq@2270d42~...3a678bb with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
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
Added |
Thanks! We just need to merge #13419 first. Afterwards this will be easier to rebase. (I still expect conflicts in specs). |
Backported to Euwe via #13554 |
Description
https://bugzilla.redhat.com/show_bug.cgi?id=1402072
Imagine, You will terminate your service tomorrow, you should not be charged in advance.
@miq-bot add_label bug, chargeback
@miq-bot assign @gtanzillo