1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00
forgejo/services/repository
singuliere fb2dc95623
services/repository: fix ListUnadoptedRepositories incorrect total count (#17865)
The total count returned by ListUnadoptedRepositories is incorrectly
calculated.

The code snippet within ListUnadoptedRepositories used to verify
unadopted repositories is repeated three times in the function. It is
moved in the checkUnadoptedRepositories function and a unit test is
added to verify it works as expected.

A unit test is added to verify the total count returned by
ListUnadoptedRepositories is as expected.

Signed-off-by: singuliere <singuliere@autistici.org>
2022-01-01 10:52:00 +08:00
..
archiver Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
files Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
adopt.go services/repository: fix ListUnadoptedRepositories incorrect total count (#17865) 2022-01-01 10:52:00 +08:00
adopt_test.go services/repository: fix ListUnadoptedRepositories incorrect total count (#17865) 2022-01-01 10:52:00 +08:00
avatar.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
avatar_test.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
branch.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
cache.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
check.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
fork.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
fork_test.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
hooks.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
push.go Set HeadCommit when creating tags. (#18116) 2021-12-29 19:40:57 +08:00
repository.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
template.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
transfer.go Fix rename notification bug (#18008) 2021-12-17 14:24:47 +08:00
transfer_test.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00