forked from lei.chen/myxce
`xcecli jobs list -a` returned "no job found" even when jobs existed. FilterRows routes every condition on a bitmask field (job_status / host_status) to MatchesBitmaskCondition, which only implemented OpEQ/OpNE bitmask semantics — the `-a` filter compiles to `job_status notnull` (OpNOTNULL), which fell through to `return false` and filtered out every job. (The default list's `notin(EXIT,DONE)` is compiled to OpEQ(mask), so it was unaffected.) Add OpISNULL/OpNOTNULL branches to MatchesBitmaskCondition that test the raw field value. New query_test.go: 3 regression tests (notnull matches all, null matches none, bitmask notin path unaffected), RED->GREEN. Verified live: `xcecli jobs list -a` now lists all jobs including DONE. Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| backend | ||
| cmd | ||
| common | ||
| config | ||
| controllers | ||
| docs | ||
| middleware | ||
| models | ||
| router | ||
| services | ||
| store | ||
| tools/encrypt | ||
| utils | ||
| go.mod | ||
| go.sum | ||
| meson.build | ||
| README.md | ||
(1) run server command:
cd cmd go run main.go
(2) run server with different log level: cd cmd go run main.go -level=debug
level options: info/debug/warn/error/fatal