-
-
Notifications
You must be signed in to change notification settings - Fork 398
feat/add-popular-tasks #1708
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
base: feat/add-popular-tasks
Are you sure you want to change the base?
feat/add-popular-tasks #1708
Conversation
…/loco into feat/add-popular-tasks
|
Hi @kaplanelad, I refactored the code and fixed the remaining issues. |
|
Hi @kaplanelad, is it ok like this? |
looks better. thanks. |
|
Hi @kaplanelad, just a quick heads-up: the CI is now passing and all tests are running successfully. Thank you! |
|
How group related to delete user task? |
|
The otherwise the test fails with the following error: That's why I had to add the this seems to be caused by the following test: |
|
From where the group came from? |
That also caught my attention 🙂 I didn’t intentionally introduce groups on my side. From what I could tell, the groups table is implicitly required by the ActiveModel::delete implementation. When the table is missing, the delete call fails at runtime, which is what caused the test to break. I traced this back to the CreateJoinTableUsersAndGroups migration generated in the test. That seems to be where the dependency comes from, even though groups itself isn’t created explicitly beforehand. The migration was added purely to make the test pass and avoid the runtime error — happy to change this if there’s a more intended approach 👍 |
This PR adds a user deletion functionality to popular tasks.