myxce/src/frontend/xcecli
Rongsong Shen a2476d0176 fix: xcecli jobs list -l — hide spurious start line and show pending reason
Three fixes:

1. ExecHosts.UnmarshalJSON: JSON null (sent when no allocation exists)
   was treated as a non-"-" string because json.Unmarshal(null, &str)
   returns nil with str="". This created a phantom HostSlot{NumSlots:1,
   HostName:""} producing "<1*>" for every PEND job. Now null and ""
   are both treated as empty hosts.

2. page_print_jobs.go: added !startTime.IsZero() guard so a zero
   timestamp ("0001-01-01T00:00:00Z") never produces a start line
   even if the status check is bypassed.

3. Added PENDING_REASON field to JobFieldsMap so it is requested from
   the API when -l is passed, and rendered in printJobsVerboseOutput
   for PEND/PSUSP jobs before the start-time section.
2026-05-09 05:15:31 +00:00
..
cmd improve frontend jobid display 2026-05-07 02:36:24 +00:00
common fix: xcecli jobs list -l — hide spurious start line and show pending reason 2026-05-09 05:15:31 +00:00
config Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
filters improve frontend jobid display 2026-05-07 02:36:24 +00:00
models fix: xcecli jobs list -l — hide spurious start line and show pending reason 2026-05-09 05:15:31 +00:00
router Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
test Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
go.mod Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
go.sum Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
meson.build Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00