Skip to content

Salesforce Mocking + Unused Salesforce field cleanup#1632

Closed
mwvolo wants to merge 23 commits intomainfrom
sf-fields
Closed

Salesforce Mocking + Unused Salesforce field cleanup#1632
mwvolo wants to merge 23 commits intomainfrom
sf-fields

Conversation

@mwvolo
Copy link
Member

@mwvolo mwvolo commented May 7, 2025

Replace VCR with mocked Salesforce data (sanity change)
Removing unused fields from contact sync

@mwvolo mwvolo requested a review from Copilot May 7, 2025 16:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR aims to update Salesforce-related fields and adjust related functionality for user contact information.

  • Removed assignments for user.is_kip and user.grant_tutor_access in update_user_contact_info.rb
  • Commented out the ConfirmationMailer call in send_contact_info_confirmation.rb
  • Updated the openstax_salesforce gem dependency in Gemfile

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
app/routines/update_user_contact_info.rb Removed Salesforce field assignments that are no longer required
app/routines/send_contact_info_confirmation.rb Temporarily disabled sending confirmation emails by commenting out the mailer invocation
Gemfile Pinned the openstax_salesforce gem to a specific GitHub ref for a temporary solution
Comments suppressed due to low confidence (2)

app/routines/update_user_contact_info.rb:119

  • Confirm that the removal of the user.is_kip and user.grant_tutor_access assignments is fully intentional and that downstream logic does not rely on these fields. If these changes have broader implications, ensure that related documentation and tests are updated accordingly.
user.is_kip = sf_school&.is_kip || sf_school&.is_child_of_kip

app/routines/send_contact_info_confirmation.rb:19

  • If disabling the ConfirmationMailer call is intentional, consider removing the commented code or adding a clear inline comment explaining the temporary nature of this change.
ConfirmationMailer.instructions(email_address: contact_info, send_pin: send_pin).deliver_later

@mwvolo mwvolo requested a review from Copilot May 14, 2025 04:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the student signup flow and related Salesforce integration code. Key changes include:

  • Removal of VCR cassette usage and associated setup in the student signup flow test.
  • Modification of user contact info updates by removing assignments for is_kip and grant_tutor_access.
  • Change in dependency loading in the Puma configuration and addition of the concurrent-ruby gem.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
spec/features/newflow/student_signup_flow_spec.rb Removed VCR cassette usage and before(:all) block for SalesforceProxy setup
spec/cassettes/Newflow/Students/student_signup_flow/sf_setup.yml Removed unused cassette file
config/puma.rb Updated dotenv gem to use "dotenv/load"
app/routines/update_user_contact_info.rb Removed assignment of is_kip and grant_tutor_access fields
Gemfile Added concurrent-ruby gem
Comments suppressed due to low confidence (2)

spec/features/newflow/student_signup_flow_spec.rb:5

  • Removal of the VCR cassette setup may lead to tests executing real HTTP requests; ensure that external calls are appropriately stubbed or handled elsewhere to maintain reliable test behavior.
feature 'Student signup flow', js: true do

app/routines/update_user_contact_info.rb:119

  • The removal of assignments for user.is_kip and user.grant_tutor_access might impact downstream logic that relies on these fields; please confirm that this change aligns with the updated Salesforce field mappings.
user.is_kip = sf_school&.is_kip || sf_school&.is_child_of_kip

@openstax openstax deleted a comment from github-actions bot Jan 30, 2026
* Initial plan

* Update flash messages to match test expectations

Co-authored-by: mwvolo <3905516+mwvolo@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mwvolo <3905516+mwvolo@users.noreply.github.com>
@mwvolo
Copy link
Member Author

mwvolo commented Jan 31, 2026

@copilot let's remove the VCR cassettes and focus on testing the accounts application

Copy link
Contributor

Copilot AI commented Jan 31, 2026

@mwvolo I've opened a new pull request, #1700, to work on those changes. Once the pull request is ready, I'll request review from you.

@mwvolo mwvolo changed the title Sf fields Unused Salesforce field cleanup Jan 31, 2026
@mwvolo mwvolo changed the title Unused Salesforce field cleanup Salesforce Mocking + Unused Salesforce field cleanup Jan 31, 2026
@mwvolo mwvolo closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants