myxce/src/frontend/apiserver
lei.chen c630809116 fix(apiserver): job_status notnull filter matches every job (bug-1504)
`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>
2026-08-05 01:43:07 +00:00
..
backend fix(apiserver): don't free client config C-strings that the C library retains (bug-1501) 2026-08-04 08:59:06 +00:00
cmd feat: add HA candidate failover to API server backend 2026-05-08 03:31:35 +00:00
common Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
config fix(apiserver): apikeys whitelist + job_status type + mcp_operator queue:control 2026-08-01 09:54:44 +00:00
controllers fix(apiserver): apikeys whitelist + job_status type + mcp_operator queue:control 2026-08-01 09:54:44 +00:00
docs Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
middleware fix(apiserver): apikeys whitelist + job_status type + mcp_operator queue:control 2026-08-01 09:54:44 +00:00
models Phase 0: scheduleragent + mcp-server read-only agent framework 2026-07-30 11:16:36 +08:00
router Phase 0: scheduleragent + mcp-server read-only agent framework 2026-07-30 11:16:36 +08:00
services submit job from xcecli 2026-04-14 15:55:52 +08:00
store fix(apiserver): job_status notnull filter matches every job (bug-1504) 2026-08-05 01:43:07 +00:00
tools/encrypt Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
utils refactor: simplify HA backend peer handling 2026-05-08 03:41:11 +00: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
README.md Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00

(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