Skip to content

search: find factory jobs from every connected factory - #2221

Merged
santoshkumarradha merged 8 commits into
app/v3from
c52/search-jobs
Nov 2, 2026
Merged

santoshkumarradha merged 8 commits into
app/v3from
c52/search-jobs

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

Typing a job's name in ⌘K found nothing unless that factory's job list was already open.

  • search.all now returns a job group from every connected factory, using the same caller-visible queue as the jobs list.
  • Each hit has id (<factory>#<document_id>), factory, document_id, repo, number, title and state.
  • Matching ignores case: title or number first, request text next (when the queue carries it), repository last, newest first within a rank.
  • One limit covers jobs across all factories. Dismissed and dropped jobs never appear; other closed jobs appear for the week they closed, like the jobs list.
  • Hello announces search.jobs.

Limits: factories are read in parallel under a single 1.5-second deadline, so a slow factory adds no hits. Search never starts a stopped local factory.

Validation: the named wire test appfactory_search_test.go was red before the change and is green now. Wider suites run in the stream's later check.

🤖 Generated with Claude Code

@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 2, 2026 19:27
@santoshkumarradha
santoshkumarradha merged commit 8b861a5 into app/v3 Nov 2, 2026
@santoshkumarradha
santoshkumarradha deleted the c52/search-jobs branch November 2, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant