From 08f9dcb6de1fe5740b9d044b7e8361c1f95813c0 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 13 Nov 2026 16:14:19 -0800 Subject: [PATCH] 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 --- weed/admin/view/app/s3vectors_buckets_test.go | 1 + weed/admin/view/app/vector_status.templ | 2 +- weed/admin/view/app/vector_status_templ.go | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/weed/admin/view/app/s3vectors_buckets_test.go b/weed/admin/view/app/s3vectors_buckets_test.go index ee97245d23..d20a98361f 100644 --- a/weed/admin/view/app/s3vectors_buckets_test.go +++ b/weed/admin/view/app/s3vectors_buckets_test.go @@ -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(), `Maintenance jobs`) if data.DiscoveryError != "" { require.Contains(t, out.String(), "Engine discovery failed") } else if len(data.Engines) == 0 { diff --git a/weed/admin/view/app/vector_status.templ b/weed/admin/view/app/vector_status.templ index 9318e55974..110d26fb74 100644 --- a/weed/admin/view/app/vector_status.templ +++ b/weed/admin/view/app/vector_status.templ @@ -25,7 +25,7 @@ templ VectorStatus(data dash.VectorOperationsData) { } else {

{ fmt.Sprintf("%d vector maintenance workers connected",data.MaintenanceWorkers) }

} - Maintenance jobs + Maintenance jobs if len(data.MaintenanceJobs)>0 { for _,job:=range data.MaintenanceJobs { diff --git a/weed/admin/view/app/vector_status_templ.go b/weed/admin/view/app/vector_status_templ.go index ba03e203b4..ef8278ad46 100644 --- a/weed/admin/view/app/vector_status_templ.go +++ b/weed/admin/view/app/vector_status_templ.go @@ -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 {
Recent jobStateResult