-
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
Utility function to update PxeMenu list #19134
Conversation
I'm not familiar with the pxe server or menus @gmcculloug do you know? |
I think all PXE stuff was marked for deletion already because no one was using it. Until we needed it for Redfish. In other words, I don't think anyone is very familiar since 2015 or so when it was last changed. On the bright side, that means we don't have to worry much that we'd break anything for other users, because there are none :) |
With this commit we introduce a utility method on PxeServer model to handle PxeMenus list update. Until now, miq-api was always recreating all menus upon server update, but often we can actually just preserve exisitng menus. This method calculates what menus to add, what to preserve and what to remove, and then executes it. Fixes ManageIQ#18940 Signed-off-by: Miha Pleško <[email protected]>
e1afbe0
to
9e1366a
Compare
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.
Checked commit xlab-si@9e1366a with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@bdunne : Any reason not to merge this? (I am doing a cleanup of the opened PRs in the API and this is prerequisite for one.) |
With this commit we introduce a utility method on PxeServer model to handle PxeMenus list update. Until now, miq-api was always recreating all menus upon server update, but often we can actually just preserve exisitng menus. This method calculates what menus to add, what to preserve and what to remove, and then executes it.
Depends on: #19126
Fixes #18940
@miq-bot add_label bug,ivanchuk/yes
@miq-bot assign @agrare