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

Delete submission creation event(NEW SUBMISSION) on submission deletion #3445

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

sandeepsajan0
Copy link
Member

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 and Events(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?

@sandeepsajan0 sandeepsajan0 requested review from frjo and theskumar June 17, 2023 05:29
@frjo frjo added Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter labels Jul 13, 2023
@fourthletter
Copy link
Contributor

I agree with your point about #3441

@sandeepsajan0
Copy link
Member Author

@frjo Can we put this PR to the test site? Or it needs rebasing?

@frjo frjo added the Status: Needs testing Tickets that need testing/qa label Aug 1, 2023
@frjo
Copy link
Member

frjo commented Aug 1, 2023

Deploying to test now.

@sandeepsajan0 sandeepsajan0 force-pushed the fix/gh-3442-delete-user branch from 4b3acf4 to 41114c8 Compare August 8, 2023 06:50
@sandeepsajan0
Copy link
Member Author

sandeepsajan0 commented Aug 8, 2023

@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?

@sandeepsajan0
Copy link
Member Author

@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.
I'll create a separate PR to make it work for all users.

@frjo frjo merged commit aae2595 into main Aug 31, 2023
frjo pushed a commit that referenced this pull request Nov 23, 2023
…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!
@theskumar theskumar deleted the fix/gh-3442-delete-user branch February 7, 2024 11:02
wes-otf added a commit that referenced this pull request May 7, 2024
…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!
wes-otf added a commit that referenced this pull request May 8, 2024
…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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Tested - approved for live ✅ Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants