-
Notifications
You must be signed in to change notification settings - Fork 983
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 #22104 - adapt to Rails 5.1 change tracking #5133
Conversation
Issues: #22104 |
app/models/nic/interface.rb
Outdated
@@ -57,13 +57,13 @@ def alias? | |||
end | |||
|
|||
def fqdn_changed? |
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.
Since these two methods are meant to mimic active record methods, should we also change them to the new naming?
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.
I thought its use were more spread over the code, but its indeed only in this file, so renaming was no problem 👍.
app/models/host/base.rb
Outdated
:hostname, :fqdn, :fqdn_changed?, | ||
:fqdn_was, :shortname, | ||
:hostname, :fqdn, :saved_change_to_fqdn?, | ||
:fqdn_before_last_save, :shortname, |
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.
Do we actually use these anywhere? i think it may be leftovers from something, i couldn't find anywhere where these methods are called on a host
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.
removed these.
test failures unrelated, AFAICT. |
Setting to WOC, as GH-4987 exposed some more code paths with calls that need to get checked. |
No movement in GH-4987, so I'm kindly asking to proceed here... |
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.
Looks good. Even if this isn't every case it's better then nothing, let's merge now and fix any other issues we encounter. In any case this won't break before 5.2.
No description provided.