Skip to content

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

Description

@twerthi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions