Skip to content

refactor: defer handling of prepareForCompletion violations to submission#545

Merged
kieran-osgood-shopify merged 1 commit intomainfrom
kieran-osgood/03-27-refactordeferhandlingofprepareforcompletionviolationstosubmission
Mar 27, 2026
Merged

refactor: defer handling of prepareForCompletion violations to submission#545
kieran-osgood-shopify merged 1 commit intomainfrom
kieran-osgood/03-27-refactordeferhandlingofprepareforcompletionviolationstosubmission

Conversation

@kieran-osgood-shopify
Copy link
Copy Markdown
Contributor

@kieran-osgood-shopify kieran-osgood-shopify commented Mar 27, 2026

What changes are you making?

Realised during testing the downstream stack that there is more to be done here to handle violations early, and we're at risk of introducing regressions

This PR removes the filtering entirely, restoring previous behaviour of "prepare" always continuing, and violations being returned back to the user at 'submit' stage


Before you merge

Important

Releasing a new version of the kit?

Releasing a new major version?

  • I have bumped the version number in the README.

Tip

See the Contributing documentation for instructions on how to publish a new version of the library.

Copy link
Copy Markdown
Contributor Author

kieran-osgood-shopify commented Mar 27, 2026

payload: StorefrontAPI.CartPrepareForCompletionPayload,
shippingCountry: String?,
requiredContactFields: Set<PKContactField>?
shippingCountry _: String?,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm purposefully not fully undoing this path entirely as I know this will be useful again when we improve the UX to surface these errors agin

@kieran-osgood-shopify kieran-osgood-shopify marked this pull request as ready for review March 27, 2026 11:31
@kieran-osgood-shopify kieran-osgood-shopify requested a review from a team as a code owner March 27, 2026 11:31
@kieran-osgood-shopify kieran-osgood-shopify changed the base branch from cx-migrate-accelerated-checkout-2025-07 to graphite-base/545 March 27, 2026 15:11
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/03-27-refactordeferhandlingofprepareforcompletionviolationstosubmission branch from a45ff05 to f66bca8 Compare March 27, 2026 15:12
@graphite-app graphite-app bot changed the base branch from graphite-base/545 to main March 27, 2026 15:12
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/03-27-refactordeferhandlingofprepareforcompletionviolationstosubmission branch from f66bca8 to 5f1dbba Compare March 27, 2026 15:12
Comment on lines -4 to 12
"identity" : "apollo-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apollographql/apollo-ios.git",
"state" : {
"revision" : "1abd62f6cbc8c1f4405919d7eb6cd8e96967b07c",
"version" : "1.25.3"
}
},
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This intentional?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Meant to add a comment, I'm not sure why this is happening but its occurring on another branch too where I'm bumping to v2, sample app still continues to run so I'm searching for a reason why

@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/03-27-refactordeferhandlingofprepareforcompletionviolationstosubmission branch from 5f1dbba to 71c866e Compare March 27, 2026 16:15
@kieran-osgood-shopify kieran-osgood-shopify force-pushed the kieran-osgood/03-27-refactordeferhandlingofprepareforcompletionviolationstosubmission branch from 71c866e to 6f01f98 Compare March 27, 2026 16:27
@kieran-osgood-shopify kieran-osgood-shopify merged commit 260a005 into main Mar 27, 2026
8 checks passed
@kieran-osgood-shopify kieran-osgood-shopify deleted the kieran-osgood/03-27-refactordeferhandlingofprepareforcompletionviolationstosubmission branch March 27, 2026 16:46
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