Skip to content

fix: reject inventory filters without a query - #143

Open
aleksUIX wants to merge 1 commit into
IABTechLab:mainfrom
aleksUIX:codex/140-inventory-filters
Open

aleksUIX wants to merge 1 commit into
IABTechLab:mainfrom
aleksUIX:codex/140-inventory-filters

Conversation

@aleksUIX

@aleksUIX aleksUIX commented Oct 4, 2026

Copy link
Copy Markdown

Fixes #140.

discover_inventory() previously discarded product filters whenever query was absent. It now raises a ValueError explaining that a query is required, since list_products cannot apply those filters. Query searches and unfiltered listings keep their existing behavior.

Tests cover each product filter, query searches with filters, and identity-only listings.

Validation: pytest -q tests/unit --disable-warnings --tb=short (3,535 passed, 1 skipped); Ruff and git diff --check passed.

@aleksUIX
aleksUIX force-pushed the codex/140-inventory-filters branch from d3b8908 to d3f8df4 Compare October 4, 2026 03:33

This branch has not been deployed

No deployments
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.

discover_inventory ignores filters when there's no query

1 participant