fix(list): deduplicate issues with multiple blocks dependencies (GH#3567)#3673
Conversation
…567) Add Go-side dedup in searchTableInTx to ensure SearchIssues never returns the same issue ID twice, regardless of how many dependency subqueries match. This prevents bd list from showing issues multiple times when they have more than one blocks dependency.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
harry-miller-trimble
left a comment
There was a problem hiding this comment.
LGTM — targeted dedup fix for GH#3567, CI green, focused 2-file diff with a thorough regression test.
Automated Review SummaryClassification: Easy-win What it does: Fixes Review notes:
No issues found. Ready to merge. Automated review by gh-pr-review formula |
|
Thanks! Go side dedup felt like the safest fix here... the SQL path has enough moving parts that a DISTINCT might've had unintended side effects. |
Summary
bd listshowing issues multiple times when they have more than oneblocksdependencysearchTableInTxto ensureSearchIssuesnever returns the same issue ID twice, regardless of how the underlying SQL engine evaluates dependency-related subqueriesTestSearchIssues_NoDuplicatesWithMultipleBlockerscovering the epic parent + two blockers scenarioCloses #3567
Test plan
make buildsucceedsmake testpasses (pre-existingcmd/bdtimeout unrelated to this change)internal/storage/issueopsNeed help on this PR? Tag
@codesmithwith what you need.