Skip to content

feat(api): roll back started or failed deployments #16

Description

@ctxswitch

Parent

Related to #1

What to build

Implement rollback for started or failed Deployment Requests so recovery is explicitly recorded.

Acceptance criteria

  • POST /deployments/{id}/rollback transitions started requests to rolled_back.
  • POST /deployments/{id}/rollback transitions failed requests to rolled_back.
  • Rollback requires a non-empty note.
  • Rollback after succeeded returns a conflict error.
  • rolled_back is terminal.
  • Tests cover rollback from started, rollback from failed, missing rollback note, rollback after success conflict, and terminal rollback behavior.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    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