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
[Due for payment 2026-09-25] Optimize hasEnabledTags used by MoneyRequestView #101863
Opening a report could spend around 100ms just to answer whether a policy has any enabled tags. hasEnabledTags allocated three throwaway arrays of every tag in the policy (filter, then map(Object.values), then flat), plus another array inside hasEnabledOptions, before returning a boolean. MoneyRequestView then ran that same check twice per render: once to decide whether to show the tag row, and once for the "tags disabled" alert.
Solution
hasEnabledTags now walks the tag lists with plain loops and returns as soon as it finds the first enabled, non-deleted tag, so it allocates nothing and the result is unchanged. MoneyRequestView computes the value once per render and reuses it for both the tag row and the alert.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.92-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
changed the title [-]Optimize hasEnabledTags used by MoneyRequestView[/-][+][Due for payment 2026-09-25] Optimize hasEnabledTags used by MoneyRequestView[/+]on Sep 25, 2026
Activity
melvin-bot commentedon Sep 24, 2026
@mountiny @TMisiukiewicz
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.92-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
[-]Optimize hasEnabledTags used by MoneyRequestView[/-][+][Due for payment 2026-09-25] Optimize hasEnabledTags used by MoneyRequestView[/+]melvin-bot commentedon Sep 25, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Sep 25, 2026
Payment Summary
Resolving PRs:
Optimize hasEnabledTags used by MoneyRequestView #101862
Contributor: @TMisiukiewicz does not require payment (Contractor)
Reviewer: @aimane-chnaif owed $175 via NewDot
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Sep 26, 2026
Payment Summary
Contributor+: @aimane-chnaif due $250 via NewDot