feat(cli): 补齐 job ls 服务端筛选参数 / expose server-side job filters - #483
Open
Jinghao-coding wants to merge 2 commits into
Open
feat(cli): 补齐 job ls 服务端筛选参数 / expose server-side job filters#483Jinghao-coding wants to merge 2 commits into
Jinghao-coding wants to merge 2 commits into
Conversation
Jinghao-coding
force-pushed
the
codex/issue-477-job-filters
branch
from
July 28, 2026 14:43
09641f7 to
992cea6
Compare
Jinghao-coding
force-pushed
the
codex/issue-477-job-filters
branch
from
July 30, 2026 07:25
992cea6 to
0664fd1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
中文
变更内容
crater job ls增加--search和--schedule。--status、--type改为可重复或逗号分隔的多值参数,并保持原单值用法兼容。status、job_type和schedule_type。原因与影响
后端已经支持这些服务端筛选,但 CLI 只能表达单状态、单类型,且无法按搜索词或调度类型筛选。现在脚本可以只请求目标作业,无需抓取全部页面后再筛选;现有单值命令保持兼容。
测试
cd cli && make pre-commit-check:unit 与全部快照均通过。cd cli && go vet ./...cd cli && go build本地联调说明
本机
127.0.0.1:8088对真实job ls请求在 60 秒内未返回,因此中止该请求;本 PR 没有将该环境联调记为成功。参数解析、HTTP 合约和错误输出已由确定性的本地测试覆盖。Closes #477
English
Changes
--searchand--scheduletocrater job ls.--statusand--typerepeatable or comma-separated while preserving single-value usage.status,job_type, andschedule_typeas repeated query parameters.Why and impact
The backend already supports these server-side filters, but the CLI could only express one status/type and could not filter by search text or schedule type. Scripts can now request only the relevant jobs without fetching every page first, while existing single-value invocations remain compatible.
Validation
cd cli && make pre-commit-check: unit tests and every snapshot suite pass.cd cli && go vet ./...cd cli && go buildLocal integration note
The local service at
127.0.0.1:8088did not return a realjob lsresponse within 60 seconds, so the request was aborted and is not reported as a successful integration test. Parameter parsing, HTTP contracts, and error rendering are covered by deterministic local tests.Closes #477