-
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
Remove MiqQueue rows containing a class removed in Rails 5. #14418
Remove MiqQueue rows containing a class removed in Rails 5. #14418
Conversation
e92e51f
to
1569b51
Compare
@Fryguy Please review |
@@ -0,0 +1,8 @@ | |||
class RemoveOidIntegerArgsFromMiqQueue < ActiveRecord::Migration[5.0] | |||
class MiqQueue < ActiveRecord::Base; end | |||
def change |
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.
This should be up migration only.
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.
See above
Also fix the rubocop...otherwise everything looks good 👍 |
Thanks, I'll fix this up and create a separate BZ for it. |
https://bugzilla.redhat.com/show_bug.cgi?id=1434454 The PostgreSQL::OID::Integer class was removed in: rails/rails@aafee23 It's possible that old Rails 4.2 versions of objects could have been serialized in the MiqQueue in the args column and we won't be able to deserialize them with Rails 5+, so we need to remove these rows. Related to ManageIQ#14365 Related to https://bugzilla.redhat.com/show_bug.cgi?id=1429747
1569b51
to
9795934
Compare
Checked commit jrafanie@9795934 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@Fryguy updated based on your feedback... I also created a different BZ and updated the commit and description. PTAL. Note, this is euwe/no |
https://bugzilla.redhat.com/show_bug.cgi?id=1434454
The PostgreSQL::OID::Integer class was removed in:
rails/rails@aafee23
It's possible that old Rails 4.2 versions of objects could have been
serialized in the MiqQueue in the args column and we won't be able to
deserialize them with Rails 5+, so we need to remove these rows.
Related to #14365
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1429747