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 purge: Wrap user purge in a Pegasus transaction #24381

Merged
merged 1 commit into from Aug 17, 2018

Conversation

islemaster
Copy link
Contributor

I was using a dashboard transaction before but realized pegasus uses a separate db connection so the dashboard transaction wouldn't apply to pegasus db changes made during user purge. We now wrap the purge operations in both transactions.

I've written a test that does some minimal validation that the transactions are behaving as expected. I'm open to suggestions on better validation of this behavior, and it's still known that we do some things during user purge that we can't roll back (like deleting S3 content).

I was using a dashboard transaction before but realized pegasus uses a separate db connection so the dashboard transaction wouldn't apply to pegasus db changes made during user purge.  We now wrap the purge operations in both transactions.

I've written a test that does some minimal validation that the transactions are behaving as expected.  I'm open to suggestions on better validation of this behavior, and it's still known that we do some things during user purge that we can't roll back (like deleting S3 content).
Copy link
Contributor

@ewjordan ewjordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍, good idea to check that the stub actually ran!

@islemaster islemaster merged commit 48f4e65 into staging Aug 17, 2018
@islemaster islemaster deleted the user-purge-pegasus-transaction branch August 17, 2018 22:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants