Skip to content

fix: PATCH /jobs/:slug saves applySchema - #332

Merged
sh1pt-actions-fleet[bot] merged 1 commit into
masterfrom
fix/patch-apply-schema
Oct 29, 2026
Merged

sh1pt-actions-fleet[bot] merged 1 commit into
masterfrom
fix/patch-apply-schema

Conversation

@sh1pt-actions-fleet

Copy link
Copy Markdown
Contributor

PATCH accepted applySchema, ran it through the normaliser, then never wrote it: patchJob had no apply_schema assignment and applySchema was missing from JOB_PATCH_FIELDS. Now a sent applySchema is written (only when sent, so partial patches still leave it alone; null resets to the default). editJob writes it too.

Tests: unit test in job-patch-fields, API test that PATCHes a new schema and reads it back. Full suite 1035/1035 against a real Postgres.

🤖 Generated with Claude Code

The route validated a sent applySchema and then dropped it: patchJob had no
apply_schema write and the field was missing from JOB_PATCH_FIELDS. Also
write it in editJob so both edit paths agree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit 20186c9 into master Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant