Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: optimize prefix triggers (#supabase34257) #645

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

catcoon33
Copy link

What kind of change does this PR introduce?

Bug fix, this fixes a "ghost" directory issue

What is the current behavior?

checkout this issue:
#supabase34257

Screen.Recording.2025-03-24.at.23.11.50.mov

When renaming a folder (by updating an object's path), the old prefix remains in the storage.prefixes table even after all objects have been moved out of it. This creates a "ghost" directory that:

  • Still appears in directory listings
  • Has no actual objects inside it
  • Creates confusion for users
  • Pollutes the storage hierarchy

What is the new behavior?

  • Added a cleanup of old prefixes when renaming objects

Additional context

Screen.Recording.2025-03-24.at.23.04.37.mov

Add any other context or screenshots.

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.

1 participant