Skip to content

fix: Send product_ids on ListProducts as the id filter - #189

Merged
davidgrayston-paddle merged 2 commits into
mainfrom
fix/list-products-product-ids
Nov 27, 2026
Merged

davidgrayston-paddle merged 2 commits into
mainfrom
fix/list-products-product-ids

Conversation

@davidgrayston-paddle

@davidgrayston-paddle davidgrayston-paddle commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

ListProducts(product_ids=[...]) was accepted but never sent, so the request returned every product. The list products endpoint has no product_id filter; it filters by id.

  • product_ids is now merged into the id query parameter: ids first, then any product_ids not already present, duplicates removed.
  • product_ids items are validated as strings, like ids. A call with non-string items, such as product_ids=[1], now raises InvalidArgumentException; before, the argument was ignored.
  • product_ids is deprecated in favour of ids. Existing calls keep working.
  • Tests cover product_ids alone, merging with ids, de-duplication and order, and invalid types.

Also releases 1.19.1: version bumped in setup.py and the user agent, changelog dated.

Fixes #188

product_ids was accepted but never sent, so ListProducts returned every product. It is now merged into the id filter after ids, with duplicates removed, and validated as strings. product_ids is deprecated in favour of ids.
@davidgrayston-paddle
davidgrayston-paddle merged commit 2bf3d87 into main Nov 27, 2026
7 checks passed
@davidgrayston-paddle
davidgrayston-paddle deleted the fix/list-products-product-ids branch November 27, 2026 14:54

This branch was successfully deployed

1 active deployment
dev — 1cef102e Deployed Nov 27, 2026 by davidgrayston-paddle via Package stability #541
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ListProducts ignores product_ids: the filter is never sent

3 participants