woodpecker/server/forge/bitbucket
Alconety 07479dd645
Retrieve all user repo perms with a single API call (#3211)
This pull request addresses the issue https://github.com/woodpecker-ci/woodpecker/issues/3210.

Ideally, the Bitbucket API should include repository permissions when
utilizing the 'get all repositories' endpoint. However, as it currently
does not provide this information, a viable solution is to fetch all
permissions for every repository and then employ a dictionary to
associate each repository with its respective permissions.

Without implementing this fix, logging in becomes problematic for users
with access to a substantial number of repositories (300+), as the
process takes over 2 minutes to complete.

---------

Co-authored-by: Alberto Alcón <albertoalcon@bit2me.com>
2024-01-19 04:15:47 +01:00
..
fixtures Retrieve all user repo perms with a single API call (#3211) 2024-01-19 04:15:47 +01:00
internal Retrieve all user repo perms with a single API call (#3211) 2024-01-19 04:15:47 +01:00
bitbucket.go Retrieve all user repo perms with a single API call (#3211) 2024-01-19 04:15:47 +01:00
bitbucket_test.go Enable golangci linter forcetypeassert (#3168) 2024-01-12 02:01:02 +01:00
convert.go Add pull request closed event (#2684) 2023-12-26 19:22:52 +01:00
convert_test.go Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
parse.go Add pull request closed event (#2684) 2023-12-26 19:22:52 +01:00
parse_test.go Add pull request closed event (#2684) 2023-12-26 19:22:52 +01:00