Repository navigation
fix(platform): let a Shopify order's fulfillment_status be null - #5445
Merged
Merged
Conversation
yannickmonney
force-pushed
the
fix/shopify-fulfillment-status-null
branch
from
November 14, 2026 21:27
831553e to
8c1843a
Compare
Shopify answers fulfillment_status null for an order no line item has shipped for, and list_orders' mock answered 'unfulfilled', a value Shopify never sends. The declared outputs of list_orders and get_order said string, so a live call returned a null where the action promised a string. Declare the field string | null on both actions, make the list_orders mock answer null for its unfulfilled order, and mark the OpenAPI mock spec's Order field nullable. Tests hold that each order's field admits null in the declared output and that the mock's null fits it.
yannickmonney
force-pushed
the
fix/shopify-fulfillment-status-null
branch
from
November 14, 2026 21:37
8c1843a to
c583007
Compare
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.
What
Shopify answers
fulfillment_status: nullfor an order no line item has shipped for. Thelist_ordersandget_orderactions declared the field asstring, and thelist_ordersmock answered'unfulfilled', a value Shopify never sends. A live call therefore returned anullwhere the action promised a string.This PR:
fulfillment_status: string | nullonlist_orders(order items) andget_order;list_ordersmock answernullfor its unfulfilled order;Order.fulfillment_statusfield of the OpenAPI mock spec (services/platform/lib/mocks/specs/connectors/shopify.openapi.yaml) as[string, 'null'], matching its existingnullresponse.Scenario additions for an unfulfilled order wait for #5320 and are not part of this PR.
Why
The catalog test
shipped-connectors.test.tsis the place the connector's declared output and its mock are held to each other, so the fix and its guard land together.How it was tested
services/platform/lib/shared/schemas/shipped-connectors.test.ts: the declared output oflist_ordersandget_orderadmitsnullforfulfillment_status(checked withparseSignature/nullability), and thelist_ordersmock answersnulland its output fits the declared shape (assignable(shapeOfValue(...))).connector.ymland pass with this change (verified by swapping the original file back in).bun run configs:validateinservices/platform: OK (24 connectors).tsc --noEmitinservices/platform: exit 0 (neededNODE_OPTIONS=--max-old-space-size=12288).oxlint --type-awareinservices/platform: exit 0.oxfmt --checkon the changed files: clean. commitlint on the commit message: clean.zod/v4's namedzin this sandbox's runtime (fails on an unrelated existing test too), so the suite was not run end to end here; CI runs it.Fixes #5343