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:
Julie Tibshirani 2023-11-02 08:47:20 -07:00 committed by GitHub
parent 27a1f081e6
commit cebb98ff4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}