feat: autoDeploy toggle on Service — skip auto-deploy when disabled#238
feat: autoDeploy toggle on Service — skip auto-deploy when disabled#238wonderwomancode wants to merge 1 commit into
Conversation
#65 - prisma/schema.prisma: add autoDeploy Boolean @default(true) to Service - prisma/migrations/…: ADD COLUMN autoDeploy with default true - typeDefs.ts: expose autoDeploy on Service type and in UpdateServiceInput - resolvers/index.ts: accept autoDeploy in updateService mutation - buildCallbackEndpoint.ts: gate autoDeployAfterBuild on service.autoDeploy When autoDeploy is false, a push still builds the image and records lastBuildSha/lastBuildStatus, but does not trigger an Akash/Phala deployment. The user deploys manually via the UI. Default is true so all existing services are unaffected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Quinn QA ReviewVerdict: REQUEST CHANGES
Test coverage findingsThis is the primary blocker. The PR adds a new conditional branch in The 847 existing tests all pass, but they test 0 lines of Required test cases:
The
The mocking infrastructure already exists in Regression risksLow overall, but only because the logic reads correctly under analysis. With no tests, there's no automated regression guard if someone later refactors the Migration is safe: Code quality findingsInput type mismatch — non-blocking but worth fixing before merge:
A client that introspects the schema and passes
The former is simpler given the DB is Logic is sound otherwise:
Blockers
Suggested follow-ups (non-blocking)
Not escalating to Senku or Lain until tests are added. |
Summary
Part of alternatefutures/web-app.alternatefutures.ai#65
autoDeploy Boolean @default(true)to theServicePrisma model with a migrationautoDeployon theServiceGraphQL type and inUpdateServiceInputupdateServiceresolver validates and persists the new fieldbuildCallbackEndpoint: gatesautoDeployAfterBuild()behindservice.autoDeploy !== false— when disabled, the build completes normally (image pushed,lastBuildSha+lastBuildStatusupdated) but no Akash/Phala deployment is triggeredDefault is
trueso all existing services keep the current behaviour with no action required.Test plan
pnpm buildpasses (no TypeScript errors)pnpm test— all 847 tests passALTER TABLE "Service" ADD COLUMN "autoDeploy" BOOLEAN NOT NULL DEFAULT trueautoDeploy=falseon a service, push a commit — confirm build runs but deploy is skipped (log line: "skipping auto-deploy: autoDeploy is disabled for service")autoDeploy=true— confirm push triggers deploy as before🤖 Generated with Claude Code