admin: vector buckets link maintenance jobs to the Lance lane (#12633)

The Vector Engines and Maintenance card linked to the general plugin
monitoring page; the vector index jobs run in the Lance lane.


Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 authored and GitHub committed 2026-11-13 16:14:19 -08:00
1 parent 8a756af348
commit 08f9dcb6de
3 files changed
+4 -3

No files matched your search

@@ -86,6 +86,7 @@ func TestVectorOperationalStates(t *testing.T) {
} {
var out bytes.Buffer
require.NoError(t, VectorStatus(data).Render(t.Context(), &out))
require.Contains(t, out.String(), `<a href="/plugin/lanes/lance">Maintenance jobs</a>`)
if data.DiscoveryError != "" {
require.Contains(t, out.String(), "Engine discovery failed")
} else if len(data.Engines) == 0 {
+1 -1
View File
@@ -25,7 +25,7 @@ templ VectorStatus(data dash.VectorOperationsData) {
} else {
<p>{ fmt.Sprintf("%d vector maintenance workers connected",data.MaintenanceWorkers) }</p>
}
<a href={ dash.PUrl(ctx,"/plugin/monitoring") }>Maintenance jobs</a>
<a href={ dash.PUrl(ctx,"/plugin/lanes/lance") }>Maintenance jobs</a>
if len(data.MaintenanceJobs)>0 {
<table class="table table-sm mt-2"><thead><tr><th>Recent job</th><th>State</th><th>Result</th></tr></thead><tbody>
for _,job:=range data.MaintenanceJobs {
+2 -2
View File
@@ -142,9 +142,9 @@ func VectorStatus(data dash.VectorOperationsData) templ.Component {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var7 string
templ_7745c5c3_Var7, templ_7745c5c3_Err = templruntime.NewAttributeExpression(dash.PUrl(ctx, "/plugin/monitoring")).ResolveURL(ctx)
templ_7745c5c3_Var7, templ_7745c5c3_Err = templruntime.NewAttributeExpression(dash.PUrl(ctx, "/plugin/lanes/lance")).ResolveURL(ctx)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/vector_status.templ`, Line: 28, Col: 48}
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/vector_status.templ`, Line: 28, Col: 49}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var7)
if templ_7745c5c3_Err != nil {