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

Handle deprecated classes in arel #16560

Merged
merged 1 commit into from
Nov 30, 2017
Merged

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Nov 29, 2017

Attribute deprecation is based upon aliases and virtual attributes.
Ensure both concepts are working correctly together.

Bug: The virtual attribute was generating bogus arel, when it should
have been deferring to the attribute_alias mechanism built into rails

So the new code prioritizes attribute_alias over virtual_attribute

https://bugzilla.redhat.com/show_bug.cgi?id=1507047

This is an alternative to #16489

/cc @gtanzillo @imtayadeway

Attribute deprecation is based upon aliases and virtual attributes.
Ensure both concepts are working correctly together.

Bug: The virtual attribute was generating bogus arel, when it should
have been deferring to the attribute_alias mechanism built into rails

So the new code prioritizes attribute_alias over virtual_attribute

https://bugzilla.redhat.com/show_bug.cgi?id=1507047
@miq-bot
Copy link
Member

miq-bot commented Nov 30, 2017

Checked commit kbrock@36f5385 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
3 files checked, 0 offenses detected
Everything looks fine. 👍

@gtanzillo gtanzillo added this to the Sprint 75 Ending Dec 11, 2017 milestone Nov 30, 2017
@gtanzillo gtanzillo merged commit de70ac0 into ManageIQ:master Nov 30, 2017
simaishi pushed a commit that referenced this pull request Dec 1, 2017
@simaishi
Copy link
Contributor

simaishi commented Dec 1, 2017

Gaprindashvili backport details:

$ git log -1
commit a99124b8c3d1e03830e381c599ab225b6866d761
Author: Gregg Tanzillo <[email protected]>
Date:   Thu Nov 30 17:42:55 2017 -0500

    Merge pull request #16560 from kbrock/arel_attribute
    
    Handle deprecated classes in arel
    (cherry picked from commit de70ac0ee3631b6a626c6fb3ad585b8a5edd1553)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1519852

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