forgejo/services/repository
Gusted 7ffa7f5bce
Refactor LFS GC functions
- Remove options that currently aren't set
on `GarbageCollectLFSMetaObjectsOptions` and
`IterateLFSMetaObjectsForRepoOptions`.
- Simplify `IterateRepositoryIDsWithLFSMetaObjects` and
`IterateLFSMetaObjectsForRepo`.
- `IterateLFSMetaObjectsForRepo` was previously able to get in a
loop (`gc-lfs` doctor check was able to reproduce this) because the code
expected that the records would be updated to not match the SQL query,
but that wasn't the case. Simply enforce that only records higher than
the latest `id` from the previous iteration are allowed.
- For `gc-lfs` doctor check this was because `UpdatedLessRecentlyThan`
option was not set, which caused that records just marked as active in
the iteration weren't being filtered.
- Add unit tests
- Most likely a regression from 2cc3a6381c.
- The bug with `gc-lfs` was found on Codeberg.
2024-04-05 16:49:15 +02:00
..
archiver Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
commitstatus fix commit_status 2024-03-24 07:11:19 +01:00
files Merge pull request '[PERFORMANCE] git check-attr on bare repo if supported' (#2763) from oliverpool/forgejo:check_attr_bare into forgejo 2024-03-28 11:14:52 +00:00
adopt.go Use db.ListOptionsAll instead of db.ListOptions{ListAll: true} (#29995) 2024-03-26 19:04:27 +01:00
adopt_test.go
avatar.go
avatar_test.go
branch.go Merge pull request '[ACTIONS] port scheduled actions from Gitea' (#2826) from earl-warren/forgejo:wip-gitea-schedule into forgejo 2024-03-27 06:23:56 +00:00
cache.go
check.go Update tool dependencies (#29030) 2024-02-02 19:11:39 -05:00
collaboration.go
collaboration_test.go
commit.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
contributors_graph.go Implement code frequency graph (#29191) 2024-02-26 22:30:26 +01:00
contributors_graph_test.go Implement contributors graph (#27882) 2024-02-17 23:24:31 +01:00
create.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-11 23:36:59 +07:00
create_test.go
delete.go
delete_test.go
fork.go
fork_test.go
generate.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-11 23:36:59 +07:00
generate_test.go Move generate from module to service (#29465) 2024-03-06 12:10:44 +08:00
hooks.go
init.go Move generate from module to service (#29465) 2024-03-06 12:10:44 +08:00
lfs.go Refactor LFS GC functions 2024-04-05 16:49:15 +02:00
lfs_test.go
main_test.go
migrate.go Move get/set default branch from git package to gitrepo package to hide repopath (#29126) 2024-03-11 23:36:59 +07:00
push.go Revert "avoid superfluous synchronized pull_request run when opening a PR" 2024-03-28 07:08:17 +01:00
repository.go
repository_test.go
review.go
review_test.go
setting.go Fix an actions schedule bug (#28942) 2024-03-25 16:27:32 +01:00
template.go Move generate from module to service (#29465) 2024-03-06 12:10:44 +08:00
transfer.go
transfer_test.go