forgejo-aneksajo/models/quota
forgejo-backport-action ed87ecd17f [v11.0/forgejo] fix: ignore expired artifacts for quota calculation (#7985)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/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.

Co-authored-by: Gusted <postmaster@gusted.xyz>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7985
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-05-28 19:00:00 +02:00
..
default.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
errors.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
group.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
limit_subject.go feat(quota): Humble beginnings of a quota engine 2024-08-02 11:10:34 +02:00
main_test.go [v11.0/forgejo] fix: ignore expired artifacts for quota calculation (#7985) 2025-05-28 19:00:00 +02:00
quota.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
quota_group_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
quota_rule_test.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
rule.go [v11.0/forgejo] chore: branding import path (#7354) 2025-03-27 20:13:05 +00:00
used.go [v11.0/forgejo] fix: ignore expired artifacts for quota calculation (#7985) 2025-05-28 19:00:00 +02:00
used_test.go [v11.0/forgejo] fix: ignore expired artifacts for quota calculation (#7985) 2025-05-28 19:00:00 +02:00