Skip to content

feat(serverless): wire versions delete and builds delete - #109

Merged
Ryank90 merged 2 commits into
feat/restate-usage-logsfrom
feat/versions-builds-delete
Sep 7, 2026
Merged

Ryank90 merged 2 commits into
feat/restate-usage-logsfrom
feat/versions-builds-delete

Conversation

@Ryank90

@Ryank90 Ryank90 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add apps versions delete <appId> <versionNumber> wrapping DELETE /v1/apps/{appId}/versions/{versionNumber} (204; 409 while active, only remaining, workers, rollout, or app deleting).
  • Add apps builds delete <appId> <buildId> wrapping DELETE /v1/apps/{appId}/builds/{buildId} (204; cancel queued/running as superseded; 409 if a live version still needs a ready build).
  • Reuse --yes/--force via a generalized confirmDelete prompt (Delete %s?).

Test plan

  • make lint
  • make test
  • make docs
  • runware serverless apps versions delete my-app 2 --yes on an unused version
  • runware serverless apps versions delete my-app 1 --yes on the active/only version returns 409
  • runware serverless apps builds delete <appId> <buildId> --yes cancels a queued/running build
  • Ready build still referenced by a live version returns 409

Unused versions and leftover builds can now be removed through the control-plane delete routes, with the same confirmation gate as app delete.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include coderabbit-review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 617a3a67-6f6f-4144-906d-7dce129aafa1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

goconst on CI (golangci-lint v2.12) flags four "Version" literals in the display package.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Ryank90
Ryank90 merged commit 701d2da into rc/serverless Sep 7, 2026
5 checks passed
@Ryank90
Ryank90 deleted the feat/versions-builds-delete branch September 7, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants