Open shaun-technovation opened 1 month ago
In preparation of running this rake task next week, I have downloaded a CSV of all account ids who have logged into this season (over 800).
This new rake task is on QA, I'll start testing it on QA tomorrow.
I worked out a few kinks with the rake task and now I'm feeling pretty good about it.
I ran this command on QA:
heroku run bundle exec rake update_salesforce_contacts[346,1954,187,348,1957,1305] --app technovation-qa
I verified:
I ran the rake task multiple times and verified that duplicate program participant records aren't getting created (this was something I was/am concerned about).
I ran this rake task on Production, detail are in Slack.
There could still be accounts that are not in Salesforce because of the "duplicated detected" error. There are 147 people who have run into this error according to Airbrake. I'm not sure how to address these accounts though, there doesn't seem to be any easy way to extract the account ids from the error messages to run the rake task for them. I'll keep thinking about it and also see if there's a way to easily identify these accounts.
RAKE TASK
heroku run bundle exec rake update_salesforce_contacts[account_ids] --app technovation-qa