Skip to content

Latest API returns only _id for team members #93

Closed
@kierang-contino

Description

@kierang-contino

The API that describes teams lists the members of those teams.
The members of those teams used to have both keys id and _id, now only _id is returned.
This breaks the terraform provider because when it gets the list of current users to generate a diff it unmarshals id thus all users have an ID of "".
Therefore when terraform is checking for changes it tries to delete the user will id "" and add all the users back.
The API returns an error because the user ID is no supplied in the delete API call and terraform crashes.

The solution is to either unmarshal _id into the ID property or for codefresh to once again return id in the API response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions