Skip to content

fix(milestones): cap allocations per milestone at MAX_ALLOCATIONS - #910

Merged
chonilius merged 2 commits into
MergeFi:mainfrom
CelestinaBeing:feat/issues-793-798-796-797
Nov 21, 2026
Merged

chonilius merged 2 commits into
MergeFi:mainfrom
CelestinaBeing:feat/issues-793-798-796-797

Conversation

@CelestinaBeing

Copy link
Copy Markdown
Contributor

milestones::allocate had no bound on how many issue entries could accumulate in the allocations Map, letting the inline record grow without limit and making every write progressively more expensive.

This PR adds MAX_ALLOCATIONS = 100 to mergefi_common and enforces it in allocate with a new TooManyAllocations = 26 error variant, mirroring how MAX_SPONSORS already bounds the contributor list.

Closes #797
Closes #796
Closes #798
Closes #793

@vercel

vercel Bot commented Nov 21, 2026

Copy link
Copy Markdown

@CelestinaBeing is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 21, 2026

Copy link
Copy Markdown

@CelestinaBeing Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@chonilius
chonilius merged commit 0a95b87 into MergeFi:main Nov 21, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment