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

Apply distinct on lans and switches #15930

Merged
merged 1 commit into from
Sep 12, 2017

Conversation

masayag
Copy link
Contributor

@masayag masayag commented Sep 3, 2017

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.

@masayag
Copy link
Contributor Author

masayag commented Sep 3, 2017

@miq-bot assign @Ladas

@@ -0,0 +1,496 @@
---
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed.

Copy link
Contributor

@Ladas Ladas left a 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.
@masayag masayag force-pushed the apply_distinct_on_lans_and_switches branch from 86a00c4 to 7e6ab4f Compare September 4, 2017 08:22
@miq-bot
Copy link
Member

miq-bot commented Sep 4, 2017

Checked commit masayag@7e6ab4f with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@masayag
Copy link
Contributor Author

masayag commented Sep 12, 2017

@Ladas can we merge this ?

@pkliczewski
Copy link
Contributor

@agrare Can you please review?

Copy link
Member

@agrare agrare left a comment

Choose a reason for hiding this comment

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

👍

@agrare agrare added this to the Sprint 69 Ending Sep 18, 2017 milestone Sep 12, 2017
@agrare agrare merged commit 7e6ab4f into ManageIQ:master Sep 12, 2017
agrare added a commit that referenced this pull request Sep 12, 2017
…tches

Apply distinct on lans and switches
@agrare
Copy link
Member

agrare commented Sep 12, 2017

@masayag can you see if https://travis-ci.org/ManageIQ/manageiq/jobs/274592893#L1255 is related to this PR?

@Ladas
Copy link
Contributor

Ladas commented Sep 12, 2017

@agrare From what I see it can be random ordering bug, given we compare association[0] to something

@agrare
Copy link
Member

agrare commented Sep 12, 2017

@Ladas yeah you're right, nevermind :)

@masayag masayag deleted the apply_distinct_on_lans_and_switches branch June 27, 2018 20:29
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.

5 participants