Skip to content

feat: verify deployment on a draft, activate on success #769

@nealrichardson

Description

@nealrichardson

A better fix for #768 too.

Verify-before-activate workflow:

  1. Deploy as draft — POST /v1/content/:guid/deploy with activate: false. Returns a bundle ID.
  2. Hit the preview URL to verify — draft bundles are accessible at /content/:guid/_bundle:id. The process spins up cold
    (MinProcesses=0) on that request, so a successful HTTP response confirms it actually runs.
  3. Activate — POST /v1/content/:guid/deploy again with the same bundleId and activate: true. This is what the "Activate Draft" button in the UI does. Only do this if the verify step succeeds. If it does not, we do not activate the bundle. That way, the active bundle should never get a broken build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions