Skip to content

Add function to call compute endpoint streaming search

Warren Gifford requested to merge ak/computestream2 into main

Created by: AdhamKhalifa

Fixes #35811 (closed)

Test plan

  • Tested locally with a dummy call:
    useEffect(() => {
        const computeQuery = 'repo:github\\.com/sourcegraph/sourcegraph$ content:output((.|\n)* -> $author) type:commit after:"1 month ago" count:all'
        const subscription = streamComputeQuery(computeQuery).subscribe(message => console.log(message), error => console.error(error))
        return () => subscription.unsubscribe()
    }, [])

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading