-
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
Add uri_attributes as virtual_attribute to CustomButton #18379
Conversation
Checked commit ZitaNemeckova@a219396 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@lpichler please review :) |
Does it need specs? |
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.
👍
@djberg96 I believe not for this PR because mechanism of virtual attributes have specs already. But @ZitaNemeckova you can somehow extend specs in API and add case for exposing this method. |
@miq-bot assign @gtanzillo |
LGTM, we should add the tests in the api when we expose uri_attributes via the api though as @lpichler mentioned |
Related to ManageIQ/manageiq-ui-classic#5166 that fixes https://bugzilla.redhat.com/show_bug.cgi?id=1650559
I need API to give me
uri_attributes
to get relevant data forCustomButton
withbutton_type = "ansible_playbook"
. So this PR adds it tovirtual_attribute
.@lpichler please have a look :)
@miq-bot add_label bug, gaprindashvili/yes, hammer/yes, api, automate