CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

fix(dashboard): drop activity_feed copies of events already derived from primary tables #5438

Merged⚡ AI-generatedXSccantynz wants to mergefix/feed-dedupe-integration-rowsmainopened 24d ago
1 changed file+7−4
Modifiedsrc/lib/recent-activity.ts+7−4View fileUnifiedSplit
159159 title: i.title,
160160 createdAt: i.createdAt,
161161 })),
162 // The dashboard already derives pr_merge rows from pull_requests, and the
163 // Claude integration writes the same event to activity_feed — drop the
164 // table's copy rather than showing the merge twice.
162 // Events already derived from the primary tables above also get written
163 // to activity_feed by the Claude integration — drop the table's copies
164 // (they render as bare "Opened pull request" rows with no number/title
165 // next to the derived row for the same event).
165166 ...feedRows
166 .filter((f) => f.action !== "pr_merge")
167 .filter(
168 (f) => !["pr_open", "pr_merge", "issue_open"].includes(f.action)
169 )
167170 .map((f) => ({
168171 action: f.action,
169172 repoName: f.repoName,
170173
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts