OpenNetworkingFoundation / cla-manager

Automated CLA management and verification for ONF projects on Github and Gerrit
https://cla.opennetworking.org
3 stars 6 forks source link

SyncJob (Crowd to Github) fail #236

Closed hwchiu closed 3 years ago

hwchiu commented 3 years ago

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.

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. image