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

Delete preview with the origin media #35

Open
DenTray opened this issue Dec 9, 2024 · 0 comments
Open

Delete preview with the origin media #35

DenTray opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@DenTray
Copy link
Collaborator

DenTray commented Dec 9, 2024

Since #11 with each uploaded media - package creating preview.

After removing media from the DB - it also removes related file from the storage, but keep related preview in DB.

Steps to reproduce

  • upload media using POST /media
  • check that new media created in DB and new preview created in the same table, media has preview_id field with the uploaded preview
  • delete media using DELETE /media/id
  • check that media not exists in DB

Expected result

Media with id from the preview_id field of removed media is not exists in DB. Related file was removed from the storage

Actual results

Preview exists in DB after removing base media.

@DenTray DenTray added the bug Something isn't working label Dec 9, 2024
@DenTray DenTray added this to the 0.1 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants