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

Deleting users in the Rails console doesn't remove them from Userlist #7

Open
joshuap opened this issue Jun 6, 2022 · 3 comments
Open

Comments

@joshuap
Copy link

joshuap commented Jun 6, 2022

We're getting the following message when deleting users from the console:

[userlist-rails] Failed to delete delete: Missing required parameter :user

The user is destroyed in Rails, but the profile in Userlist remains (it does appear to delete dependent associations in Userlist, just not the user itself).

Do you know what could be going on here @benedikt? It looks like we're using the auto_discovery strategy for models, and everything else seems to work fine.

@benedikt
Copy link
Contributor

benedikt commented Jun 6, 2022

A lot of times this happens with relationships that have an invalid side. It's a bit hard to tell without more context, but try checking that you don't try to delete relationships where the user or the company is missing.

Let me know if that helps 🙂

@benedikt
Copy link
Contributor

@joshuap Any updates on this? I'd be happy to help, but might need some more information.

@joshuap
Copy link
Author

joshuap commented Jun 16, 2022

Still in my notification queue, just haven't gotten back to it yet! 😁

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

No branches or pull requests

2 participants