-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
Anonymise customer first and last names #12862
base: master
Are you sure you want to change the base?
Conversation
These were added a couple of years ago in openfoodfoundation#8763 But I guess we never noticed the names weren't getting anonymised. The old 'name' field is still in the DB. It was kept for compatibility during migraiton but never cleaned up. I've added the tech debt task to the welcome new devs board now: openfoodfoundation#8835
Testing on fr_stagingBefore: real customer names appeared in Admin > Customers (not shown here for privacy reasons of course). I ran the updated queries directly and it worked:
|
Hey @dacook , I guess this PR is dependent on completing openfoodfoundation/ofn-install#937, right? |
Yes you're right, sorry we can't deploy PRs to the new uk staging server yet. BTW I just noticed a mistake in the description above, have now fixed that. |
@filipefurtad0 @dacook i'm removing the feedback needed label as I think this is unblocked now - correct? |
Yes, that's correct thanks. |
Not sure this is something with the PR - I've noticed this with other PRs today as well - but staging is failing: So, I was not able to test this... |
That's odd. You tried to deploy to uk-staging but it looks like it tried to deploy to all staging servers. And maybe another process was deploying at the same time? |
The deploy script on uk-staging was wrong. It did deploy to all staging servers at the same time. I fixed it manually. I'll ask in Slack what the cause may be. |
Hey, it seems the staging-UK key has changed so I'm getting:
Where can I find the new key? (posted in #devops too, in case someone is online) |
These were added a couple of years ago in #8763 But I guess we never noticed the names weren't getting anonymised.
Now they will be anonymised whenever we run the rake task
ofn:data:anonymize
. This task is used when refreshing staging servers.The old 'name' field is still in the DB. It was kept for compatibility during migraiton but never cleaned up. I've added the tech debt task to the welcome new devs board now: #8835
What should we test?
Run the script and check that customer names can not be viewed in the system.
This must be executed on uk_staging because it was recently refreshed from prod and the customer names will still be present. IE:
pr-staged-uk
label and wait for the PR to be deployed.Dependencies