SyncJob(Crowd to Github) failed when checked the existence of team(StatsAccess) under org(opennetworkinglab).
The root cause is the pagination, there are 41 teams under the orgopennetworkinglab but the API we called to get team list only return 30 teams so the job try to create a duplicated teams, see the below error message.
crowdToGithubPeriodicAudit
Error: Creating team failed:HttpError: Validation Failed: {"resource":"Team","code":"unprocessable","field":"data","message":"Name must be unique for this org"} at Object.createTeamIfNotExist [as createTeam] (/workspace/lib/github.js:418:13) at process._tickCallback (internal/process/next_tick.js:68:7)
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug
SyncJob(Crowd to Github) failed when checked the existence of team(StatsAccess) under org(opennetworkinglab).
The root cause is the pagination, there are
41
teams under the orgopennetworkinglab
but the API we called to get team list only return 30 teams so the job try to create a duplicated teams, see the below error message.Screenshots If applicable, add screenshots to help explain your problem.