KamoCRM

Bounded recalculation by member id, and role edits that reach team members (KamoCollab CP01 T7)

Featurekamo-shared-library
Shipped
October 5, 2026 at 5:53 AM UTC
Author
Kamo
Commit
95c6254

**************** recalculates exactly these members: read by id in chunks of 500 (never the organization's members), each chunk through recalcChunk (the TEAM level loaded once per chunk; only a changed member is written and notified). Null and repeated ids are dropped, none left is 0 with no query, more than 1,000 distinct ids is refused, and a proxied member is unwrapped before the waterfall. updateRoleMemberRightsApplied also recalculates the members of every team that carries the role (findTeamIdsByRoleId, findMemberIdsByTeamIdIn), each once, never a direct holder twice, taken from the organization's members it already read, in chunks of 500.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing