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

User data is not deleted when a user is removed #557

Closed
ans-ibrahim opened this issue Dec 11, 2023 · 3 comments · Fixed by #558
Closed

User data is not deleted when a user is removed #557

ans-ibrahim opened this issue Dec 11, 2023 · 3 comments · Fixed by #558
Labels
bug Something isn't working

Comments

@ans-ibrahim
Copy link

ans-ibrahim commented Dec 11, 2023

Description

If we create a 2nd user and delete it the watched data would be still there and would be assigned to the next user created as id of 2nd user would assigned to new user.

Version

nightly

Steps to Reproduce

  1. Create a 2nd user.
  2. add some movies as watched
  3. delete the user
  4. create new user
  5. Deleted users history would be assigned to new user.

Screenshots

No response

Logs

No response

Server OS

Fedora Silverblue 39

Client Platform

None

Client Device

No response

Client OS

No response

Client Browser

No response

Additional Context

No response

@leepeuker
Copy link
Owner

Which database are you using?

@leepeuker leepeuker added the bug Something isn't working label Dec 12, 2023
@leepeuker leepeuker linked a pull request Dec 12, 2023 that will close this issue
@leepeuker
Copy link
Owner

I assume you are using SQLite, I just noticed that the foreign key support was not enabled, so the automatic cleanup of orphaned data entries was not happing. This should now be fixed

@ans-ibrahim
Copy link
Author

Yes, was using sqlite.

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

Successfully merging a pull request may close this issue.

2 participants