Repository navigation
fix(platform): count every Shopify order in count_orders - #5444
Merged
Merged
Conversation
count_orders asked Shopify for its order count with no status. Shopify defaults that to open, so closed and cancelled orders were left out although the action promises every order. The request now carries status=any, and list_orders' status description says that leaving it out lists only open orders. A test runs the live body against a fake HTTP context and pins the request URL.
yannickmonney
force-pushed
the
fix/shopify-count-orders-all-statuses
branch
from
November 14, 2026 21:27
5a07f99 to
ed9a570
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
count_orderscalled Shopify'sorders/count.jsonwith nostatus. Shopify defaults that parameter toopen, so closed and cancelled orders were left out of the count, although the action's description promises the total number of orders in the store.count_ordersnow requestsorders/count.json?status=any.list_orders'statusinput description now says that leaving it out lists only open orders, which is the behaviour the request already had.Why
The count was wrong for any store with closed or cancelled orders, and an agent would report that wrong number as the store's total. The fix is the request change the description already implies. Per the issue, the optional
statusinput forcount_ordersis left out unless a maintainer asks for it.How it was tested
services/platform/lib/shared/schemas/shipped-connectors.test.ts(shopify: count_orders asks for every order status) runs the live body throughinProcessLiveRunnerwith a fakectx.http, and pins the requested URL to…/orders/count.json?status=any. Confirmed failing before the change (requested URL had no query), passing after.shipped-connectors.test.ts,lib/mocks/contract/connectors.test.tsandlib/connectors/action-titles.test.ts: 153 passed.backend/core/connector_credentials/catalog_docs.test.tsandlib/connectors/dispatcher.test.ts: 269 passed.packages/shared/src/schemas/connectors.test.ts: 34 passed.bun run --filter @tale/platform lint: exit 0.tsc --noEmitforservices/platform: exit 0.oxfmt --checkon both changed files: clean.Vitest was run under Node 24 (the workspace's Node 22 here has no TypeScript support, and Bun's runtime fails to load
zod/v4).Locales: the
statusinput description is a JSON Schema description for the agent, not a localized form field, so no locale files change. Docs: no page documentscount_ordersor thestatusinput.Fixes #5344