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
Event type relations for merging related events into one activity
#57
Merge related event types into one activity (e.g. Claude Code session → commit → PR), not only identical types.
Current behaviour
With a ticket, chaining requires the same event_type_id (app/Services/ActivityProjector.php:74). Without a ticket it matches on customer only (:58-60, :84-94).
findChainableActivity() (:159) checks the nearest activity before and after, within CHAIN_GAP_MINUTES = 15 (:20).
appendEventToActivity() (:209) never changes event_type_id; the activity keeps its first (lowest-weight) type.
Lower weight = stronger evidence: events are sorted by ascending weight (:42-45).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Goal
Merge related event types into one activity (e.g. Claude Code session → commit → PR), not only identical types.
Current behaviour
event_type_id(app/Services/ActivityProjector.php:74). Without a ticket it matches on customer only (:58-60,:84-94).findChainableActivity()(:159) checks the nearest activity before and after, withinCHAIN_GAP_MINUTES = 15(:20).appendEventToActivity()(:209) never changesevent_type_id; the activity keeps its first (lowest-weight) type.:42-45).Scope
event_type_relationstable (predecessor_event_type_id,successor_event_type_id)predecessors()/successors()onEventTypeActivityProjectoraccepts related typesVerification
Adjacent events with related types merge; unrelated ones don't; merged activity carries the strongest type.
Related: code review events (#41), overlapping activities (#33).
All reactions