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

Add uri_attributes as virtual_attribute to CustomButton #18379

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

ZitaNemeckova
Copy link
Contributor

@ZitaNemeckova ZitaNemeckova commented Jan 22, 2019

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 for CustomButton with button_type = "ansible_playbook". So this PR adds it to virtual_attribute.

@lpichler please have a look :)

@miq-bot add_label bug, gaprindashvili/yes, hammer/yes, api, automate

@miq-bot
Copy link
Member

miq-bot commented Jan 22, 2019

Checked commit ZitaNemeckova@a219396 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 🍪

@ZitaNemeckova
Copy link
Contributor Author

@lpichler please review :)

@djberg96
Copy link
Contributor

Does it need specs?

Copy link
Contributor

@lpichler lpichler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 :shipit:

@lpichler
Copy link
Contributor

@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.

@lpichler
Copy link
Contributor

@miq-bot assign @gtanzillo

@jrafanie
Copy link
Member

LGTM, we should add the tests in the api when we expose uri_attributes via the api though as @lpichler mentioned

@jrafanie jrafanie merged commit d4e8a96 into ManageIQ:master Feb 12, 2019
@jrafanie jrafanie assigned jrafanie and unassigned gtanzillo Feb 12, 2019
@jrafanie jrafanie added this to the Sprint 105 Ending Feb 18, 2019 milestone Feb 12, 2019
@ZitaNemeckova ZitaNemeckova deleted the add_uri_attributes branch February 13, 2019 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants