-
Notifications
You must be signed in to change notification settings - Fork 356
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
Fixed API endpoint for GO object custom button dialogs. #6052
Fixed API endpoint for GO object custom button dialogs. #6052
Conversation
Need to pass in correct parent record id and generic_object id to build endpoint url correctly when pressing a GO custom button from list view or details view. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729341
Checked commit h-kataria@8b0e5ac with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
Note: @himdel @Hyperkid123 this PR is needed for GA build on 08/19 |
I definitely like this one better than the alternative. |
LGTM 👍 |
@@ -31,7 +31,8 @@ def generic_object_custom_buttons | |||
display_options = {} | |||
ids = @lastaction == 'generic_object' ? @sb[:rec_id] : 'LIST' | |||
display_options[:display] = @display | |||
display_options[:display_id] = params[:id] | |||
display_options[:record_id] = @sb['trees']['svcs_tree']['active_node'].split('-').last |
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.
@sb['trees']['svcs_tree']['active_node']
x_node
?
(I think the canonical way is _type, id = parse_nodetype_and_id(x_node)
or parse_nodetype_and_id(x_node).last
)
Note: I'm on But that seems to work fine, verified fix 👍 :) |
Merged, the |
…m_buttons Fixed API endpoint for GO object custom button dialogs. (cherry picked from commit f817e80) https://bugzilla.redhat.com/show_bug.cgi?id=1729341
Ivanchuk backport details:
|
…m_buttons Fixed API endpoint for GO object custom button dialogs. (cherry picked from commit f817e80) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1743266
Hammer backport details:
|
Need to pass in correct parent record id and generic_object id to build endpoint url correctly when pressing a GO custom button from list view or details view.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1729341
In favor of #6049
@tinaafitz @pkomanek please review/test. Please test pressing custom button from List view and details view.