-
Notifications
You must be signed in to change notification settings - Fork 75
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
enable query orgs #612
enable query orgs #612
Conversation
@medea61, we have received your signed contributor license agreement. The review is usually completed within a week, but may take longer under certain circumstances. Another comment will be added to the pull request to notify you when the merge can proceed. |
Thanks for your contribution.
|
@medea61, VMware has approved your signed contributor license agreement. |
Please make sure your code compiles before asking for review
|
Tests compile now. Can't run the tests locally at the moment as I have only prod deployments. 🙈 |
@@ -212,6 +215,7 @@ func (client *Client) cumulativeQueryWithHeaders(queryType string, params, notEn | |||
types.QtResourcePool, | |||
types.QtNetworkPool, | |||
types.QtProviderVdcStorageProfile, | |||
types.QtOrg, |
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.
Since you have added some of the pieces needed to run Org queries through cumulative query, you should also add this to addResults
case types.QtOrg:
cumulativeResults.Results.OrgRecord = append(cumulativeResults.Results.OrgRecord, newResults.Results.OrgRecord...)
size = len(newResults.Results.OrgRecord)
@medea61 this PR is very close to approval. Would you have a chance to implement the remaining asks? |
Thanks for your contribution. This code has been merged with PR #669 |
Added to main through PR #669 |
Description
Related issue: #611
Enable to query for organisations
Adds OrgRecord to QueryResultRecordsType and QueryResultOrgRecordType