Skip to content

Conversation

@tw4l
Copy link
Member

@tw4l tw4l commented Oct 22, 2025

Fixes #2918

Testing

  1. Create an org in a local instance running off this branch
  2. Create a workflow with an uploaded seed file
  3. Delete the org
  4. Verify that the seed file is deleted from storage and from the database

I've tested that this works correctly and that the seed files are left behind on org delete in current main.

@tw4l tw4l requested a review from ikreymer October 22, 2025 18:08
ikreymer added a commit that referenced this pull request Oct 22, 2025
…en deleted:

- in seed cleanup, catch if org doesn't exist and attempt to delete file directly
- add delete_file_from_default_storage() to allow deleting left-over seed files, assuming they are stored in default storage
- side effect of #2918, which will be fixed in #2919
ikreymer added a commit that referenced this pull request Oct 22, 2025
…en deleted:

- in seed cleanup, catch if org doesn't exist and attempt to delete file directly
- add delete_file_from_default_storage() to allow deleting left-over seed files, assuming they are stored in default storage
- side effect of #2918, which will be fixed in #2919
- no need for migration, as will be picked up existing cleanup seed files job
Copy link
Member

@ikreymer ikreymer left a comment

Choose a reason for hiding this comment

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

Looks good, tested locally.

@ikreymer ikreymer merged commit 9a734a1 into main Oct 22, 2025
31 of 32 checks passed
@ikreymer ikreymer deleted the delete-seed-files-on-org-delete branch October 22, 2025 19:32
ikreymer added a commit that referenced this pull request Oct 22, 2025
…ted (#2920)

- in seed cleanup, catch if org doesn't exist and attempt to delete file
directly
- add delete_file_from_default_storage() to allow deleting left-over
seed files, assuming they are stored in default storage
- side effect of #2918, which will be fixed in #2919
- no need for migration, as will be picked up existing cleanup seed
files job
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.

[Bug]: Seed files aren't deleted on org deletion

3 participants