wso2 / wso2/api-platform

Implement rollback for gateway association failures during deployment

Open
#778 0 comments 0 reactions 1 assignee View on GitHub

@dushaniw is already working on this.

Since Jan 25, 2026.

Dominant language
Go
Stars
71
Forks
111
Avg merge
1d 14h
Merged PRs (30d)
110

Description

Context

During API deployment, if the gateway association creation fails after the deployment record is persisted, the system currently logs a warning and returns success. This leaves the deployment in an inconsistent state where a deployment artifact exists without the corresponding gateway association.

Required Action

Implement proper rollback logic when ensureAPIGatewayAssociation fails in the DeployAPI method (platform-api/src/internal/service/deployment.go, lines 201-204) so that:

  • The deployment transaction is rolled back if association fails
  • Or the deployment status is marked appropriately to reflect the failure
  • The error is propagated to the caller instead of being swallowed

Related

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.