You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services
Christian Ullrich 068e96fbd2
Do not list active repositories as unadopted (#22034) (#22167)
Backport #22034

This fixes a bug where, when searching unadopted repositories, active
repositories will be listed as well. This is because the size of the
array of repository names to check is larger by one than the
`IterateBufferSize`.

For an `IterateBufferSize` of 50, the original code will pass 51
repository names but set the query to `LIMIT 50`. If all repositories in
the query are active (i.e. not unadopted) one of them will be omitted
from the result. Due to the `ORDER BY` clause it will be the oldest (or
least recently modified) one.

Co-authored-by: Christian Ullrich <christian.ullrich@traditionsa.lu>
2 years ago
..
agit move agit dependcy (#19998) 3 years ago
asymkey Move issues related files into models/issues (#19931) 3 years ago
attachment Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
auth SessionUser protection against nil pointer dereference (#21581) 2 years ago
automerge Move issues related files into models/issues (#19931) 3 years ago
comments Move issues related files into models/issues (#19931) 3 years ago
context Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
cron Move some code into models/git (#19879) 3 years ago
externalaccount Refactor auth package (#17962) 3 years ago
forms Move issues related files into models/issues (#19931) 3 years ago
gitdiff Ignore error when retrieving changed PR review files (#21487) (#21524) 2 years ago
issue Fix issue/PR numbers (#22037) (#22045) 2 years ago
lfs Prevent Authorization header for presigned LFS urls (#21531) (#21569) 2 years ago
mailer Move issues related files into models/issues (#19931) 3 years ago
migrations Foreign ID conflicts if ID is 0 for each item (#21271) (#21272) 2 years ago
mirror Always try to fetch repo for mirrors (#19975) 3 years ago
org Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
packages Use correct context to get package content (#20673) (#20676) 3 years ago
pull Correctly handle moved files in apply patch (#22118) (#22136) 2 years ago
release Add more checks in migration code (#21011) (#21050) 3 years ago
repository Do not list active repositories as unadopted (#22034) (#22167) 2 years ago
task Use a more general (and faster) method to sanitize URLs with credentials (#19239) 3 years ago
user Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
webhook Display total commit count in hook message (#21400) (#21481) 2 years ago
wiki Move some helper files out of models (#19355) 3 years ago