Iridescent-CM / technovation-app

The team submission platform for the Technovation Challenge
https://technovationchallenge.org
GNU General Public License v3.0
7 stars 4 forks source link

Add rake task to ensure contacts and program participant records are created in Salesforce #4956

Open shaun-technovation opened 1 month ago

shaun-technovation commented 1 month ago

RAKE TASK

heroku run bundle exec rake update_salesforce_contacts[account_ids] --app technovation-qa

shaun-technovation commented 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).

shaun-technovation commented 1 month ago

This new rake task is on QA, I'll start testing it on QA tomorrow.

shaun-technovation commented 1 month ago

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).

shaun-technovation commented 1 week ago

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.