fix(cli): chunk storage delete requests to respect API cap (#1814) by avallete · Pull Request #5629 · supabase/cli · GitHub
Skip to content

fix(cli): chunk storage delete requests to respect API cap (#1814)#5629

Merged
avallete merged 5 commits into
developfrom
avallete/cli-1814-chunk-storage-delete-requests-to-respect-the-new-storage-api
Jun 22, 2026
Merged

fix(cli): chunk storage delete requests to respect API cap (#1814)#5629
avallete merged 5 commits into
developfrom
avallete/cli-1814-chunk-storage-delete-requests-to-respect-the-new-storage-api

Conversation

@avallete

Copy link
Copy Markdown
Member

Summary

  • Fixes New Studio Version 20240104-dfc02e3 #1814.
  • storage rm now splits delete calls into DELETE_OBJECTS_LIMIT batches instead of sending every prefix in one request.
  • Recursive directory removal uses the same chunking path, so large deletes no longer exceed the storage API request cap.
  • Added coverage for explicit object deletes and recursive deletes with more than 1,000 objects.

Testing

  • Added Go tests covering batched delete requests for both direct object removal and recursive path removal.
  • Existing storage rm test suite passes with the new chunked request behavior.

@avallete avallete marked this pull request as ready for review June 20, 2026 12:11
@avallete avallete requested a review from a team as a code owner June 20, 2026 12:11
@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a18a226e21

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/cli-go/internal/utils/docker.go Outdated
@avallete avallete enabled auto-merge June 22, 2026 11:16
@avallete avallete added this pull request to the merge queue Jun 22, 2026
Merged via the queue into develop with commit 50fcced Jun 22, 2026
29 checks passed
@avallete avallete deleted the avallete/cli-1814-chunk-storage-delete-requests-to-respect-the-new-storage-api branch June 22, 2026 11:29
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