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

dev db taks to anonymize, and isolate data #18188

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

machisuji
Copy link
Member

What are you trying to accomplish?

Anonymization

Sometimes we would like to debug data of some OpenProject instance without exposing any data at all.
For that we have the script/anonymize-sql-dump script. The script makes some quite specific assumptions, which can make it tricky to use.

This is why I've added a rake task that does the same thing but simply on the currently connected database.

bundle exec rake development:db:anonymize

Isolation

Secondly, there are other times when someone would like to restore a backup or snapshot of their environment and host it to copy over deleted data into the current production environment.

For this it I have added another rake task that leaves the data broadly unchanged but removes everything that would cause the restored environment to communicate with the outside world, e.g. via email. It 'isolates' it, if you will.
If you can come up with a better name, I'm all ears.

bundle exec rake development:db:isolate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant