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 issue with showback_rate belongs and type of the data in steps let INFINITY #67

Merged
merged 1 commit into from
Sep 18, 2017

Conversation

aljesusg
Copy link
Member

@aljesusg aljesusg commented Sep 18, 2017

  • Change showback_rates to showback_rate => Error
  • Change type of steps to float for let INFINITY value

@aljesusg
Copy link
Member Author

@miq-bot add_label bug

@miq-bot miq-bot added the bug label Sep 18, 2017
@miq-bot
Copy link
Member

miq-bot commented Sep 18, 2017

Checked commit aljesusg@80a2bfb with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 3 offenses detected

db/migrate/20170918190738_issue_shorback_tiers.rb

@chargio
Copy link
Contributor

chargio commented Sep 18, 2017

@gtanzillo @Fryguy
I am afraid we didn't see this coming. Could you please merge it?

def up
rename_column :showback_tiers, :showback_rates_id, :showback_rate_id
change_column :showback_tiers, :tier_start_value, :float
change_column :showback_tiers, :tier_end_value, :float
Copy link
Member

Choose a reason for hiding this comment

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

To be clear, the current chargeback uses floats and we mistakingly are using bigint here. We only really want to use Float for Float::INFINITY.

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@gtanzillo gtanzillo added this to the Sprint 69 Ending Sep 18, 2017 milestone Sep 18, 2017
@gtanzillo gtanzillo merged commit d4ccb97 into ManageIQ:master Sep 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants