forgejo/services
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
..
actions 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
agit
asymkey
attachment
auth Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
automerge
context Merge pull request '[PORT] Unify search boxes (gitea#29530)' (#2688) from snematoda/port-29530 into forgejo 2024-03-24 05:33:13 +00:00
contexttest add label filters in org/{org_name}/issues 2024-04-04 17:57:11 +05:30
convert [FEAT] Configure if protected branch rule should apply to admins 2024-03-29 00:21:49 +01:00
cron
doctor Refactor LFS GC functions 2024-04-05 16:49:15 +02:00
externalaccount
feed
forgejo
forms [FEAT] Configure if protected branch rule should apply to admins 2024-03-29 00:21:49 +01:00
gitdiff [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
indexer
issue [Port] gitea#29999: Fix Add/Remove WIP on pull request title failure 2024-03-29 12:21:51 +01:00
lfs
mailer Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
markup Format code 2024-03-28 05:42:25 +01:00
migrations Fix duplicate migrated milestones (#30102) 2024-03-30 07:17:30 +01:00
mirror
notify
org
packages packages: skip error logging on duplicate 2024-03-24 07:12:31 +01:00
pull Merge pull request '[FEAT] Configure if protected branch rule should apply to admins' (#2867) from gusted/forgejo-protectedbranch-admins into forgejo 2024-04-01 19:28:29 +00:00
release
repository Refactor LFS GC functions 2024-04-05 16:49:15 +02:00
secrets
task
uinotification
user [BUG] Don't delete inactive emails explicitly 2024-03-29 15:14:09 +01:00
webhook [REFACTOR] add Icon to webhook.Interface 2024-03-30 15:59:56 +01:00
wiki Fix an actions schedule bug (#28942) 2024-03-25 16:27:32 +01:00