Skip to content

API: Edit team breaks member and repository count #3600

@nblock

Description

@nblock

Description

The following PATCH request to update an existing team breaks the member and repository count. 0 is shown while the team still lists all of its members and all of its repositories.

curl -X PATCH -H 'Authorization: token MYTOKEN' --data 'description=Jenkins and friends&name=CI&permission=read' https://gitea.example.com/api/v1/teams/49

Screenshots

Before
gitea_patch_before

After
gitea_patch_after

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions