Skip to content

Commit 5f17787

Browse files
committed
feat: update CopilotAdapter to parse projectID and handle errors; mark workspace upsert bug as complete in documentation
1 parent fef678f commit 5f17787

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

packages/collector/internal/adapters/copilot_adapter.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"os"
77
"path/filepath"
8+
"strconv"
89
"strings"
910
"time"
1011

@@ -29,8 +30,12 @@ func NewCopilotAdapter(projectID string, hierarchyCache *hierarchy.HierarchyCach
2930
if log == nil {
3031
log = logrus.New()
3132
}
32-
// Parse projectID string to int, default to 215 for testing
33-
projID := 215
33+
// Parse projectID string to int
34+
projID, err := strconv.Atoi(projectID)
35+
if err != nil {
36+
log.Warnf("Failed to parse projectID '%s' as integer, defaulting to 1: %v", projectID, err)
37+
projID = 1
38+
}
3439

3540
return &CopilotAdapter{
3641
BaseAdapter: NewBaseAdapter("github-copilot", projectID),

specs/014-workspace-upsert-backfill-bug/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
status: planned
2+
status: complete
33
created: '2025-11-11'
44
tags:
55
- bug
@@ -8,11 +8,17 @@ tags:
88
- database
99
priority: high
1010
created_at: '2025-11-11T15:06:38.494Z'
11+
updated_at: '2025-11-11T15:54:12.320Z'
12+
completed_at: '2025-11-11T15:54:12.320Z'
13+
completed: '2025-11-11'
14+
transitions:
15+
- status: complete
16+
at: '2025-11-11T15:54:12.320Z'
1117
---
1218

1319
# Fix Workspace Upsert Bug Blocking Backfill
1420

15-
> **Status**: 📅 Planned · **Priority**: High · **Created**: 2025-11-11
21+
> **Status**: ✅ Complete · **Priority**: High · **Created**: 2025-11-11 · **Tags**: bug, backfill, api, database
1622
1723
## Overview
1824

0 commit comments

Comments
 (0)