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

Check ActiveStorage setup #1510

Open
5 tasks
MrSerth opened this issue Jul 9, 2024 · 0 comments
Open
5 tasks

Check ActiveStorage setup #1510

MrSerth opened this issue Jul 9, 2024 · 0 comments
Labels

Comments

@MrSerth
Copy link
Member

MrSerth commented Jul 9, 2024

Lately, we encountered a few issues with attachments through ActiveStorage. Thus, we should validate our integration:

  • Ensure files get removed completely through ActiveStorage. This includes:
    • Deleting the attachment (keeping the record otherwise) removes the database entry (in internal ActiveStorage tables) and the file on disk.
    • Completely removing the record also removes database entries and files.
    • All relevant files (i.e., resized images) are considered.
  • Provide a simple script to check that all files in /storage are referenced in the database and vice versa. Further, each object referenced in the internal ActiveStorage tables should still exist and not be soft-deleted (users!). This script is intended to run on production once.
@MrSerth MrSerth added the bug label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant