appirio-tech / accounts-app

accounts.topcoder.com
2 stars 25 forks source link

Remove dependency of SFDC lead call from Member Trait call #211

Closed vikasrohit closed 5 years ago

vikasrohit commented 5 years ago

As of now we are making the SFDC lead creation call only when the call to the member trait creation is successful which is causing data to be missing for some users in SFDC when the member trait creation fails and we loose the data from both places. We should be calling both APIs in parallel so that we can have better chances of data being ingested in one of the systems.

fyi @mtwomey @RishiRajSahu @gondzo

vikasrohit commented 5 years ago

Patched production and dev both with the changes and it is now creating Salesforce lead even if there is an error in trait creation.