mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
Admin: add search indexing to repo menu (#58061)
When debugging a search issue, it's common to want to check the status of search indexing. Currently, you need to open the repo menu and click through to 'Settings' -> 'Search Indexing', which is not obvious. This change adds 'Search indexing' directly to the repo menu, matching what we do for 'Permissions' and 'Last sync log'. To counterbalance this, this change also removes the 'Embeddings Jobs' item. It felt cluttered to have two 'Embeddings' items, and we want to direct people towards policies instead of manually scheduling jobs.
This commit is contained in:
parent
27a1f081e6
commit
cebb98ff4b
@ -224,22 +224,20 @@ export const RepositoryNode: React.FunctionComponent<React.PropsWithChildren<Rep
|
||||
<MenuItem
|
||||
as={Button}
|
||||
disabled={!repoClonedAndHealthy(node)}
|
||||
onSelect={() => navigate(`/${node.name}/-/embeddings/configuration`)}
|
||||
onSelect={() => navigate(`/${node.name}/-/settings/index`)}
|
||||
className="p-2"
|
||||
>
|
||||
<Icon aria-hidden={true} svgPath={mdiVectorPolyline} className="mr-1" />
|
||||
Embeddings policies
|
||||
Search indexing
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
as={Button}
|
||||
disabled={!repoClonedAndHealthy(node)}
|
||||
onSelect={() =>
|
||||
navigate(`/site-admin/embeddings?query=${encodeURIComponent(node.name)}`)
|
||||
}
|
||||
onSelect={() => navigate(`/${node.name}/-/embeddings/configuration`)}
|
||||
className="p-2"
|
||||
>
|
||||
<Icon aria-hidden={true} svgPath={mdiVectorPolyline} className="mr-1" />
|
||||
Embeddings jobs
|
||||
Embeddings
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
as={Button}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user