Skip to content
Snippets Groups Projects

compute: enrich MatchContext with simple repo information

Merged Warren Gifford requested to merge compute/match-name-repo-info into main

Created by: coury-clark

Closes https://github.com/sourcegraph/sourcegraph/issues/34228

Enrich the compute stream API MatchContext result with simple repository information (repository ID and repository name)

Test plan

Here's an example event from the stream running locally

event: results
data: [{"matches":[{"value":"Historical","range":{"start":{"offset":-1,"line":6,"column":7},"end":{"offset":-1,"line":6,"column":17}},"environment":{"1":{"value":"Historical","range":{"start":{"offset":-1,"line":6,"column":7},"end":{"offset":-1,"line":6,"column":17}}}}}],"path":"enterprise/internal/insights/store/testdata/TestFindMatchingSeries/find_a_matching_series_when_one_exists.golden","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"matches":[{"value":"Historical","range":{"start":{"offset":-1,"line":6,"column":7},"end":{"offset":-1,"line":6,"column":17}},"environment":{"1":{"value":"Historical","range":{"start":{"offset":-1,"line":6,"column":7},"end":{"offset":-1,"line":6,"column":17}}}}}],"path":"enterprise/internal/insights/background/queryrunner/testdata/TestGetSeries/series_definition_does_exist.golden","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"matches":[{"value":"Historical","range":{"start":{"offset":-1,"line":6,"column":7},"end":{"offset":-1,"line":6,"column":17}},"environment":{"1":{"value":"Historical","range":{"start":{"offset":-1,"line":6,"column":7},"end":{"offset":-1,"line":6,"column":17}}}}}],"path":"enterprise/internal/insights/store/testdata/TestFindMatchingSeries/match_capture_group_series.golden","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"matches":[{"value":"Historical","range":{"start":{"offset":-1,"line":5,"column":7},"end":{"offset":-1,"line":5,"column":17}},"environment":{"1":{"value":"Historical","range":{"start":{"offset":-1,"line":5,"column":7},"end":{"offset":-1,"line":5,"column":17}}}}}],"path":"enterprise/internal/insights/store/testdata/TestCreateSeries/test_create_and_get_capture_groups_series.golden","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"matches":[{"value":"Historical","range":{"start":{"offset":-1,"line":8,"column":7},"end":{"offset":-1,"line":8,"column":17}},"environment":{"1":{"value":"Historical","range":{"start":{"offset":-1,"line":8,"column":7},"end":{"offset":-1,"line":8,"column":17}}}}}],"path":"enterprise/internal/insights/store/testdata/TestCreateGetView_WithGrants/no_users_or_orgs_provided_should_only_return_global.golden","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"matches":[{"value":"Historical","range":{"start":{"offset":-1,"line":8,"column":7},"end":{"offset":-1,"line":8,"column":17}},"environment":{"1":{"value":"Historical","range":{"start":{"offset":-1,"line":8,"column":7},"end":{"offset":-1,"line":8,"column":17}}}}}],"path":"enterprise/internal/insights/store/testdata/TestCreateGetView_WithGrants/org_5_can_see_the_view.golden","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"},{"matches":[{"value":"Historical","range":{"start":{"offset":-1,"line":8,"column":7},"end":{"offset":-1,"line":8,"column":17}},"environment":{"1":{"value":"Historical","range":{"start":{"offset":-1,"line":8,"column":7},"end":{"offset":-1,"line":8,"column":17}}}}}],"path":"enterprise/internal/insights/store/testdata/TestCreateGetView_WithGrants/user_1_can_see_this_view.golden","repositoryID":11,"repository":"github.com/sourcegraph/sourcegraph"}]

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading