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

pass all parameters to preloader children #162

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Aug 2, 2024

This passes all the parameters from the preloader into the new preloader.

This was causing a problem in manageiq preloader specs.

Unfortunately, I do not fully understand these parameters, I just know we want to pass them all.
And I'm no longer able to reproduce the issue.

But not passing these along seems like a mistake

@kbrock kbrock added the bug Something isn't working label Aug 2, 2024
@miq-bot
Copy link
Member

miq-bot commented Aug 2, 2024

Checked commit kbrock@46ea0af with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍪

@jrafanie
Copy link
Member

jrafanie commented Aug 6, 2024

Unfortunately, I do not fully understand these parameters, I just know we want to pass them all.
And I'm no longer able to reproduce the issue.

hmm, that's odd... it seems like it should break all the time if that was the case

@kbrock
Copy link
Member Author

kbrock commented Aug 7, 2024

We tend to passing nothing or a list of records into the preloader. Only the metrics collection will have an issue as one place it does scope.

And that spot we will need to change by passing in the scope.

ref: https://github.com/kbrock/manageiq/blob/master/app/models/metric/rollup.rb#L275

@jrafanie
Copy link
Member

jrafanie commented Sep 3, 2024

LGTM, merging.

@jrafanie jrafanie merged commit 4511a9c into ManageIQ:master Sep 3, 2024
5 checks passed
@kbrock kbrock deleted the preloader_fixes branch September 3, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants