-
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
Apply distinct on lans and switches #15930
Apply distinct on lans and switches #15930
Conversation
@@ -0,0 +1,496 @@ | |||
--- |
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.
seems like this doesn't belong to this PR?
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.
How did that get there....
I'll remove it.
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.
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.
seems like miq_provision_redhat_dialogs_clone_to_template.yaml does not belong here. Otherwise looks good
Several hosts might be connected to the same switch, sharing the same LAN. Therefore it is required to apply 'DISTINCT' on the result of the join of these tables.
86a00c4
to
7e6ab4f
Compare
Checked commit masayag@7e6ab4f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
@Ladas can we merge this ? |
@agrare Can you please review? |
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.
👍
…tches Apply distinct on lans and switches
@masayag can you see if https://travis-ci.org/ManageIQ/manageiq/jobs/274592893#L1255 is related to this PR? |
@agrare From what I see it can be random ordering bug, given we compare association[0] to something |
@Ladas yeah you're right, nevermind :) |
Several hosts might be connected to the same switch, sharing the same LAN. Therefore it is required to apply 'DISTINCT' on the result of joining these tables.
Steps for Testing/QA [Optional]
On RHV provider, have 2 hosts which are connected to the same network.