feat: add build service override state endpoint#203
Draft
vigneshrajsb wants to merge 1 commit intomainfrom
Draft
feat: add build service override state endpoint#203vigneshrajsb wants to merge 1 commit intomainfrom
vigneshrajsb wants to merge 1 commit intomainfrom
Conversation
c95da2b to
bc96484
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.
Summary
/api/v2/builds/{uuid}/servicesfor PR-comment-aligned service edit statenameinstead ofserviceNameAPI examples
GET current service edit state
{ "request_id": "req-123", "data": { "serviceOverrides": [ { "name": "api", "active": true, "branchOrExternalUrl": "feature/api", "status": "deployed", "statusMessage": null, "updatedAt": "2026-05-08T12:00:00.000Z", "group": "default", "editable": true }, { "name": "worker", "active": false, "branchOrExternalUrl": "repo/worker@latest", "status": "built", "statusMessage": "Ready", "updatedAt": "2026-05-08T12:05:00.000Z", "group": "optional", "editable": false } ] }, "error": null }PATCH updated service edit state
{ "serviceOverrides": [ { "name": "api", "active": true, "branchOrExternalUrl": "feature/api-v2" }, { "name": "worker", "active": true, "branchOrExternalUrl": "repo/worker@latest" } ] }{ "request_id": "req-123", "data": { "serviceOverrides": [ { "name": "api", "active": true, "branchOrExternalUrl": "feature/api-v2", "status": "deployed", "statusMessage": null, "updatedAt": "2026-05-08T12:10:00.000Z", "group": "default", "editable": true }, { "name": "worker", "active": true, "branchOrExternalUrl": "repo/worker@latest", "status": "built", "statusMessage": "Ready", "updatedAt": "2026-05-08T12:10:00.000Z", "group": "optional", "editable": false } ], "queued": true }, "error": null }Validation
pnpm test -- src/server/services/__tests__/override.test.ts src/shared/openApiSpec.test.tspnpm run lintgit diff --checkNotes
pnpm testwas attempted but this workspace is missingDATABASE_URL/DB config required by unrelated suites.pnpm run ts-checkwas attempted; repo-wide pre-existing TypeScript errors remain, while touched-file filtered output was clean.