forgejo_backup/models/quota
Gusted 022eeee657 fix: ignore expired artifacts for quota calculation (#7976)
- Expired artifacts are kept in the database but the artifact has been deleted from the storage. Ignore them for the quota calculation.
- Added unit test.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7976
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-05-28 18:22:10 +02:00
..
default.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
errors.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
group.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
limit_subject.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
main_test.go fix: ignore expired artifacts for quota calculation (#7976) 2025-05-28 18:22:10 +02:00
quota.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
quota_group_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
quota_rule_test.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
rule.go chore: branding import path (#7337) 2025-03-27 19:40:14 +00:00
used.go fix: ignore expired artifacts for quota calculation (#7976) 2025-05-28 18:22:10 +02:00
used_test.go fix: ignore expired artifacts for quota calculation (#7976) 2025-05-28 18:22:10 +02:00