compute: enrich streaming API ComputeText with repository metadata
Created by: coury-clark
Closes #37949 (closed)
Adds repository metadata to the ComputeText type in the compute streaming API. Similar to https://github.com/sourcegraph/sourcegraph/pull/34233
Test plan
Ran compute queries and got results:
repo:^github\.com/sourcegraph/sourcegraph$ lang:go content:output(historical -> $lang)
event: results
data: [{"value":"Go\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\nGo\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"}]
event: progress
data: {"done":false,"matchCount":0,"durationMs":29,"skipped":[]}
event: results
data: [{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\nGo\nGo\nGo\nGo\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\nGo\nGo\nGo\nGo\nGo\nGo\nGo\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\nGo\nGo\nGo\nGo\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\nGo\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\nGo\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\nGo\nGo\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"Go\n","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"}]
event: progress
data: {"done":false,"matchCount":0,"durationMs":102,"skipped":[]}
event: results
data: [{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"value":"","kind":"output","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"}]
event: progress
data: {"done":false,"matchCount":0,"durationMs":108,"skipped":[]}
event: progress
data: {"done":true,"matchCount":0,"durationMs":108,"skipped":[]}
event: done
data: {}