Carry the assignee into the account rollup, over a LEFT join

Fixkamo-shared-library
Ya
26 Agosti 2026, 03:13 UTC
Mwandishi
Kamo
Ahadi ya
1cd8ac7

Reading a lead's communications is gated on who it is assigned to. A rollup that returned uids alone could not apply that gate, so the account timeline built on it handed every lead's messages to anyone who could open the account — including the leads the lead page itself refuses them. The projection now carries the assignee so the gate has something to decide on. The join to the assignee is explicitly LEFT, and there is a test that keeps it that way. Written as l.assignedTeamMember.id it reads better, Hibernate emits an INNER join, and every UNASSIGNED lead silently disappears from the rollup — no error, just an account missing the leads nobody has picked up yet, which is the set most likely to be sitting on unanswered messages. Unassigned is also a meaningful case downstream: the gate treats it differently from "somebody else's", so losing those rows changes who is refused, not only what is shown. CommsRollupQueryTest parses the queries against the real mapping — an unmapped path fails at BEAN CREATION, so the symptom is SecurityService not starting — and checks the projection aliases match the accessors, which fails the same way.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei