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

virtual column for default_security_group to make it accessible via the API #17975

Merged

Conversation

AparnaKarve
Copy link
Contributor

The default_security_group method for cloud_tenants was added here - ManageIQ/manageiq-providers-openstack#347

We need the virtual column for default_security_group so that it is accessible via the API

default_security_group is a requirement for v2v OSP support.

@AparnaKarve
Copy link
Contributor Author

@agrare Would you be able to review this?
Thanks.

@miq-bot
Copy link
Member

miq-bot commented Sep 11, 2018

Checked commit AparnaKarve@0018e67 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. ⭐

@agrare agrare merged commit a744a44 into ManageIQ:master Sep 11, 2018
@agrare agrare added this to the Sprint 95 Ending Sep 24, 2018 milestone Sep 11, 2018
@AparnaKarve AparnaKarve deleted the virtual_col_for_default_security_group branch September 11, 2018 19:19
@Ladas
Copy link
Contributor

Ladas commented Sep 12, 2018

@AparnaKarve @agrare hm, this is failing refresh because of a missing type. @kbrock can virtual_column be used for this? Since it returns an AR object, not sure what the type should be.

Shouldn't this be virtual_has_one or virtual_attribute?

@AparnaKarve
Copy link
Contributor Author

@Ladas Both virtual_has_one and virtual_attribute work for me (in the context of the API) in lieu of virtual_column

@Ladas
Copy link
Contributor

Ladas commented Sep 12, 2018

@AparnaKarve ok, I think virtual_has_one is the correct one that should be used

@AparnaKarve
Copy link
Contributor Author

@Ladas Thanks.
Created #17979

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.

4 participants