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

Users.GetTeams should return *[]octopusdeploy.Team objects instead of *[]octopusdeploy.ProjectedTeamReferenceDataItem #76

Open
twerthi opened this issue Jul 31, 2021 · 0 comments

Comments

@twerthi
Copy link

twerthi commented Jul 31, 2021

Is your feature request related to a problem? Please describe.
Users.GetTeams returns *[]octopusdeploy.ProjectedTeamReferenceDataItem which reports that it's non-indexable.

Describe the solution you'd like
It would make more sense to return *[]octopusdeploy.Team.

Describe alternatives you've considered
You can get at the data, but it's a little convoluted if you're not familiar with the nuances of Go

for i := 0; i < len(*teams); i++ {
teamsReference := *teams
teamsReference[i]
}

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant