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

Added virtual_column 'image?' for ::CloudManager::Template #14613

Merged
merged 1 commit into from
Apr 4, 2017

Conversation

jzigmund
Copy link

@jzigmund jzigmund commented Apr 3, 2017

It's fixing the error ActiveRecord::StatementInvalid] PG::UndefinedColumn: ERROR: column vms.image? does not exist when user tries to sort Images by column 'Type'.

@lpichler thanks!

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

@miq-bot
Copy link
Member

miq-bot commented Apr 3, 2017

Checked commit jzigmund@0c5027b 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

isimluk commented Apr 4, 2017

It seems it was working a few days ago (#12970), do we know what caused this bug?

I am wondering because, there might be similar breakages with the common cause.

@jzigmund
Copy link
Author

jzigmund commented Apr 4, 2017

@isimluk according to the changes in https://github.com/ManageIQ/manageiq/pull/12970/files the differentiating of the type (Image vs. snapshot) has been added. This is bugfix for sorting the column Type, I believe the author/reviewer just didn't test and notice that's the sorting is not working.

@isimluk
Copy link
Member

isimluk commented Apr 4, 2017

Aah, now I get it. Thanks!

@isimluk isimluk added this to the Sprint 58 Ending Apr 10, 2017 milestone Apr 4, 2017
@isimluk isimluk assigned isimluk and unassigned blomquisg Apr 4, 2017
@isimluk isimluk merged commit 4c38092 into ManageIQ:master Apr 4, 2017
simaishi pushed a commit that referenced this pull request Apr 5, 2017
Added virtual_column 'image?' for ::CloudManager::Template
(cherry picked from commit 4c38092)

https://bugzilla.redhat.com/show_bug.cgi?id=1439397
@simaishi
Copy link
Contributor

simaishi commented Apr 5, 2017

Fine backport details:

$ git log -1
commit 15d3505eb5561e4995183b650d1164cfa6b6091b
Author: Šimon Lukašík <[email protected]>
Date:   Tue Apr 4 13:37:27 2017 +0200

    Merge pull request #14613 from jzigmund/bz1437765-error_on_cloud_images
    
    Added virtual_column 'image?' for ::CloudManager::Template
    (cherry picked from commit 4c38092570fc02d8e93cced3ffbe949a2b0cc58e)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1439397

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.

7 participants