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:
8
pkg/proboctl/commonthirdparty/list.go
vendored
8
pkg/proboctl/commonthirdparty/list.go
vendored
@@ -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"),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user