Show enrichment provenance in proboctl catalog views

The common tracker pattern "show" only printed attempt counters, so the
enrichment payload — run status, model, agent attribution, and per-field
outcomes — was invisible, and a partial run was indistinguishable from a
complete one. Render that payload the same way the common third party
"show" already does.

Surface the last enrichment attempt timestamp in both catalog list views
so an operator can spot stale or never-attempted rows at a glance.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-16 17:42:45 +02:00
parent 829771b7cc
commit ec4e142df2
4 changed files with 202 additions and 2 deletions

View File

@@ -149,8 +149,13 @@ func newCmdList(f *cmdutil.Factory) *cobra.Command {
return nil
}
table := clicmdutil.NewTable("ID", "NAME", "SLUG", "CATEGORY", "STATE", "STATUS", "UPDATED")
table := clicmdutil.NewTable("ID", "NAME", "SLUG", "CATEGORY", "STATE", "STATUS", "LAST ATTEMPT", "UPDATED")
for _, p := range parties {
lastAttempt := ""
if p.LastEnrichmentAttemptAt != nil {
lastAttempt = p.LastEnrichmentAttemptAt.Format("2006-01-02 15:04:05")
}
table.Row(
p.ID.String(),
p.Name,
@@ -158,6 +163,7 @@ func newCmdList(f *cmdutil.Factory) *cobra.Command {
string(p.Category),
enrichmentState(p),
enrichmentStatus(p),
lastAttempt,
p.UpdatedAt.Format("2006-01-02 15:04:05"),
)
}