Implement global task search with parallel execution

- SearchTasksGlobally: cross-project search using errgroup
- Gets all projects, then searches each in parallel
- Results aggregated from all accessible projects
- Context cancellation propagates to all goroutines
- Single project failure cancels remaining searches
- Added golang.org/x/sync/errgroup dependency
- Comprehensive test coverage
This commit is contained in:
Oliver Jakoubek 2026-01-15 18:40:14 +01:00
commit 527d27b73f
5 changed files with 165 additions and 1 deletions

2
go.sum Normal file
View file

@ -0,0 +1,2 @@
golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=