fix(scanners): hide swag in Door Check and sessions in Swag Pickup#281
Merged
JacobCoffee merged 1 commit intomainfrom Apr 28, 2026
Merged
fix(scanners): hide swag in Door Check and sessions in Swag Pickup#281JacobCoffee merged 1 commit intomainfrom
JacobCoffee merged 1 commit intomainfrom
Conversation
Both scanner pages call /check_in/redeemable/ to populate their category chips and product list, and that endpoint returns the full union of redeemable categories (sessions + merchandise). CategorySerializer only emits (id, name), so there's no render_type or other discriminator on the wire — the result is that Door Check showed t-shirt categories and Swag Pickup showed Tutorials / Sponsor Presentations / Summits / etc. Filter the response client-side by category name: - Door Check keeps anything *not* matching /shirt|swag/i. - Swag Pickup keeps anything *matching* /shirt|swag/i. Products are filtered to those whose category survived, so the "All sessions in this category" / search list also stays consistent. Both filters carry a comment pointing at the long-term fix (expose render_type on CategorySerializer in pycon-site). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
A comment in each `ngOnInit` points at the proper long-term fix (expose `render_type` on `CategorySerializer` in `pycon-site` and filter on `render_type === 10` for presentations).
Effect — given `pycon-site/fixtures/inventory.json`
Test plan
🤖 Generated with Claude Code