-
Notifications
You must be signed in to change notification settings - Fork 141
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
Support firmware update #597
Conversation
6bb08e9
to
41a99e5
Compare
41a99e5
to
af34153
Compare
@miq-bot add_label enhancement Hi @abellotti the dependent core PR has been merged so we'll need this API enhancement to implement the React UI. Kindly ask for a review. |
af34153
to
1d5f4a1
Compare
@miha-plesko is CI failure related to your PR ? |
Oh my, there's another core PR that needs to be merged first ManageIQ/manageiq#18801. Marking WIP until then again |
Hey @lpichler , un-wiping again because also the other dependent core PR has been merged yesterday. |
/cc @gtanzillo we need this before code freeze, kindly ask for your help. |
@@ -65,6 +65,10 @@ def apply_config_pattern_resource(type, id, data) | |||
action_result(false, err.to_s) | |||
end | |||
|
|||
def firmware_binaries_query_resource(object) |
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.
Hey @miha-plesko
we used to put sub collections related methods to the Api::Subcollections::NameOfCollection
module.
In your case probably something like Api::Subcollections::FirmwareBinaries
. See Subcollections::EventStreams
in this controller class as example.
Does make sense to put it here for you ?
thanks!
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.
Thanks, yes it makes sense. My "change as little as possible" was a bit too extream. Fixed
I have one comment, otherwise looks good to me 👍 |
With this commit we expose neccessary operations for UI to be able to render a functional "Firmware Update" modal. User has to pick a firmware binary from the drop-down to apply it to selected server(s). Eventually, when she submits the modal, a new Request of type PhysicalServerFirmwareUpdateRequest is created by means of POSTing to `/api/request`. Signed-off-by: Miha Pleško <[email protected]>
1d5f4a1
to
7abf6a5
Compare
Checked commit xlab-si@7abf6a5 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
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.
LGTM 👍
With this commit we expose neccessary operations for UI to be able to render a functional "Firmware Update" modal. User has to pick a firmware binary from the drop-down to apply it to selected server(s).
The API call to support it looks like:
Eventually, when she submits the modal, a new Request of type PhysicalServerFirmwareUpdateRequest is created by means of POSTing to
/api/request
: