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

Cleanup after model is deleted #81

Merged
merged 6 commits into from
Jun 3, 2024
Merged

Cleanup after model is deleted #81

merged 6 commits into from
Jun 3, 2024

Conversation

mjauvin
Copy link
Member

@mjauvin mjauvin commented Apr 25, 2024

Fixes #12

@mjauvin
Copy link
Member Author

mjauvin commented Apr 25, 2024

@lex0r can you test if this resolves the issue?

@LukeTowers
Copy link
Member

How does this handle the parent record being soft deleted?

@mjauvin
Copy link
Member Author

mjauvin commented Apr 26, 2024

It doesn't... I'll apply conditionally in afterModelDelete() then.

@mjauvin
Copy link
Member Author

mjauvin commented Apr 26, 2024

@LukeTowers that should address the softdelete concern.

@LukeTowers
Copy link
Member

Is there a way that we can support deleting the data when a softdeleted record is permanently deleted?

@mjauvin
Copy link
Member Author

mjauvin commented Apr 27, 2024

Is there a way that we can support deleting the data when a softdeleted record is permanently deleted?

Good point.
That should do it.

@LukeTowers
Copy link
Member

Just waiting on @lex0r to test and confirm and this should be good to merge.

Thanks @mjauvin, great job!

@mjauvin
Copy link
Member Author

mjauvin commented May 10, 2024

@lex0r it would really be appreciated if you could test this in your environment so we can get this merged.

Thanks!

@lex0r
Copy link

lex0r commented Jun 2, 2024

Hi @mjauvin
Sorry for the delay, it works for me and thanks for the fix!

@mjauvin mjauvin merged commit 6d14cf7 into main Jun 3, 2024
3 checks passed
@mjauvin mjauvin deleted the delete-cleanup branch June 3, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Translations not deleted automatically once related "translatable" entity is deleted
3 participants