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

Fixes #16088 - Compatibility with Rails 4.2.7 #6244

Merged
merged 1 commit into from
Aug 16, 2016

Conversation

dLobatog
Copy link
Member

Fixes a deprecation that caused tests to fail

"Passing a nested array to Active Record finder methods is deprecated
and will be removed. Flatten your array before using it for 'IN'
conditions."

Fixes a deprecation that caused tests to fail

"Passing a nested array to Active Record finder methods is deprecated
and will be removed. Flatten your array before using it for 'IN'
conditions."
@dLobatog
Copy link
Member Author

http://ci.theforeman.org/job/test_katello_core/19693 runs tests as Jenkins is waiting for a stable build - I merged the core patch too promptly and realized too late, sorry - it'd be safe to merge if that job passes

@@ -73,7 +73,7 @@ def test_update_from_json
errata = katello_errata(:security)
json = errata.attributes.merge('description' => 'an update', 'updated' => DateTime.now, 'reboot_suggested' => true)
errata.update_from_json(json)
errata = Erratum.find(errata)
errata = Erratum.find(errata.id)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm just curious about this change and why it was needed?

Copy link
Member Author

@dLobatog dLobatog Aug 16, 2016

Choose a reason for hiding this comment

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

A new deprecation apparently (not yet dropped in Rails), it's all over though

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, thanks for the heads up.

@daviddavis
Copy link
Contributor

ACK. Merging to get jenkins green.

@daviddavis daviddavis merged commit db95d86 into Katello:master Aug 16, 2016
kgaikwad pushed a commit to kgaikwad/katello that referenced this pull request Aug 30, 2016
Fixes a deprecation that caused tests to fail

"Passing a nested array to Active Record finder methods is deprecated
and will be removed. Flatten your array before using it for 'IN'
conditions."
jlsherrill pushed a commit to jlsherrill/katello that referenced this pull request Aug 31, 2016
Fixes a deprecation that caused tests to fail

"Passing a nested array to Active Record finder methods is deprecated
and will be removed. Flatten your array before using it for 'IN'
conditions."
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.

3 participants