Skip to content

Search backend: Format output of (search.RepoOptions).String()

Administrator requested to merge tl/pretty-print-RepoOptions-in-trace into main

Created by: tbliu98

Print all relevant field values of RepoOptions in an easy-to-read format. This will add more detail to traces of jobs that have RepoOptions as a field.

Test plan

Just updating how a tag is displayed in traces. Verified visually. For example, the query repo:^github\.com/sourcegraph/sourcegraph$ type:commit fork:no archived:no query now produces a CommitSearchJob trace with the repoOpts field formatted as such:

Screen Shot 2022-05-04 at 5 39 20 PM

Merge request reports

Loading