forgejo/models/quota
Gusted 022eeee657
Some checks are pending
/ release (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
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