From 70fb08ae16775cf311d059726d9be0feafdf4c9b Mon Sep 17 00:00:00 2001 From: Michael Harrison Date: Tue, 7 Sep 2021 14:35:55 -0500 Subject: [PATCH] revert batching salesforce updates (#988) * revert batching salesforce updates * update routine spec * update vcrs --- app/routines/update_user_salesforce_info.rb | 222 +++++++++--------- ..._when_two_contacts_with_same_alt_email.yml | 102 ++++---- ...ntacts_with_same_primary_and_alt_email.yml | 102 ++++---- ...ultiple_SF_contacts_exist_for_one_user.yml | 102 ++++---- .../UpdateUserSalesforceInfo/sf_setup.yml | 28 +-- ..._cache_info_when_not_previously_linked.yml | 66 +++--- ...oes_update_info_when_previously_linked.yml | 82 +++---- ..._cache_info_when_not_previously_linked.yml | 52 ++-- ...nfo_in_user_when_not_previously_linked.yml | 102 ++++---- ...es_info_in_user_when_previously_linked.yml | 102 ++++---- ...does_not_update_if_email_doesn_t_match.yml | 52 ++-- ...atus_if_user_already_has_SF_contact_ID.yml | 104 ++++---- ...user_status_when_not_previously_linked.yml | 52 ++-- .../update_user_salesforce_info_spec.rb | 2 +- .../update_user_salesforce_info_spec.rb | 13 +- 15 files changed, 596 insertions(+), 587 deletions(-) diff --git a/app/routines/update_user_salesforce_info.rb b/app/routines/update_user_salesforce_info.rb index 6d814fd9d..ccf920639 100644 --- a/app/routines/update_user_salesforce_info.rb +++ b/app/routines/update_user_salesforce_info.rb @@ -1,10 +1,8 @@ class UpdateUserSalesforceInfo - BATCH_SIZE = 250 - COLLEGE_TYPES = [ - 'College/University (4)', - 'Technical/Community College (2)', - 'Career School/For-Profit (2)' + 'College/University (4)', + 'Technical/Community College (2)', + 'Career School/For-Profit (2)' ] HIGH_SCHOOL_TYPES = [ 'High School' ] K12_TYPES = [ 'K-12 School' ] @@ -14,10 +12,10 @@ class UpdateUserSalesforceInfo FOREIGN_SCHOOL_LOCATIONS = [ 'Foreign' ] ADOPTION_STATUSES = { - "Current Adopter" => true, - "Future Adopter" => true, - "Past Adopter" => false, - "Not Adopter" => false + "Current Adopter" => true, + "Future Adopter" => true, + "Past Adopter" => false, + "Not Adopter" => false } def initialize(allow_error_email:) @@ -41,7 +39,7 @@ def call prepare_contacts schools_by_salesforce_id = School.select(:id, :salesforce_id).where( - salesforce_id: @contacts_by_id.values.compact.map(&:school_id) + salesforce_id: @contacts_by_id.values.compact.map(&:school_id) ).index_by(&:salesforce_id) # Go through all users that have already have a Salesforce Contact ID and make sure @@ -54,7 +52,6 @@ def call cache_contact_and_school_data_in_user!(contact, school, user) rescue StandardError => ee error!(exception: ee, user: user) - Sentry.capture_exception ee end end @@ -90,7 +87,6 @@ def call end rescue StandardError => ee error!(exception: ee, user: user) - Sentry.capture_exception ee end end end @@ -128,17 +124,16 @@ def call unless user.is_newflow? # because the new Accounts flow works differently; don't mess with it. user.faculty_status = - if statuses == ["Converted"] - :rejected_faculty - else - :pending_faculty - end + if statuses == ["Converted"] + :rejected_faculty + else + :pending_faculty + end end user.save! if user.changed? rescue StandardError => ee error!(exception: ee, user: user) - Sentry.capture_exception ee end end end @@ -156,14 +151,41 @@ def call self end + def contacts + # The query below is not particularly fast, takes around a minute. We could + # try to do something fancier, like only query contacts modified in the last day + # or keep track of when the SF data was last updated and use those timestamps + # to limit what data we pull from Salesforce (could have a global field in redis + # or could copy SF contact "LastModifiedAt" to a "sf_refreshed_at" field on each + # User record). + # + # Here's one example query as a starting point: + # ...Contact.order("LastModifiedDate").where("LastModifiedDate >= #{1.day.ago.utc.iso8601}") + # + # TODO: Need to move the duplicated email detection code to SF before we change anything + # If we use timestamps to limit results returned, need to be very careful + # to avoid race conditions such as missing records that were modified + # while we were querying SF + # If we don't use timestamps, should load the contacts in chunks of 1,000 or 10,000 + # Or maybe try https://github.com/gooddata/salesforce_bulk_query + + @contacts ||= OpenStax::Salesforce::Remote::Contact + .select( + :id, :email, :email_alt, :faculty_verified, + :school_type, :adoption_status, :grant_tutor_access + ) + .includes(:school) + .to_a + end + def leads # Leads come from many sources; we only care about those created for faculty # verification ("OSC Faculty") @leads ||= OpenStax::Salesforce::Remote::Lead - .where(source: "OSC Faculty") - .select(:id, :email) - .to_a + .where(source: "OSC Faculty") + .select(:id, :email) + .to_a end def prepare_leads @@ -181,60 +203,46 @@ def prepare_leads end def prepare_contacts - last_id = nil - begin - loop do - sf_contacts = OpenStax::Salesforce::Remote::Contact.select(:id, :email, :email_alt, :faculty_verified,:school_type, :adoption_status, :grant_tutor_access).includes(:school).order(:id).limit(BATCH_SIZE) - sf_contacts = sf_contacts.where("id > '#{last_id}'") unless last_id.nil? - sf_contacts = sf_contacts.to_a - last_id = sf_contacts.last.id unless sf_contacts.last.nil? - - colliding_emails = [] - - # Store each contact in our internal maps; keep track of which contacts have - # colliding emails so we can clear them out below (don't want to clear out - # until all contacts have been examined so that we don't miss a collision) - - sf_contacts.each do |contact| - emails = [contact.email, contact.email_alt].compact - .map(&:downcase) - .map(&:strip) - .uniq - - emails.each do |email| - if (colliding_contact = @contacts_by_email[email]) - colliding_emails.push(email) - error!( - message: "#{email} is listed on contact #{contact.id} and contact #{colliding_contact.id}" \ - "; neither contact will be synched to an OpenStax Account until this is resolved." - ) - else - @contacts_by_email[email] = contact - @contacts_by_id[contact.id] = contact - end - end + colliding_emails = [] + + # Store each contact in our internal maps; keep track of which contacts have + # colliding emails so we can clear them out below (don't want to clear out + # until all contacts have been examined so that we don't miss a collision) + + contacts.each do |contact| + emails = [contact.email, contact.email_alt].compact + .map(&:downcase) + .map(&:strip) + .uniq + + emails.each do |email| + if (colliding_contact = @contacts_by_email[email]) + colliding_emails.push(email) + error!( + message: "#{email} is listed on contact #{contact.id} and contact #{colliding_contact.id}" \ + "; neither contact will be synched to an OpenStax Account until this is resolved." + ) + else + @contacts_by_email[email] = contact + @contacts_by_id[contact.id] = contact end + end + end - # Go through colliding emails and clear their Contacts out of our hashes so that - # we don't assign these Contacts to users until a human resolves the collisions + # Go through colliding emails and clear their Contacts out of our hashes so that + # we don't assign these Contacts to users until a human resolves the collisions - colliding_emails.uniq.each do |colliding_email| - contact = @contacts_by_email[colliding_email] - @contacts_by_id[contact.id] = nil - @contacts_by_email[colliding_email] = nil - end - break if sf_contacts.length < BATCH_SIZE - end - rescue StandardError => ee - error!(exception: ee) - Sentry.capture_exception ee + colliding_emails.uniq.each do |colliding_email| + contact = @contacts_by_email[colliding_email] + @contacts_by_id[contact.id] = nil + @contacts_by_email[colliding_email] = nil end end def cache_contact_and_school_data_in_user!(contact, school, user) if contact.nil? warn( - "User #{user.id} previously linked to contact #{user.salesforce_contact_id} but that" \ + "User #{user.id} previously linked to contact #{user.salesforce_contact_id} but that" \ " contact is no longer present; resetting user's contact ID, faculty status, school type, and school location" ) user.salesforce_contact_id = nil @@ -245,44 +253,44 @@ def cache_contact_and_school_data_in_user!(contact, school, user) user.salesforce_contact_id = contact.id user.faculty_status = case contact.faculty_verified - when "Confirmed" - :confirmed_faculty - when "Pending" - :pending_faculty - when /Rejected/ - :rejected_faculty - when NilClass - :no_faculty_info - else - raise "Unknown faculty_verified field: '#{ - contact.faculty_verified}'' on contact #{contact.id}" + when "Confirmed" + :confirmed_faculty + when "Pending" + :pending_faculty + when /Rejected/ + :rejected_faculty + when NilClass + :no_faculty_info + else + raise "Unknown faculty_verified field: '#{ + contact.faculty_verified}'' on contact #{contact.id}" end # TODO: We can read school_type and school_location from the cached School records instead, # but better wait 1 additional release to let the Schools be cached and linked user.school_type = case contact.school_type - when *COLLEGE_TYPES - :college - when *HIGH_SCHOOL_TYPES - :high_school - when *K12_TYPES - :k12_school - when *HOME_SCHOOL_TYPES - :home_school - when NilClass - :unknown_school_type - else - :other_school_type + when *COLLEGE_TYPES + :college + when *HIGH_SCHOOL_TYPES + :high_school + when *K12_TYPES + :k12_school + when *HOME_SCHOOL_TYPES + :home_school + when NilClass + :unknown_school_type + else + :other_school_type end sf_school = contact.school user.school_location = case sf_school&.school_location - when *DOMESTIC_SCHOOL_LOCATIONS - :domestic_school - when *FOREIGN_SCHOOL_LOCATIONS - :foreign_school - else - :unknown_school_location + when *DOMESTIC_SCHOOL_LOCATIONS + :domestic_school + when *FOREIGN_SCHOOL_LOCATIONS + :foreign_school + else + :unknown_school_location end unless contact.adoption_status.blank? @@ -304,11 +312,11 @@ def cache_contact_and_school_data_in_user!(contact, school, user) let_sf_know_to_send_fac_ver_email = true SecurityLog.create!( - user: user, - application: nil, - remote_ip: nil, - event_type: :faculty_verified, - event_data: { user_id: user.id, salesforce_contact_id: contact.id } + user: user, + application: nil, + remote_ip: nil, + event_type: :faculty_verified, + event_data: { user_id: user.id, salesforce_contact_id: contact.id } ) end @@ -316,7 +324,7 @@ def cache_contact_and_school_data_in_user!(contact, school, user) if let_sf_know_to_send_fac_ver_email contact.update_attributes!( - send_faculty_verification_to: user.guessed_preferred_confirmed_email + send_faculty_verification_to: user.guessed_preferred_confirmed_email ) end end @@ -326,9 +334,9 @@ def error!(exception: nil, message: nil, user: nil) error[:message] = message || exception.try(:message) error[:exception] = { - class: exception.class.name, - message: exception.message, - first_backtrace_line: exception.backtrace.try(:first) + class: exception.class.name, + message: exception.message, + first_backtrace_line: exception.backtrace.try(:first) } if exception.present? error[:user] = user.id if user.present? @@ -349,9 +357,9 @@ def notify_errors if @allow_error_email && Settings::Salesforce.user_info_error_emails_enabled DevMailer.inspect_object( - object: @errors, - subject: "(#{Rails.application.secrets.environment_name}) UpdateUserSalesforceInfo errors", - to: Rails.application.secrets.salesforce[:mail_recipients] + object: @errors, + subject: "(#{Rails.application.secrets.environment_name}) UpdateUserSalesforceInfo errors", + to: Rails.application.secrets.salesforce[:mail_recipients] ).deliver_later end end diff --git a/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_alt_email.yml b/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_alt_email.yml index bb26a1625..e23223bc6 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_alt_email.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_alt_email.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:24 GMT + - Tue, 07 Sep 2021 19:25:29 GMT Set-Cookie: - - BrowserId=J6IaJfrtEeuMgE04-FnfFA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:24 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:24 GMT; Max-Age=31536000 + - BrowserId=XIStjRAREeykrGOIJOteTQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:29 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:29 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -34,7 +34,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2166/5000000 + - api-usage=19356/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -47,13 +47,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:24 GMT + recorded_at: Tue, 07 Sep 2021 19:25:29 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Jewel","LastName":"Hilpert_unique_token","Email_alt__c":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Lucio","LastName":"Rippin_unique_token","Email_alt__c":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -71,12 +71,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:24 GMT + - Tue, 07 Sep 2021 19:25:29 GMT Set-Cookie: - - BrowserId=J8qJi_rtEeuc-EHbgOCynA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:24 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:24 GMT; Max-Age=31536000 + - BrowserId=XKd3DhAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:29 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:29 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,9 +84,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2164/5000000 + - api-usage=19356/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000Tpki8QAB" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFtiQAH" Content-Type: - application/json;charset=UTF-8 Vary: @@ -95,9 +95,9 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000Tpki8QAB","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFtiQAH","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:26 GMT + recorded_at: Tue, 07 Sep 2021 19:25:31 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20BillingCity,%20BillingState,%20BillingCountry,%20Type,%20School_Location__c,%20SheerID_School_Name__c,%20K_I_P__c,%20child_of_kip__c%20FROM%20Account%20WHERE%20(RecordType.Name%20=%20%27School%27)%20AND%20(Name%20IN%20(%27JP%20University%27))" @@ -119,12 +119,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:27 GMT + - Tue, 07 Sep 2021 19:25:31 GMT Set-Cookie: - - BrowserId=KTsJC_rtEeuMgE04-FnfFA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:27 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:27 GMT; Max-Age=31536000 + - BrowserId=XbzfAxAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:31 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:31 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -132,7 +132,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2170/5000000 + - api-usage=19357/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -145,13 +145,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:27 GMT + recorded_at: Tue, 07 Sep 2021 19:25:31 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Cristopher","LastName":"Little_unique_token","Email_alt__c":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Elmer","LastName":"Adams_unique_token","Email_alt__c":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -169,12 +169,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:27 GMT + - Tue, 07 Sep 2021 19:25:31 GMT Set-Cookie: - - BrowserId=KVx0DPrtEeuu0bVvSTkIew; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:27 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:27 GMT; Max-Age=31536000 + - BrowserId=Xd5wzxAREeyEiwkEwhDRjg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:31 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:31 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -182,9 +182,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2170/5000000 + - api-usage=19356/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkiDQAR" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBDkzQAH" Content-Type: - application/json;charset=UTF-8 Vary: @@ -193,12 +193,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkiDQAR","success":true,"errors":[]}' + string: '{"id":"0034C00000VBDkzQAH","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:29 GMT + recorded_at: Tue, 07 Sep 2021 19:25:33 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -217,12 +217,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:29 GMT + - Tue, 07 Sep 2021 19:25:33 GMT Set-Cookie: - - BrowserId=KrIYmvrtEeury59SsgUN1w; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:29 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:29 GMT; Max-Age=31536000 + - BrowserId=Xw0tLxAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:33 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:33 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -230,7 +230,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2171/5000000 + - api-usage=19358/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -239,15 +239,15 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000Tpki8QAB"},"Id":"0034C00000Tpki8QAB","Email":null,"Email_alt__c":"f@f.com._unique_token","Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBDkzQAH"},"Id":"0034C00000VBDkzQAH","Email":null,"Email_alt__c":"f@f.com._unique_token","Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United - States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}},{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkiDQAR"},"Id":"0034C00000TpkiDQAR","Email":null,"Email_alt__c":"f@f.com._unique_token","Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not + States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}},{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFtiQAH"},"Id":"0034C00000VBFtiQAH","Email":null,"Email_alt__c":"f@f.com._unique_token","Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:29 GMT + recorded_at: Tue, 07 Sep 2021 19:25:33 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -269,12 +269,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:29 GMT + - Tue, 07 Sep 2021 19:25:33 GMT Set-Cookie: - - BrowserId=KvQEIvrtEeuMgE04-FnfFA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:29 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:29 GMT; Max-Age=31536000 + - BrowserId=XzK1kRAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:33 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:33 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -282,7 +282,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2171/5000000 + - api-usage=19358/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -293,5 +293,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:29 GMT + recorded_at: Tue, 07 Sep 2021 19:25:33 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_primary_and_alt_email.yml b/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_primary_and_alt_email.yml index 1cd13493b..e98a99f92 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_primary_and_alt_email.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/email_collisions/errors_and_doesn_t_link_when_two_contacts_with_same_primary_and_alt_email.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:30 GMT + - Tue, 07 Sep 2021 19:25:34 GMT Set-Cookie: - - BrowserId=KyN4m_rtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:30 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:30 GMT; Max-Age=31536000 + - BrowserId=X2OJqhAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:34 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:34 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -34,7 +34,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2168/5000000 + - api-usage=19359/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -47,13 +47,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:30 GMT + recorded_at: Tue, 07 Sep 2021 19:25:34 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Ingeborg","LastName":"Cummings_unique_token","Email":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Dino","LastName":"Russel_unique_token","Email":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -71,12 +71,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:30 GMT + - Tue, 07 Sep 2021 19:25:34 GMT Set-Cookie: - - BrowserId=K0r90frtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:30 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:30 GMT; Max-Age=31536000 + - BrowserId=X4QxRxAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:34 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:34 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,9 +84,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2169/5000000 + - api-usage=19356/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkiXQAR" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFuDQAX" Content-Type: - application/json;charset=UTF-8 Vary: @@ -95,9 +95,9 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkiXQAR","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFuDQAX","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:33 GMT + recorded_at: Tue, 07 Sep 2021 19:25:36 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20BillingCity,%20BillingState,%20BillingCountry,%20Type,%20School_Location__c,%20SheerID_School_Name__c,%20K_I_P__c,%20child_of_kip__c%20FROM%20Account%20WHERE%20(RecordType.Name%20=%20%27School%27)%20AND%20(Name%20IN%20(%27JP%20University%27))" @@ -119,12 +119,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:33 GMT + - Tue, 07 Sep 2021 19:25:36 GMT Set-Cookie: - - BrowserId=LRLsxfrtEeuYP4kk16NLsw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:33 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:33 GMT; Max-Age=31536000 + - BrowserId=YOxNFBAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:36 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:36 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -132,7 +132,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2167/5000000 + - api-usage=19360/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -145,13 +145,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:33 GMT + recorded_at: Tue, 07 Sep 2021 19:25:36 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Hyun","LastName":"Mante_unique_token","Email_alt__c":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Samatha","LastName":"Runolfsdottir_unique_token","Email_alt__c":"f@f.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -169,12 +169,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:33 GMT + - Tue, 07 Sep 2021 19:25:37 GMT Set-Cookie: - - BrowserId=LTmGxPrtEeuc-EHbgOCynA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:33 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:33 GMT; Max-Age=31536000 + - BrowserId=YQu8DhAREeyT2i0_EdJhRQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:37 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:37 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -182,9 +182,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2168/5000000 + - api-usage=19356/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkfZQAR" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFuIQAX" Content-Type: - application/json;charset=UTF-8 Vary: @@ -193,12 +193,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkfZQAR","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFuIQAX","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:35 GMT + recorded_at: Tue, 07 Sep 2021 19:25:38 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -217,12 +217,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:36 GMT + - Tue, 07 Sep 2021 19:25:39 GMT Set-Cookie: - - BrowserId=LrN9H_rtEeuMgE04-FnfFA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:36 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:36 GMT; Max-Age=31536000 + - BrowserId=YkF8RxAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -230,7 +230,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2175/5000000 + - api-usage=19361/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -239,15 +239,15 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkfZQAR"},"Id":"0034C00000TpkfZQAR","Email":null,"Email_alt__c":"f@f.com._unique_token","Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuIQAX"},"Id":"0034C00000VBFuIQAX","Email":null,"Email_alt__c":"f@f.com._unique_token","Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United - States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}},{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkiXQAR"},"Id":"0034C00000TpkiXQAR","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not + States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}},{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuDQAX"},"Id":"0034C00000VBFuDQAX","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:36 GMT + recorded_at: Tue, 07 Sep 2021 19:25:39 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -269,12 +269,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:36 GMT + - Tue, 07 Sep 2021 19:25:39 GMT Set-Cookie: - - BrowserId=LuAyefrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:36 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:36 GMT; Max-Age=31536000 + - BrowserId=YmSUuhAREeyT2i0_EdJhRQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -282,7 +282,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2173/5000000 + - api-usage=19357/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -293,5 +293,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:36 GMT + recorded_at: Tue, 07 Sep 2021 19:25:39 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/errors_when_multiple_SF_contacts_exist_for_one_user.yml b/spec/cassettes/UpdateUserSalesforceInfo/errors_when_multiple_SF_contacts_exist_for_one_user.yml index 0aa6af682..3fa064e2e 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/errors_when_multiple_SF_contacts_exist_for_one_user.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/errors_when_multiple_SF_contacts_exist_for_one_user.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:32 GMT + - Tue, 07 Sep 2021 19:25:20 GMT Set-Cookie: - - BrowserId=CILg_PrtEeuc-EHbgOCynA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:32 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:32 GMT; Max-Age=31536000 + - BrowserId=Vu0_TBAREeym6uXiRf_XAA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:20 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:20 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -34,7 +34,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19355/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -47,13 +47,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:32 GMT + recorded_at: Tue, 07 Sep 2021 19:25:20 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Allen","LastName":"Vandervort_unique_token","Email":"a@a.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Olen","LastName":"Nolan_unique_token","Email":"a@a.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -71,12 +71,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:42:32 GMT + - Tue, 07 Sep 2021 19:25:20 GMT Set-Cookie: - - BrowserId=CK5djvrtEeuUDcmi8hOj4g; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:32 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:32 GMT; Max-Age=31536000 + - BrowserId=Vx_o2RAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:20 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:20 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,9 +84,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19356/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000Tpkh5QAB" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFtTQAX" Content-Type: - application/json;charset=UTF-8 Vary: @@ -95,9 +95,9 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000Tpkh5QAB","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFtTQAX","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:34 GMT + recorded_at: Tue, 07 Sep 2021 19:25:25 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20BillingCity,%20BillingState,%20BillingCountry,%20Type,%20School_Location__c,%20SheerID_School_Name__c,%20K_I_P__c,%20child_of_kip__c%20FROM%20Account%20WHERE%20(RecordType.Name%20=%20%27School%27)%20AND%20(Name%20IN%20(%27JP%20University%27))" @@ -119,12 +119,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:35 GMT + - Tue, 07 Sep 2021 19:25:25 GMT Set-Cookie: - - BrowserId=CkpZy_rtEeurKn0LXrUOYw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:35 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:35 GMT; Max-Age=31536000 + - BrowserId=WkMhZhAREeytthE8spGkbA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:25 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:25 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -132,7 +132,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19356/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -145,13 +145,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:35 GMT + recorded_at: Tue, 07 Sep 2021 19:25:25 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Toni","LastName":"Mitchell_unique_token","Email":"b@b.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Isaiah","LastName":"Hilll_unique_token","Email":"b@b.com._unique_token","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -169,12 +169,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:42:35 GMT + - Tue, 07 Sep 2021 19:25:25 GMT Set-Cookie: - - BrowserId=Cm6qtvrtEeurKn0LXrUOYw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:35 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:35 GMT; Max-Age=31536000 + - BrowserId=WmXEnhAREeytthE8spGkbA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:25 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:25 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -182,9 +182,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2146/5000000 + - api-usage=19357/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkhFQAR" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFtYQAX" Content-Type: - application/json;charset=UTF-8 Vary: @@ -193,12 +193,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkhFQAR","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFtYQAX","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:38 GMT + recorded_at: Tue, 07 Sep 2021 19:25:28 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -217,12 +217,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:38 GMT + - Tue, 07 Sep 2021 19:25:28 GMT Set-Cookie: - - BrowserId=DGMoZ_rtEeuc0o2v04tsow; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:38 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:38 GMT; Max-Age=31536000 + - BrowserId=XCdLQBAREeytthE8spGkbA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:28 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:28 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -230,7 +230,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19358/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -239,15 +239,15 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000Tpkh5QAB"},"Id":"0034C00000Tpkh5QAB","Email":"a@a.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":2,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFtYQAX"},"Id":"0034C00000VBFtYQAX","Email":"b@b.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United - States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}},{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkhFQAR"},"Id":"0034C00000TpkhFQAR","Email":"b@b.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not + States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}},{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFtTQAX"},"Id":"0034C00000VBFtTQAX","Email":"a@a.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":null,"School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:38 GMT + recorded_at: Tue, 07 Sep 2021 19:25:28 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -269,12 +269,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:39 GMT + - Tue, 07 Sep 2021 19:25:29 GMT Set-Cookie: - - BrowserId=DJcJpfrtEeurKn0LXrUOYw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:39 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:39 GMT; Max-Age=31536000 + - BrowserId=XFFAnhAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:29 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:29 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -282,7 +282,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2147/5000000 + - api-usage=19357/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -293,5 +293,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:39 GMT + recorded_at: Tue, 07 Sep 2021 19:25:29 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/sf_setup.yml b/spec/cassettes/UpdateUserSalesforceInfo/sf_setup.yml index cdbc53f04..123d67d6c 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/sf_setup.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/sf_setup.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:30 GMT + - Tue, 07 Sep 2021 19:25:17 GMT Set-Cookie: - - BrowserId=B5N35_rtEeuXllHjnkDV-g; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:30 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=test.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:30 GMT; Max-Age=31536000 + - BrowserId=VT-2uhAREeywzNsl66n4vA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:17 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:0; domain=test.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:17 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Content-Type-Options: @@ -47,9 +47,9 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"access_token":"","instance_url":"","id":"","token_type":"Bearer","issued_at":"1628718151061","signature":""}' + string: '{"access_token":"","instance_url":"","id":"","token_type":"Bearer","issued_at":"1631042718425","signature":""}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:31 GMT + recorded_at: Tue, 07 Sep 2021 19:25:18 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20BillingCity,%20BillingState,%20BillingCountry,%20Type,%20School_Location__c,%20SheerID_School_Name__c,%20K_I_P__c,%20child_of_kip__c%20FROM%20Account%20WHERE%20(RecordType.Name%20=%20%27School%27)%20AND%20(Name%20IN%20(%27JP%20University%27))" @@ -71,12 +71,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:31 GMT + - Tue, 07 Sep 2021 19:25:19 GMT Set-Cookie: - - BrowserId=CCdSqPrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:31 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:31 GMT; Max-Age=31536000 + - BrowserId=Vn5RYBAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:19 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:19 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,7 +84,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19355/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -97,5 +97,5 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:31 GMT + recorded_at: Tue, 07 Sep 2021 19:25:19 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_not_cache_info_when_not_previously_linked.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_not_cache_info_when_not_previously_linked.yml index c9524b123..785b06682 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_not_cache_info_when_not_previously_linked.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_not_cache_info_when_not_previously_linked.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:50 GMT + - Tue, 07 Sep 2021 19:25:39 GMT Set-Cookie: - - BrowserId=EyVZ2frtEeuUDcmi8hOj4g; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:50 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:50 GMT; Max-Age=31536000 + - BrowserId=YpBgexAREeykrGOIJOteTQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -34,7 +34,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2146/5000000 + - api-usage=19357/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -47,13 +47,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:49 GMT + recorded_at: Tue, 07 Sep 2021 19:25:39 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Shanice","LastName":"Mayer_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Kenneth","LastName":"Kassulke_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -71,12 +71,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:42:50 GMT + - Tue, 07 Sep 2021 19:25:39 GMT Set-Cookie: - - BrowserId=E0924frtEeuu0bVvSTkIew; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:50 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:50 GMT; Max-Age=31536000 + - BrowserId=YrasexAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:39 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,9 +84,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19359/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkeZQAR" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFuNQAX" Content-Type: - application/json;charset=UTF-8 Vary: @@ -95,12 +95,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkeZQAR","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFuNQAX","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:52 GMT + recorded_at: Tue, 07 Sep 2021 19:25:41 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -119,12 +119,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:52 GMT + - Tue, 07 Sep 2021 19:25:41 GMT Set-Cookie: - - BrowserId=FOrXqPrtEeuMgE04-FnfFA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:53 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:53 GMT; Max-Age=31536000 + - BrowserId=Y-ahpRAREeyR3U8qf11XZA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:41 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:41 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -132,7 +132,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19356/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -141,12 +141,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkeZQAR"},"Id":"0034C00000TpkeZQAR","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuNQAX"},"Id":"0034C00000VBFuNQAX","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:53 GMT + recorded_at: Tue, 07 Sep 2021 19:25:41 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -168,12 +168,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:53 GMT + - Tue, 07 Sep 2021 19:25:42 GMT Set-Cookie: - - BrowserId=FSNMU_rtEeury59SsgUN1w; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:53 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:53 GMT; Max-Age=31536000 + - BrowserId=ZA8QSRAREeyfq01hx4UtTA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:42 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:42 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -181,7 +181,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19357/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -192,5 +192,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:53 GMT + recorded_at: Tue, 07 Sep 2021 19:25:42 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_update_info_when_previously_linked.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_update_info_when_previously_linked.yml index 77ab5c10b..8d4e8ef8a 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_update_info_when_previously_linked.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/contact_exists/does_update_info_when_previously_linked.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:44 GMT + - Tue, 07 Sep 2021 19:25:42 GMT Set-Cookie: - - BrowserId=D-_3wfrtEeuYP4kk16NLsw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 + - BrowserId=ZEMZeRAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:42 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:42 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -34,7 +34,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19357/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -47,13 +47,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:44 GMT + recorded_at: Tue, 07 Sep 2021 19:25:42 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Milly","LastName":"Heathcote_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Bruna","LastName":"Sporer_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -71,12 +71,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:42:44 GMT + - Tue, 07 Sep 2021 19:25:42 GMT Set-Cookie: - - BrowserId=EBaTf_rtEeuc0o2v04tsow; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 + - BrowserId=ZGMj0RAREeyfq01hx4UtTA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:42 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:42 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,9 +84,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2146/5000000 + - api-usage=19358/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkhUQAR" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFuSQAX" Content-Type: - application/json;charset=UTF-8 Vary: @@ -95,12 +95,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkhUQAR","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFuSQAX","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:47 GMT + recorded_at: Tue, 07 Sep 2021 19:25:44 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -119,12 +119,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:47 GMT + - Tue, 07 Sep 2021 19:25:44 GMT Set-Cookie: - - BrowserId=EZFL5_rtEeurKn0LXrUOYw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:47 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:47 GMT; Max-Age=31536000 + - BrowserId=ZcJmGhAREeym6uXiRf_XAA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:44 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:44 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -132,7 +132,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2148/5000000 + - api-usage=19358/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -141,15 +141,15 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkhUQAR"},"Id":"0034C00000TpkhUQAR","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuSQAX"},"Id":"0034C00000VBFuSQAX","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:47 GMT + recorded_at: Tue, 07 Sep 2021 19:25:44 GMT - request: method: patch - uri: "/services/data/v51.0/sobjects/Contact/0034C00000TpkhUQAR" + uri: "/services/data/v51.0/sobjects/Contact/0034C00000VBFuSQAX" body: encoding: UTF-8 string: "{}" @@ -170,12 +170,12 @@ http_interactions: message: No Content headers: Date: - - Wed, 11 Aug 2021 21:42:47 GMT + - Tue, 07 Sep 2021 19:25:45 GMT Set-Cookie: - - BrowserId=EcGD_PrtEeuS7itdC-p5gw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:47 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:47 GMT; Max-Age=31536000 + - BrowserId=Ze3inxAREeyT2i0_EdJhRQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:45 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:45 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -183,12 +183,12 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2145/5000000 + - api-usage=19359/5000000 body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:49 GMT + recorded_at: Tue, 07 Sep 2021 19:25:46 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -210,12 +210,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:49 GMT + - Tue, 07 Sep 2021 19:25:46 GMT Set-Cookie: - - BrowserId=EvYL5PrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:49 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:49 GMT; Max-Age=31536000 + - BrowserId=ZtRLoBAREeyR3U8qf11XZA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:46 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:46 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -223,7 +223,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2148/5000000 + - api-usage=19358/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -234,5 +234,5 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:49 GMT + recorded_at: Tue, 07 Sep 2021 19:25:46 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/lead_exists/does_not_cache_info_when_not_previously_linked.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/lead_exists/does_not_cache_info_when_not_previously_linked.yml index d0d123dcf..5a17e4f04 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/lead_exists/does_not_cache_info_when_not_previously_linked.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_unverified_email/lead_exists/does_not_cache_info_when_not_previously_linked.yml @@ -5,7 +5,7 @@ http_interactions: uri: "/services/data/v51.0/sobjects/Lead" body: encoding: UTF-8 - string: '{"LastName":"Kilback_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC + string: '{"LastName":"Wisozk_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC Faculty"}' headers: User-Agent: @@ -24,12 +24,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:42:39 GMT + - Tue, 07 Sep 2021 19:25:46 GMT Set-Cookie: - - BrowserId=DNGhOPrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:39 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:39 GMT; Max-Age=31536000 + - BrowserId=ZvqX-RAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:46 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:46 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -37,9 +37,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2146/5000000 + - api-usage=19363/5000000 Location: - - "/services/data/v51.0/sobjects/Lead/00Q4C000009jEg3UAE" + - "/services/data/v51.0/sobjects/Lead/00Q4C000009lVHGUA2" Content-Type: - application/json;charset=UTF-8 Vary: @@ -48,12 +48,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"00Q4C000009jEg3UAE","success":true,"errors":[]}' + string: '{"id":"00Q4C000009lVHGUA2","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:43 GMT + recorded_at: Tue, 07 Sep 2021 19:25:51 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -72,12 +72,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:44 GMT + - Tue, 07 Sep 2021 19:25:51 GMT Set-Cookie: - - BrowserId=D5ZmSPrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 + - BrowserId=acEKshAREeytthE8spGkbA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:51 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:51 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -85,7 +85,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2147/5000000 + - api-usage=19363/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -96,7 +96,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:44 GMT + recorded_at: Tue, 07 Sep 2021 19:25:51 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -118,12 +118,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:44 GMT + - Tue, 07 Sep 2021 19:25:51 GMT Set-Cookie: - - BrowserId=D75gdPrtEeuc-EHbgOCynA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:44 GMT; Max-Age=31536000 + - BrowserId=aeSYqBAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:51 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:51 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -131,7 +131,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2146/5000000 + - api-usage=19361/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -140,7 +140,7 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009jEg3UAE"},"Id":"00Q4C000009jEg3UAE","Email":"f@f.com._unique_token"}]}' + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009lVHGUA2"},"Id":"00Q4C000009lVHGUA2","Email":"f@f.com._unique_token"}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:44 GMT + recorded_at: Tue, 07 Sep 2021 19:25:51 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/caches_info_in_user_when_not_previously_linked.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/caches_info_in_user_when_not_previously_linked.yml index cdef22a8e..cca5046f9 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/caches_info_in_user_when_not_previously_linked.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/caches_info_in_user_when_not_previously_linked.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:12 GMT + - Tue, 07 Sep 2021 19:26:02 GMT Set-Cookie: - - BrowserId=IFtPOfrtEeuMgE04-FnfFA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:12 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:12 GMT; Max-Age=31536000 + - BrowserId=cCRTeRAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:02 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:02 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -34,7 +34,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2154/5000000 + - api-usage=19369/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -47,13 +47,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:12 GMT + recorded_at: Tue, 07 Sep 2021 19:26:02 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Catrice","LastName":"Cummerata_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Evita","LastName":"Dietrich_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -71,12 +71,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:12 GMT + - Tue, 07 Sep 2021 19:26:02 GMT Set-Cookie: - - BrowserId=IH-gDvrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:12 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:12 GMT; Max-Age=31536000 + - BrowserId=cEkZmBAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:02 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:02 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,9 +84,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2159/5000000 + - api-usage=19370/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkfeQAB" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFuhQAH" Content-Type: - application/json;charset=UTF-8 Vary: @@ -95,12 +95,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkfeQAB","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFuhQAH","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:15 GMT + recorded_at: Tue, 07 Sep 2021 19:26:04 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -119,12 +119,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:15 GMT + - Tue, 07 Sep 2021 19:26:04 GMT Set-Cookie: - - BrowserId=IpTqyPrtEeuS7itdC-p5gw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:15 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:15 GMT; Max-Age=31536000 + - BrowserId=cWFnZhAREeykrGOIJOteTQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:04 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:04 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -132,7 +132,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2156/5000000 + - api-usage=19366/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -141,15 +141,15 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkfeQAB"},"Id":"0034C00000TpkfeQAB","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuhQAH"},"Id":"0034C00000VBFuhQAH","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:16 GMT + recorded_at: Tue, 07 Sep 2021 19:26:04 GMT - request: method: patch - uri: "/services/data/v51.0/sobjects/Contact/0034C00000TpkfeQAB" + uri: "/services/data/v51.0/sobjects/Contact/0034C00000VBFuhQAH" body: encoding: UTF-8 string: '{"SendFacultyVerificationTo__c":"f@f.com._unique_token"}' @@ -170,12 +170,12 @@ http_interactions: message: No Content headers: Date: - - Wed, 11 Aug 2021 21:43:16 GMT + - Tue, 07 Sep 2021 19:26:04 GMT Set-Cookie: - - BrowserId=Ivz7zfrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:16 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:16 GMT; Max-Age=31536000 + - BrowserId=cbN-1BAREeyfq01hx4UtTA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:04 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:04 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -183,12 +183,12 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2160/5000000 + - api-usage=19366/5000000 body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:18 GMT + recorded_at: Tue, 07 Sep 2021 19:26:06 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -210,12 +210,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:18 GMT + - Tue, 07 Sep 2021 19:26:06 GMT Set-Cookie: - - BrowserId=JBiknvrtEeuu0bVvSTkIew; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:18 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:18 GMT; Max-Age=31536000 + - BrowserId=crzY9xAREeyfq01hx4UtTA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:06 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:06 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -223,7 +223,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2154/5000000 + - api-usage=19367/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -234,10 +234,10 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:18 GMT + recorded_at: Tue, 07 Sep 2021 19:26:06 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20FirstName,%20LastName,%20Email,%20Email_alt__c,%20Faculty_Confirmed_Date__c,%20Faculty_Verified__c,%20LastModifiedDate,%20AccountId,%20School_Type__c,%20SendFacultyVerificationTo__c,%20All_Emails__c,%20Confirmed_Emails__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20BRI_Marketing__c,%20Title_1_school__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(Id%20=%20%270034C00000TpkfeQAB%27)%20LIMIT%201" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20FirstName,%20LastName,%20Email,%20Email_alt__c,%20Faculty_Confirmed_Date__c,%20Faculty_Verified__c,%20LastModifiedDate,%20AccountId,%20School_Type__c,%20SendFacultyVerificationTo__c,%20All_Emails__c,%20Confirmed_Emails__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20BRI_Marketing__c,%20Title_1_school__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(Id%20=%20%270034C00000VBFuhQAH%27)%20LIMIT%201" body: encoding: US-ASCII string: '' @@ -256,12 +256,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:18 GMT + - Tue, 07 Sep 2021 19:26:06 GMT Set-Cookie: - - BrowserId=JEADA_rtEeuUDcmi8hOj4g; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:18 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:18 GMT; Max-Age=31536000 + - BrowserId=ct2AgBAREeym6uXiRf_XAA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:06 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:06 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -269,7 +269,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2154/5000000 + - api-usage=19367/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -278,9 +278,9 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkfeQAB"},"Id":"0034C00000TpkfeQAB","Name":"Catrice - Cummerata_unique_token","FirstName":"Catrice","LastName":"Cummerata_unique_token","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Confirmed_Date__c":null,"Faculty_Verified__c":"Confirmed","LastModifiedDate":"2021-08-11T21:43:17.000+0000","AccountId":"0014C00000aCkDUQA0","School_Type__c":null,"SendFacultyVerificationTo__c":"f@f.com._unique_token","All_Emails__c":"f@f.com._unique_token","Confirmed_Emails__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuhQAH"},"Id":"0034C00000VBFuhQAH","Name":"Evita + Dietrich_unique_token","FirstName":"Evita","LastName":"Dietrich_unique_token","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Confirmed_Date__c":null,"Faculty_Verified__c":"Confirmed","LastModifiedDate":"2021-09-07T19:26:06.000+0000","AccountId":"0014C00000aCkDUQA0","School_Type__c":null,"SendFacultyVerificationTo__c":"f@f.com._unique_token","All_Emails__c":"f@f.com._unique_token","Confirmed_Emails__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"BRI_Marketing__c":false,"Title_1_school__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:18 GMT + recorded_at: Tue, 07 Sep 2021 19:26:06 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/updates_info_in_user_when_previously_linked.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/updates_info_in_user_when_previously_linked.yml index 594566d29..0c881ebd2 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/updates_info_in_user_when_previously_linked.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/contact_exists/updates_info_in_user_when_previously_linked.yml @@ -21,12 +21,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:19 GMT + - Tue, 07 Sep 2021 19:26:07 GMT Set-Cookie: - - BrowserId=JG3JnfrtEeuu0bVvSTkIew; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:19 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:19 GMT; Max-Age=31536000 + - BrowserId=cxIlThAREeykrGOIJOteTQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:07 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:07 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -34,7 +34,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2155/5000000 + - api-usage=19367/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -47,13 +47,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:18 GMT + recorded_at: Tue, 07 Sep 2021 19:26:07 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Dominique","LastName":"Trantow_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Mike","LastName":"Murazik_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -71,12 +71,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:19 GMT + - Tue, 07 Sep 2021 19:26:07 GMT Set-Cookie: - - BrowserId=JJF-lvrtEeuc0o2v04tsow; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:19 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:19 GMT; Max-Age=31536000 + - BrowserId=czO2sBAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:07 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:07 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -84,9 +84,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2155/5000000 + - api-usage=19369/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000Tpki3QAB" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFuEQAX" Content-Type: - application/json;charset=UTF-8 Vary: @@ -95,12 +95,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000Tpki3QAB","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFuEQAX","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:20 GMT + recorded_at: Tue, 07 Sep 2021 19:26:09 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -119,12 +119,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:21 GMT + - Tue, 07 Sep 2021 19:26:09 GMT Set-Cookie: - - BrowserId=Jb_FrPrtEeury59SsgUN1w; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:21 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:21 GMT; Max-Age=31536000 + - BrowserId=dFQbKhAREeyEiwkEwhDRjg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:09 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:09 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -132,7 +132,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2154/5000000 + - api-usage=19366/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -141,15 +141,15 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000Tpki3QAB"},"Id":"0034C00000Tpki3QAB","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuEQAX"},"Id":"0034C00000VBFuEQAX","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:21 GMT + recorded_at: Tue, 07 Sep 2021 19:26:09 GMT - request: method: patch - uri: "/services/data/v51.0/sobjects/Contact/0034C00000Tpki3QAB" + uri: "/services/data/v51.0/sobjects/Contact/0034C00000VBFuEQAX" body: encoding: UTF-8 string: '{"SendFacultyVerificationTo__c":"f@f.com._unique_token"}' @@ -170,12 +170,12 @@ http_interactions: message: No Content headers: Date: - - Wed, 11 Aug 2021 21:43:21 GMT + - Tue, 07 Sep 2021 19:26:09 GMT Set-Cookie: - - BrowserId=JeuQCvrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:21 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:21 GMT; Max-Age=31536000 + - BrowserId=dHrdFxAREeyT2i0_EdJhRQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:09 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:09 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -183,12 +183,12 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2161/5000000 + - api-usage=19365/5000000 body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:23 GMT + recorded_at: Tue, 07 Sep 2021 19:26:11 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -210,12 +210,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:23 GMT + - Tue, 07 Sep 2021 19:26:11 GMT Set-Cookie: - - BrowserId=J1UyG_rtEeury59SsgUN1w; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:23 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:23 GMT; Max-Age=31536000 + - BrowserId=dZygbhAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:11 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:11 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -223,7 +223,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2166/5000000 + - api-usage=19370/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -234,10 +234,10 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:23 GMT + recorded_at: Tue, 07 Sep 2021 19:26:11 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20FirstName,%20LastName,%20Email,%20Email_alt__c,%20Faculty_Confirmed_Date__c,%20Faculty_Verified__c,%20LastModifiedDate,%20AccountId,%20School_Type__c,%20SendFacultyVerificationTo__c,%20All_Emails__c,%20Confirmed_Emails__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20BRI_Marketing__c,%20Title_1_school__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(Id%20=%20%270034C00000Tpki3QAB%27)%20LIMIT%201" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20FirstName,%20LastName,%20Email,%20Email_alt__c,%20Faculty_Confirmed_Date__c,%20Faculty_Verified__c,%20LastModifiedDate,%20AccountId,%20School_Type__c,%20SendFacultyVerificationTo__c,%20All_Emails__c,%20Confirmed_Emails__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20BRI_Marketing__c,%20Title_1_school__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(Id%20=%20%270034C00000VBFuEQAX%27)%20LIMIT%201" body: encoding: US-ASCII string: '' @@ -256,12 +256,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:24 GMT + - Tue, 07 Sep 2021 19:26:11 GMT Set-Cookie: - - BrowserId=J3k04_rtEeury59SsgUN1w; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:24 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:24 GMT; Max-Age=31536000 + - BrowserId=dbw2mRAREeyfq01hx4UtTA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:11 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:11 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -269,7 +269,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2167/5000000 + - api-usage=19368/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -278,9 +278,9 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000Tpki3QAB"},"Id":"0034C00000Tpki3QAB","Name":"Dominique - Trantow_unique_token","FirstName":"Dominique","LastName":"Trantow_unique_token","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Confirmed_Date__c":null,"Faculty_Verified__c":"Confirmed","LastModifiedDate":"2021-08-11T21:43:23.000+0000","AccountId":"0014C00000aCkDUQA0","School_Type__c":null,"SendFacultyVerificationTo__c":"f@f.com._unique_token","All_Emails__c":"f@f.com._unique_token","Confirmed_Emails__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFuEQAX"},"Id":"0034C00000VBFuEQAX","Name":"Mike + Murazik_unique_token","FirstName":"Mike","LastName":"Murazik_unique_token","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Confirmed_Date__c":null,"Faculty_Verified__c":"Confirmed","LastModifiedDate":"2021-09-07T19:26:11.000+0000","AccountId":"0014C00000aCkDUQA0","School_Type__c":null,"SendFacultyVerificationTo__c":"f@f.com._unique_token","All_Emails__c":"f@f.com._unique_token","Confirmed_Emails__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"BRI_Marketing__c":false,"Title_1_school__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:24 GMT + recorded_at: Tue, 07 Sep 2021 19:26:11 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_if_email_doesn_t_match.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_if_email_doesn_t_match.yml index 03766bd35..b98432ebe 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_if_email_doesn_t_match.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_if_email_doesn_t_match.yml @@ -5,7 +5,7 @@ http_interactions: uri: "/services/data/v51.0/sobjects/Lead" body: encoding: UTF-8 - string: '{"LastName":"Olson_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC + string: '{"LastName":"Heidenreich_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC Faculty"}' headers: User-Agent: @@ -24,12 +24,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:08 GMT + - Tue, 07 Sep 2021 19:25:52 GMT Set-Cookie: - - BrowserId=Hj7-KPrtEeuc-EHbgOCynA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:08 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:08 GMT; Max-Age=31536000 + - BrowserId=ag1WORAREeyFbC2nqlswyg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:52 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:52 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -37,9 +37,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2155/5000000 + - api-usage=19364/5000000 Location: - - "/services/data/v51.0/sobjects/Lead/00Q4C000009jEgIUAU" + - "/services/data/v51.0/sobjects/Lead/00Q4C000009lVHLUA2" Content-Type: - application/json;charset=UTF-8 Vary: @@ -48,12 +48,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"00Q4C000009jEgIUAU","success":true,"errors":[]}' + string: '{"id":"00Q4C000009lVHLUA2","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:11 GMT + recorded_at: Tue, 07 Sep 2021 19:25:53 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -72,12 +72,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:11 GMT + - Tue, 07 Sep 2021 19:25:53 GMT Set-Cookie: - - BrowserId=IAQHGfrtEeuS7itdC-p5gw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:11 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:11 GMT; Max-Age=31536000 + - BrowserId=aveOxxAREeyR3U8qf11XZA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:53 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:53 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -85,7 +85,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2155/5000000 + - api-usage=19362/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -96,7 +96,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:11 GMT + recorded_at: Tue, 07 Sep 2021 19:25:53 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -118,12 +118,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:11 GMT + - Tue, 07 Sep 2021 19:25:53 GMT Set-Cookie: - - BrowserId=IDGm2vrtEeuYP4kk16NLsw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:11 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:11 GMT; Max-Age=31536000 + - BrowserId=axrO2BAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:53 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:53 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -131,7 +131,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2155/5000000 + - api-usage=19367/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -140,7 +140,7 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009jEgIUAU"},"Id":"00Q4C000009jEgIUAU","Email":"f@f.com._unique_token"}]}' + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009lVHLUA2"},"Id":"00Q4C000009lVHLUA2","Email":"f@f.com._unique_token"}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:11 GMT + recorded_at: Tue, 07 Sep 2021 19:25:53 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_user_to_lead_status_if_user_already_has_SF_contact_ID.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_user_to_lead_status_if_user_already_has_SF_contact_ID.yml index 5870ab90c..42e4dd4a4 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_user_to_lead_status_if_user_already_has_SF_contact_ID.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/does_not_update_user_to_lead_status_if_user_already_has_SF_contact_ID.yml @@ -5,7 +5,7 @@ http_interactions: uri: "/services/data/v51.0/sobjects/Lead" body: encoding: UTF-8 - string: '{"LastName":"Mitchell_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC + string: '{"LastName":"Haag_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC Faculty"}' headers: User-Agent: @@ -24,12 +24,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:42:53 GMT + - Tue, 07 Sep 2021 19:25:54 GMT Set-Cookie: - - BrowserId=FVETGfrtEeuUDcmi8hOj4g; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:53 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:53 GMT; Max-Age=31536000 + - BrowserId=az9GBRAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:54 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:54 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -37,9 +37,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2147/5000000 + - api-usage=19362/5000000 Location: - - "/services/data/v51.0/sobjects/Lead/00Q4C000009jEg8UAE" + - "/services/data/v51.0/sobjects/Lead/00Q4C000009lVHQUA2" Content-Type: - application/json;charset=UTF-8 Vary: @@ -48,9 +48,9 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"00Q4C000009jEg8UAE","success":true,"errors":[]}' + string: '{"id":"00Q4C000009lVHQUA2","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:56 GMT + recorded_at: Tue, 07 Sep 2021 19:25:55 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Name,%20BillingCity,%20BillingState,%20BillingCountry,%20Type,%20School_Location__c,%20SheerID_School_Name__c,%20K_I_P__c,%20child_of_kip__c%20FROM%20Account%20WHERE%20(RecordType.Name%20=%20%27School%27)%20AND%20(Name%20IN%20(%27JP%20University%27))" @@ -72,12 +72,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:42:56 GMT + - Tue, 07 Sep 2021 19:25:55 GMT Set-Cookie: - - BrowserId=FujJxvrtEeuS7itdC-p5gw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:56 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:56 GMT; Max-Age=31536000 + - BrowserId=bDNqLBAREeyEiwkEwhDRjg; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:55 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:55 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -85,7 +85,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2146/5000000 + - api-usage=19361/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -98,13 +98,13 @@ http_interactions: University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:42:56 GMT + recorded_at: Tue, 07 Sep 2021 19:25:55 GMT - request: method: post uri: "/services/data/v51.0/sobjects/Contact" body: encoding: UTF-8 - string: '{"FirstName":"Gabriel","LastName":"Kunze_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' + string: '{"FirstName":"Katia","LastName":"Herzog_unique_token","Email":"f@f.com._unique_token","Faculty_Verified__c":"Confirmed","AccountId":"0014C00000aCkDUQA0"}' headers: User-Agent: - Faraday v1.0.1 @@ -122,12 +122,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:42:58 GMT + - Tue, 07 Sep 2021 19:25:55 GMT Set-Cookie: - - BrowserId=GH76tfrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:59 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:42:59 GMT; Max-Age=31536000 + - BrowserId=bFT7-xAREeyT2i0_EdJhRQ; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:55 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:55 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -135,9 +135,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2149/5000000 + - api-usage=19360/5000000 Location: - - "/services/data/v51.0/sobjects/Contact/0034C00000TpkhjQAB" + - "/services/data/v51.0/sobjects/Contact/0034C00000VBFucQAH" Content-Type: - application/json;charset=UTF-8 Vary: @@ -146,12 +146,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"0034C00000TpkhjQAB","success":true,"errors":[]}' + string: '{"id":"0034C00000VBFucQAH","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:01 GMT + recorded_at: Tue, 07 Sep 2021 19:25:57 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -170,12 +170,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:01 GMT + - Tue, 07 Sep 2021 19:25:58 GMT Set-Cookie: - - BrowserId=GhaK5_rtEeuYP4kk16NLsw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:01 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:01 GMT; Max-Age=31536000 + - BrowserId=bZqb1xAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:58 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:58 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -183,7 +183,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2150/5000000 + - api-usage=19367/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -192,15 +192,15 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000TpkhjQAB"},"Id":"0034C00000TpkhjQAB","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/v51.0/sobjects/Contact/0034C00000VBFucQAH"},"Id":"0034C00000VBFucQAH","Email":"f@f.com._unique_token","Email_alt__c":null,"Faculty_Verified__c":"Confirmed","School_Type__c":null,"Adoption_Status__c":"Not Adopter","Grant_Tutor_Access__c":false,"Account":{"attributes":{"type":"Account","url":"/services/data/v51.0/sobjects/Account/0014C00000aCkDUQA0"},"Id":"0014C00000aCkDUQA0","Name":"JP University","BillingCity":null,"BillingState":null,"BillingCountry":"United States","Type":null,"School_Location__c":"Domestic","SheerID_School_Name__c":null,"K_I_P__c":false,"child_of_kip__c":false}}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:01 GMT + recorded_at: Tue, 07 Sep 2021 19:25:58 GMT - request: method: patch - uri: "/services/data/v51.0/sobjects/Contact/0034C00000TpkhjQAB" + uri: "/services/data/v51.0/sobjects/Contact/0034C00000VBFucQAH" body: encoding: UTF-8 string: '{"SendFacultyVerificationTo__c":"f@f.com._unique_token"}' @@ -221,12 +221,12 @@ http_interactions: message: No Content headers: Date: - - Wed, 11 Aug 2021 21:43:01 GMT + - Tue, 07 Sep 2021 19:25:58 GMT Set-Cookie: - - BrowserId=Gj6sJPrtEeurKn0LXrUOYw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:01 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:01 GMT; Max-Age=31536000 + - BrowserId=bb1l6hAREeyIJTvfUxhJnw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:58 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:58 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -234,12 +234,12 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2149/5000000 + - api-usage=19372/5000000 body: encoding: UTF-8 string: '' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:04 GMT + recorded_at: Tue, 07 Sep 2021 19:25:59 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -261,12 +261,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:04 GMT + - Tue, 07 Sep 2021 19:25:59 GMT Set-Cookie: - - BrowserId=G_a8TfrtEeuzzk1xOLwGKA; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:04 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:04 GMT; Max-Age=31536000 + - BrowserId=brQhrhAREeym6uXiRf_XAA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:59 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:25:59 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -274,7 +274,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2157/5000000 + - api-usage=19366/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -283,7 +283,7 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009jEg8UAE"},"Id":"00Q4C000009jEg8UAE","Email":"f@f.com._unique_token"}]}' + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009lVHQUA2"},"Id":"00Q4C000009lVHQUA2","Email":"f@f.com._unique_token"}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:04 GMT + recorded_at: Tue, 07 Sep 2021 19:25:59 GMT recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/updates_user_status_when_not_previously_linked.yml b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/updates_user_status_when_not_previously_linked.yml index 8eebacc85..898bee90d 100644 --- a/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/updates_user_status_when_not_previously_linked.yml +++ b/spec/cassettes/UpdateUserSalesforceInfo/user_with_verified_email/lead_exists/updates_user_status_when_not_previously_linked.yml @@ -5,7 +5,7 @@ http_interactions: uri: "/services/data/v51.0/sobjects/Lead" body: encoding: UTF-8 - string: '{"LastName":"Stroman_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC + string: '{"LastName":"Fadel_unique_token","Company":"JP University","Email":"f@f.com._unique_token","LeadSource":"OSC Faculty"}' headers: User-Agent: @@ -24,12 +24,12 @@ http_interactions: message: Created headers: Date: - - Wed, 11 Aug 2021 21:43:05 GMT + - Tue, 07 Sep 2021 19:26:00 GMT Set-Cookie: - - BrowserId=HCNKJ_rtEeuUDcmi8hOj4g; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:05 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:05 GMT; Max-Age=31536000 + - BrowserId=buFMsRAREeytthE8spGkbA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:00 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:00 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -37,9 +37,9 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2152/5000000 + - api-usage=19364/5000000 Location: - - "/services/data/v51.0/sobjects/Lead/00Q4C000009jEgDUAU" + - "/services/data/v51.0/sobjects/Lead/00Q4C000009lVHVUA2" Content-Type: - application/json;charset=UTF-8 Vary: @@ -48,12 +48,12 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"id":"00Q4C000009jEgDUAU","success":true,"errors":[]}' + string: '{"id":"00Q4C000009lVHVUA2","success":true,"errors":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:07 GMT + recorded_at: Tue, 07 Sep 2021 19:26:01 GMT - request: method: get - uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20ORDER%20BY%20id%20LIMIT%20250" + uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email,%20Email_alt__c,%20Faculty_Verified__c,%20School_Type__c,%20Adoption_Status__c,%20Grant_Tutor_Access__c,%20Account.Id,%20Account.Name,%20Account.BillingCity,%20Account.BillingState,%20Account.BillingCountry,%20Account.Type,%20Account.School_Location__c,%20Account.SheerID_School_Name__c,%20Account.K_I_P__c,%20Account.child_of_kip__c%20FROM%20Contact%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)" body: encoding: US-ASCII string: '' @@ -72,12 +72,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:08 GMT + - Tue, 07 Sep 2021 19:26:01 GMT Set-Cookie: - - BrowserId=HekWnfrtEeurKn0LXrUOYw; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:08 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:08 GMT; Max-Age=31536000 + - BrowserId=b9eS0xAREeytthE8spGkbA; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:01 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:01 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -85,7 +85,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2154/5000000 + - api-usage=19365/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -96,7 +96,7 @@ http_interactions: encoding: ASCII-8BIT string: '{"totalSize":0,"done":true,"records":[]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:08 GMT + recorded_at: Tue, 07 Sep 2021 19:26:01 GMT - request: method: get uri: "/services/data/v51.0/query?q=SELECT%20Id,%20Email%20FROM%20Lead%20WHERE%20(LastName%20LIKE%20%27%25_unique_token%27)%20AND%20(LeadSource%20=%20%27OSC%20Faculty%27)" @@ -118,12 +118,12 @@ http_interactions: message: OK headers: Date: - - Wed, 11 Aug 2021 21:43:08 GMT + - Tue, 07 Sep 2021 19:26:02 GMT Set-Cookie: - - BrowserId=Hg-KJvrtEeuu0bVvSTkIew; domain=.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:08 GMT; Max-Age=31536000 - - CookieConsentPolicy=0:0; domain=openstax--dev.my.salesforce.com; path=/; expires=Thu, - 11-Aug-2022 21:43:08 GMT; Max-Age=31536000 + - BrowserId=b_kk-BAREeyu4EEIjZdpAw; domain=.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:02 GMT; Max-Age=31536000 + - CookieConsentPolicy=0:1; domain=openstax--dev.my.salesforce.com; path=/; expires=Wed, + 07-Sep-2022 19:26:02 GMT; Max-Age=31536000 Strict-Transport-Security: - max-age=31536000; includeSubDomains X-Robots-Tag: @@ -131,7 +131,7 @@ http_interactions: Cache-Control: - no-cache,must-revalidate,max-age=0,no-store,private Sforce-Limit-Info: - - api-usage=2153/5000000 + - api-usage=19368/5000000 Content-Type: - application/json;charset=UTF-8 Vary: @@ -140,7 +140,7 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009jEgDUAU"},"Id":"00Q4C000009jEgDUAU","Email":"f@f.com._unique_token"}]}' + string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Lead","url":"/services/data/v51.0/sobjects/Lead/00Q4C000009lVHVUA2"},"Id":"00Q4C000009lVHVUA2","Email":"f@f.com._unique_token"}]}' http_version: - recorded_at: Wed, 11 Aug 2021 21:43:08 GMT + recorded_at: Tue, 07 Sep 2021 19:26:02 GMT recorded_with: VCR 3.0.3 diff --git a/spec/features/salesforce/update_user_salesforce_info_spec.rb b/spec/features/salesforce/update_user_salesforce_info_spec.rb index c61cf3224..9254984d3 100644 --- a/spec/features/salesforce/update_user_salesforce_info_spec.rb +++ b/spec/features/salesforce/update_user_salesforce_info_spec.rb @@ -3,7 +3,7 @@ RSpec.describe "UpdateUserSalesforceInfo", vcr: VCR_OPTS do before(:all) do - VCR.use_cassette('UpdateUserSalesforceInfo/sf_setup', allow_unused_http_interactions: true) do + VCR.use_cassette('UpdateUserSalesforceInfo/sf_setup', VCR_OPTS) do @proxy = SalesforceProxy.new @proxy.setup_cassette @proxy.ensure_schools_exist(["JP University"]) diff --git a/spec/routines/update_user_salesforce_info_spec.rb b/spec/routines/update_user_salesforce_info_spec.rb index ac4a8175d..f006ee601 100644 --- a/spec/routines/update_user_salesforce_info_spec.rb +++ b/spec/routines/update_user_salesforce_info_spec.rb @@ -651,12 +651,13 @@ def stub_contacts(contacts) end assoc = instance_double(ActiveForce::ActiveQuery) - expect(OpenStax::Salesforce::Remote::Contact).to receive(:select).and_return(assoc) - expect(assoc).to receive(:order).and_return(assoc) - expect(assoc).to receive(:limit).and_return(assoc) - expect(assoc).to receive(:includes).and_return(assoc) - allow(assoc).to receive(:where).and_return(assoc) - expect(assoc).to receive(:to_a).and_return(contacts) + expect(OpenStax::Salesforce::Remote::Contact).to( + receive(:select).with( + :id, :email, :email_alt, :faculty_verified, + :school_type, :adoption_status, :grant_tutor_access + ).and_return(assoc) + ) + expect(assoc).to receive(:includes).with(:school).and_return(contacts) end def stub_leads(leads)