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

[EUWE] workaround BigDecimal not working properly on ruby 2.3.1 #13634

Merged
merged 1 commit into from
Jan 24, 2017

Conversation

isimluk
Copy link
Member

@isimluk isimluk commented Jan 24, 2017

This affects euwe only. We shouldn't see this problem on master now.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1416001
Fixes #13591

@miq-bot add_label chargeback, bug
@miq-bot assign @simaishi

Euwe uses ruby 2.3.1 which does not coalesce floats and BigDecimals
well.

Try for yourself

    BigDecimal.new(1) <= Float::INFINITY

or

    Float::INFINITY >= BigDecimal.new(1)

Fixes ManageIQ#13591.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1416001
@miq-bot
Copy link
Member

miq-bot commented Jan 24, 2017

Checked commit isimluk@0a8a8fd with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks good. 🍰

@isimluk
Copy link
Member Author

isimluk commented Jan 24, 2017

/cc @lpichler @gtanzillo

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.

Looks good 👍

@simaishi simaishi merged commit 93f9094 into ManageIQ:euwe Jan 24, 2017
@simaishi simaishi added this to the Sprint 53 Ending Jan 30, 2017 milestone Jan 24, 2017
@isimluk isimluk deleted the euwe-workaround-bigdecimal branch January 24, 2017 14:21
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