Repository navigation
docs(job): document switching a job's source in place - #1275
Merged
Merged
Conversation
**Linked ticket:** [QOV-2600](https://qovery.atlassian.net/browse/QOV-2600) What: The API reference says a job edit can switch between `image` and `docker` in place, keeping the job's id, schedule, lifecycle events and variables. API users can move a job from a Dockerfile build to a CI image, and back, without deleting and recreating it. Why: Today an edit that changes the job source is refused. The only way out is delete and recreate, which loses the job id and its variables. Notes: - Wording only: the schema is unchanged; generated clients differ in doc comments only. - Describes q-core once its job switch slice ships. Until then a source change still returns 400, and a registry of another organization still returns 400 with its name. - The `auto_preview` / `auto_deploy` lines follow the run's shared switch rule: a switch never turns a trigger on.
**Linked ticket:** [QOV-2600](https://qovery.atlassian.net/browse/QOV-2600) What: The job docs now say what a switch does to build settings and cron runs, what `<ID>` is in the job built-ins, and the registry refusals on create too. Readers can predict a switch's effects without reading q-core. Why: The first wording left gaps: `<ID>` read like the job UUID, `docker` read as Git-only Dockerfiles, `registry_id` was described as a tag, and create did not list its refusals. Notes: - `build_settings` with a switch to `image` returns 400, as the container path does. Today an image job accepts `build_settings`; only the switch case is documented as refused.
Contributor
Author
|
@cubic-dev-ai review |
@Astach I have started the AI code review. It will take a few minutes to complete. |
**Linked ticket:** [QOV-2600](https://qovery.atlassian.net/browse/QOV-2600) What: The job docs now say a switch in either direction turns off a left-out `auto_deploy` and `auto_preview`, and that a body with both `image` and `docker` returns 400. They also state what a switch does to build settings, as q-core's job switch implements it. Why: The previous wording kept `auto_deploy` on for a switch to `image`, did not mention the both-keys refusal, and refused `build_settings` on a switch to `image`, which q-core saves. Notes: - `build_settings` sent with a switch to `image` are saved, as on any image job edit: Terraform sends them on every apply. Left out, they reset to the cluster defaults. A switch to `docker` without them keeps the stored settings, or the cluster defaults when none are stored.
Contributor
Author
|
@cubic-dev-ai review |
@Astach I have started the AI code review. It will take a few minutes to complete. |
Astach
marked this pull request as ready for review
November 27, 2026 10:45
mzottola
approved these changes
Nov 27, 2026
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.
Linked ticket: QOV-2600
Plan page: QOV-2600: switch a service's source in place
What
The API reference says a job edit can switch between
imageanddockerin place, keeping the job's id, schedule, lifecycle events and variables.API users can move a job from a Dockerfile build to a registry image, and back, without deleting and recreating it.
Why
Today an edit that changes a job's source is refused. The only way out is to delete and recreate the job, which loses its id and its variables.
Notes
Stack: 1 of 2 · on
main(the applicationsourcePR is independent, also onmain)descriptionstripped, the spec is identical tomain. Generated clients change in doc comments only.build_settingsfollow q-core's job switch, unlike containers, which refuse them on an image. Sent with a switch toimage, they are saved as on any image job edit (Terraform sends them on every apply). Left out, a switch toimageresets them to the cluster defaults, and a switch todockerkeeps the stored settings, or the cluster defaults when none are stored.auto_deployorauto_previewbecomes false on any switch, in either direction: a switch never turns a trigger on by itself. A body with bothimageanddockerreturns 400, on create and on edit.qovery_job(image to Dockerfile build and back, same job id, no replace).npm testcannot load its Stoplight-hosted ruleset (404, same onmain). The stockoasruleset gives 0 errors on this branch and onmain, with one warning fewer here (createJobnow has a description).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Documents that a job edit can switch between
imageanddockerin place, so API users no longer need to delete and recreate a job to change its source. Today such an edit is refused, which loses the job's id and variables. This is a wording-only change; the schema is unchanged.Dependency
Written for commit 930b1be. Summary will update on new commits.