fix(rpc): populate dependencies in handleList response (#1300)
The daemon server's handleList was returning dependency counts but not the actual dependency records. This complements PR #1296 which fixed the direct CLI path. Code paths now fixed: - Direct (--no-daemon): cmd/bd/list.go (PR #1296) - Daemon (default): internal/rpc/server_issues_epics.go (this PR) Fixes bd-d240 Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1313,6 +1313,12 @@ func (s *Server) handleList(req *Request) Response {
|
||||
}
|
||||
depCounts, _ := store.GetDependencyCounts(ctx, issueIDs)
|
||||
|
||||
// Populate dependencies for JSON output
|
||||
allDeps, _ := store.GetAllDependencyRecords(ctx)
|
||||
for _, issue := range issues {
|
||||
issue.Dependencies = allDeps[issue.ID]
|
||||
}
|
||||
|
||||
// Build response with counts
|
||||
issuesWithCounts := make([]*types.IssueWithCounts, len(issues))
|
||||
for i, issue := range issues {
|
||||
|
||||
Reference in New Issue
Block a user