myxce/src/frontend/apiserver/controllers
Rongsong Shen c73708b81f
fix(apiserver): restart copies the named job, not the first stored one (bug-1898)
RestartJobByID looked the job up with a job_id CompCondition, which the
store never evaluates, and restarted jqueryReply[0] -- the first stored
job -- for any ID, including unknown ones. It now parses the ID with
ParseIdentitySelection, fetches the rows by key and matches them with
foundJob, as ControlJobByID does: an ordinary job or <array-id>[k] is
restarted, an unknown job or element is not found, and a bare array
identity (several elements) is refused. Restart goes through the
generateJobID/submitJob seams so the handler fixture can test it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 03:44:34 +00:00
..
apikey.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
auth.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
clusters.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
files.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
host_control_test.go fix(apiserver): populate hosts-list slot usage counts 2026-09-01 06:37:37 +00:00
hosts.go fix(apiserver): populate hosts-list slot usage counts 2026-09-01 06:37:37 +00:00
integration_test.go test(apiserver): add integration tests for P0+P1 backend features 2026-04-18 11:56:31 +00:00
jobarray.go feat(job-array-one-based-index): parse submit index expressions (task 6.1) 2026-10-01 11:47:23 +00:00
jobarray_test.go feat(job-array-one-based-index): parse submit index expressions (task 6.1) 2026-10-01 11:47:23 +00:00
jobmatch.go feat(job-array-one-based-index): control by filter with element selections (task 7.5) 2026-10-01 12:40:09 +00:00
jobmatch_test.go feat(job-array-one-based-index): control by filter with element selections (task 7.5) 2026-10-01 12:40:09 +00:00
jobs.go fix(apiserver): restart copies the named job, not the first stored one (bug-1898) 2026-10-02 03:44:34 +00:00
jobs_handler_test.go fix(apiserver): restart copies the named job, not the first stored one (bug-1898) 2026-10-02 03:44:34 +00:00
jobs_test.go feat(job-array-one-based-index): control by identity validates first and dispatches once (task 7.4) 2026-10-01 12:29:19 +00:00
jobsel.go feat(job-array-one-based-index): REST identity and name selection parsers (task 7.1) 2026-10-01 12:01:22 +00:00
jobsel_test.go feat(job-array-one-based-index): REST identity and name selection parsers (task 7.1) 2026-10-01 12:01:22 +00:00
output.go Init commit of jobs output/error message peek project. 2026-05-09 16:57:54 +08:00
output_test.go Init commit of jobs output/error message peek project. 2026-05-09 16:57:54 +08:00
permissions.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
queue_control_test.go feat: P0-2b implement ControlHost via xcecli_hostctrl + fix allFlag race 2026-04-17 08:17:56 +00:00
queue_filter_test.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
queues.go fix front end issues 2026-05-01 21:22:45 +08:00
rbac_check.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
rbac_check_test.go feat: P0-2c register routes + RBAC for host control/select 2026-04-17 09:32:21 +00:00
rbac_convention_test.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
resources.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
response.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
roles.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
users.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00