feat(checkout): CHECKOUT-10368 Migrate company address search to customer.activeCompany - #3379
Open
bc-peng wants to merge 1 commit into
Open
feat(checkout): CHECKOUT-10368 Migrate company address search to customer.activeCompany#3379bc-peng wants to merge 1 commit into
bc-peng wants to merge 1 commit into
Conversation
bc-peng
marked this pull request as ready for review
August 28, 2026 01:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: CHECKOUT-10368
What/Why?
Storefront GraphQL is removing the root-level
companyquery field and standardizing oncustomer.activeCompanyas the single entry point for B2B company data.This PR migrates the
SearchCompanyAddressesquery to the new shape.Rollout/Rollback
Rolls out with the next SDK release; no feature flag —
customer.activeCompany.addressesis already live in production SFGQL and resolves identically to the rootcompanyfield (same underlying data and auth gate). Must be live in production before the storefront team removes the rootcompanyfield (B2B-5578) — sign-off happens on that ticket after verification.Rollback: revert this PR and release; the root
companyfield still exists until B2B-5578 proceeds.Testing
Manually tested the changes alongside the
checkout-jschanges.🤖 Generated with Claude Code
Note
Medium Risk
Breaking SDK contract for B2B address search consumers (
company→customer.activeCompany); timing must stay ahead of SFGQL removing the rootcompanyfield.Overview
Prepares the checkout SDK for removal of the root storefront GraphQL
companyfield by routing B2B company address search throughcustomer.activeCompanyinstead.The
SearchCompanyAddressesoperation now queriescustomer { activeCompany { addresses(...) } }, and derived types (CompanyAddressSearchResult,CompanyCompany) plusCheckoutService.searchCompanyAddressesdocs/tests expectcustomer/customer?.activeCompanyrather thancompany. This is a breaking response shape for callers that readresult.company.packages/core/schema/storefront.graphqlis updated in the same change (including the newActiveCompanytype onCustomerand many other SFGQL additions); codegen for the search query picks up the new path from that schema.Reviewed by Cursor Bugbot for commit 8cfe94b. Bugbot is set up for automated code reviews on this repo. Configure here.