You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: older auto-paid totals and tags disappear after 200 allowance payments #1584
The allowance journal keeps only the last 200 attempts (takeLast(MAX_JOURNAL_ENTRIES) in PaykitAllowanceExecutor), yet the "Paid automatically" totals and the "Auto-paid" tag are rebuilt only from that journal. Manual payments of incoming requests are journaled too and count toward the same limit.
After 200 newer attempts, an older automatic payment drops out of its allowance's paid total and loses its Auto-paid tag; an ended allowance's displayed total can shrink the same way.
Expected behavior
Lasting totals and the ids of automatically paid requests are kept apart from the trimmed recovery journal, so trimming old recovery records never changes what the user sees.
Steps to Reproduce
Have one allowance pay a request automatically.
Make 200 more allowance or manual request payments.
The first payment no longer counts in the allowance total and shows no Auto-paid tag.
Activity