From a770eb5103429f0d91308d2ab5b5f8afe627d9e8 Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 23 Nov 2026 11:03:27 +0100 Subject: [PATCH] Pipelines page: every branch's newest together, filtered only by a module The operator found a pipelines view filtered by branch name makes no sense: the page and the terminal view now list the newest pipelines of every branch together, newest first, the branch a column, and offer one filter, a module (the pipelines that carry it). A delivery still links to its pipeline from its branch's list, or from every branch's list by the row's branch. Builds: design 47 H2 H-A-533 (hq 1b1e1984) --- .../cmd/mesh-delivery-cli/main.go | 20 ++-- .../cmd/mesh-delivery-cli/main_test.go | 21 ++-- .../mesh-delivery-view/integration_test.go | 6 +- .../internal/view/pipelines.go | 97 +++++++++++-------- .../internal/view/pipelines_test.go | 46 +++++++-- .../internal/view/pipelinespage.go | 29 +++--- .../mesh-delivery-view/internal/view/serve.go | 13 +-- 7 files changed, 147 insertions(+), 85 deletions(-) diff --git a/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go b/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go index c5db6c24b..b8585a484 100644 --- a/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go +++ b/modules/mesh-delivery-view/cmd/mesh-delivery-cli/main.go @@ -3,8 +3,8 @@ // to write the operator's answer to an ask that needs no proof of who answered (the view refuses the merge's Approve). `holds` // lists every fingerprint the assigner holds with its node, cause and answer; `hold-release [words]` and // `hold-keep [words]` answer its hold ask, again when the operator changes their mind (issue 1906). -// `pipelines [branch]` and `pipeline [mover]` are the pipelines page (design 47 H2 H-A-467): a branch's newest -// pipelines, one pipeline's mover rows or one mover's steps; with -follow printed again at each change the runner's events say. +// `pipelines [module]` and `pipeline [mover]` are the pipelines page (design 47 H2 H-A-467, H-A-533): every +// branch's newest pipelines (of a module when named), one pipeline by tier and stage, or one mover's steps; with -follow printed again at each change the runner's events say. package main import ( @@ -36,7 +36,7 @@ func run(args []string, socket string, out, errOut io.Writer) int { asJSON := fs.Bool("json", false, "print the rows as JSON") follow := fs.Bool("follow", false, "pipelines and pipeline: print again at each change the runner's events say, until interrupted") next := fs.String("next", "", "pipeline: the cursor of the next page a pipeline's answer named") - limit := fs.Int("limit", view.DefaultPipelinesLimit, "pipelines: the newest this many pipelines of the branch") + limit := fs.Int("limit", view.DefaultPipelinesLimit, "pipelines: the newest this many pipelines") if err := fs.Parse(args); err != nil { return 2 } @@ -66,7 +66,7 @@ func run(args []string, socket string, out, errOut io.Writer) int { } if fs.NArg() > 0 { if fs.Arg(0) != "answer" || fs.NArg() < 3 { - fmt.Fprintln(errOut, "mesh-delivery-cli shows the rows, or answers: mesh-delivery-cli answer