Skip to content

fix(tickets_v2): include superseded product versions in orders filter#995

Merged
japsu merged 1 commit into
mainfrom
fix/orders-filter-superseded-products
Jul 19, 2026
Merged

fix(tickets_v2): include superseded product versions in orders filter#995
japsu merged 1 commit into
mainfrom
fix/orders-filter-superseded-products

Conversation

@japsu

@japsu japsu commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Editing a product creates a new revision and points old rows at it via
superseded_by, but existing orders keep referencing the old product id
in product_data. The Orders tab filtered strictly by the current
product id, so orders placed before the most recent edit were silently
excluded, while the Products tab's counts already rolled up the whole
version chain. filter_orders now expands each requested product id to
include its superseded versions before matching.

fixes #994

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Editing a product creates a new revision and points old rows at it via
superseded_by, but existing orders keep referencing the old product id
in product_data. The Orders tab filtered strictly by the current
product id, so orders placed before the most recent edit were silently
excluded, while the Products tab's counts already rolled up the whole
version chain. filter_orders now expands each requested product id to
include its superseded versions before matching.

fixes #994

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@japsu
japsu merged commit 57a0da3 into main Jul 19, 2026
10 checks passed
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.

Orders table filter by product only shows orders containing newest version

1 participant