Skip to content

New reference panel: handle forks/archives in search-based code intel

Administrator requested to merge mrn/handle-forks-archives into main

Created by: mrnugget

This is part of https://github.com/sourcegraph/sourcegraph/issues/30970 and ports the handling of forks/archives and basicCodeIntel.includeArchives/basicCodeIntel.includeForks setting from code-intel-extensions to the reference panel.

Reviewers: in order to get to isFork/isArchived I had to resolve the repository too, so I took this as a chance to turn potentially 3 requests into a single GraphQL in a single custom hook. I think reviewing commit by commit might be the easiest.

Test plan

Manually tested the queries in forks/non-forks, with setting on true and on false.

App preview:

Merge request reports

Loading