woodpecker/server
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
..
api Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
badges Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
cache Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
ccmenu Update go module path for major version 2 (#2905) 2023-12-08 08:15:08 +01:00
cron Lowercase all log strings (#3173) 2024-01-11 19:17:07 +01:00
forge Retrieve all user repo perms with a single API call (#3211) 2024-01-19 04:15:47 +01:00
grpc Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
logging Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
model Make PipelineConfig unique again (#3215) 2024-01-18 23:50:29 +02:00
pipeline Make PipelineConfig unique again (#3215) 2024-01-18 23:50:29 +02:00
plugins Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
pubsub Refactor/simplify pubsub (#2554) 2023-10-13 07:34:33 +02:00
queue Use assert for test (#3201) 2024-01-14 19:33:58 +01:00
router Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
store Make PipelineConfig unique again (#3215) 2024-01-18 23:50:29 +02:00
web Replace goimports with gci (#3202) 2024-01-14 18:22:06 +01:00
config.go Add option to disable version check in admin web UI (#3040) 2023-12-27 22:16:15 +01:00