-
Notifications
You must be signed in to change notification settings - Fork 39
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 submission creation event(NEW SUBMISSION) on submission deletion #3445
Conversation
I agree with your point about #3441 |
@frjo Can we put this PR to the test site? Or it needs rebasing? |
Deploying to test now. |
4b3acf4
to
41114c8
Compare
@frjo I found that I missed deleting these events for batch delete action. I have fixed the PR. Can you please put its latest version to the test site? |
@fourthletter It is ready for your testing. You can test this with a new user or with a user whose data hasn't been deleted yet. |
…3658) Closes #3442. This small migration addition compliments #3445 as it will remove any previous `NEW_SUBMISSION` events that belong to submissions that no longer exist. This will allow for the removal of applicants that don't have any active submission, but can't be deleted due to the `The object you are trying to delete is used somewhere...` error. Cheers!
…3658) Closes #3442. This small migration addition compliments #3445 as it will remove any previous `NEW_SUBMISSION` events that belong to submissions that no longer exist. This will allow for the removal of applicants that don't have any active submission, but can't be deleted due to the `The object you are trying to delete is used somewhere...` error. Cheers!
…3658) Closes #3442. This small migration addition compliments #3445 as it will remove any previous `NEW_SUBMISSION` events that belong to submissions that no longer exist. This will allow for the removal of applicants that don't have any active submission, but can't be deleted due to the `The object you are trying to delete is used somewhere...` error. Cheers!
Possible Fix of #3442
On submission deletion, all other activities, determination, and other things are getting removed but as this
NEW SUBMISSION
event is not directly connected to submission so not getting removed. It is creating issues at the time of user deletion even after submission deletion.I was also thinking to show the model name, and object name in error itself but user deletion only seems to be dependent on
Activities
andEvents
(user can also be deleted only by removing Activities and events not submissions related to them), and even if we show staff the event or activities ids I don't think staff can easily delete those anyhow via UI. I think we need to decide a better way to delete a user, maybe issue #3441 help us?