-
Notifications
You must be signed in to change notification settings - Fork 112
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 catalog details represeting properties as computed fields #800
Conversation
Changelog as well as docs still need to be put in place. |
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.
One polishing nit and LGTM!
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.
Lucky number #800 :)
This looks good. I have a few queries and an ask before I get to manual test
Also upgraded catalog datasource so org attribute is optional, so users can use from now on either the org at provider level or the one at datasource level. |
Signed-off-by: Miguel Sama <[email protected]>
…of_media to catalog resource schema Signed-off-by: Miguel Sama <[email protected]>
…catalog datasource Signed-off-by: Miguel Sama <[email protected]>
…of_media to resource schema Add test for number_of_vapp_templates and number_of_media Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Remove owner from catalog resource due to issues with API Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
…atasource one Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
7c5f9ca
to
e6741a8
Compare
One more thing I would like to have: read part of setting values to the state of data source and source seems are very similar. We could make one function and reuse it. We have quite often that in our provider. |
…e code twice in catalog resource and datasource Signed-off-by: Miguel Sama <[email protected]>
…e code twice in catalog resource and datasource Signed-off-by: Miguel Sama <[email protected]>
@vbauzysvmware Done! |
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
Signed-off-by: Miguel Sama <[email protected]>
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!
Signed-off-by: Miguel Sama <[email protected]>
This PR aims to address the enhancements proposed by @vbauzysvmware on github issue #365 .
Description
According to the issue above mentioned, 7 new computed fields have been added to
catalog
resource and datasource.Detailed description
The new computed fields for
catalog
resource and datasource are:catalog_version
- Version number from this catalog.owner_name
- Owner of the catalog.number_of_vapp_templates
- Number of vApp templates available in this catalog.number_of_media
- Number of media items available in this catalog.is_shared
- Indicates if the catalog is shared.is_published
- Indicates if this catalog is shared to all organizations.publish_subscription_type
- Shows if the catalog is published, if it is a subscription from another one or none of those.This PR relays on vmware/go-vcloud-director#450