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

Stop unbounded growth of targets #17144

Merged
merged 2 commits into from
Mar 13, 2018

Conversation

Ladas
Copy link
Contributor

@Ladas Ladas commented Mar 13, 2018

Stop unbounded growth of targets

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1549123

@Ladas
Copy link
Contributor Author

Ladas commented Mar 13, 2018

@miq-bot assign @agrare
@miq-bot add_label bug

@Ladas Ladas force-pushed the stop_unbounded_growth_of_queued_targets branch from 89e2f68 to a22c7af Compare March 13, 2018 14:20
manager_refresh_targets.uniq! { |_, value| value.values_at(:manager_id, :association, :manager_ref) }

targets = application_record_targets + manager_refresh_targets
end
Copy link
Member

Choose a reason for hiding this comment

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

Can you move this to a private helper method? queue_merge is long enough already :/

Extract uniq_targets method
@miq-bot
Copy link
Member

miq-bot commented Mar 13, 2018

Checked commits Ladas/manageiq@a22c7af~...7473870 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@agrare agrare merged commit 5d81185 into ManageIQ:master Mar 13, 2018
@agrare agrare added this to the Sprint 82 Ending Mar 26, 2018 milestone Mar 13, 2018
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