feat(demo): repin serving demo store to the kitchen-appliance legend (B3) - #140
Merged
Conversation
…(B3) Replaces the four demo tables' grocery/electronics-era placeholder values (Wireless Headphones, Running Shoes, USD amounts) with RUB-denominated kitchen-appliance data matching docs/generator-spec.md §9-10: 10 products (one per SKU category, one out-of-stock bestseller for the oversell story), 8 orders (5 marketplace 1.5-3k RUB + 1 D2C ~4k + 2 wholesale ~48k/~76k RUB), 5 users (2 dealer + 3 retail), 6 sessions remapped to the retail-only D2C telemetry story. Mirrored identically across duckdb_backend.py and clickhouse_backend.py so both serving backends tell the same demo story. Propagates RUB as the revenue/avg_order_value metric unit (catalog.py + regenerated config/contracts/metric.*.yaml, since both metrics sum/average orders_v2.total_amount), updates the order.yaml currency description, and fixes search-index snippet text and the handful of tests/docs that asserted the old literal names, prices, and unit strings. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
DORA Metrics
|
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
products_current,orders_v2,users_enriched,sessions_aggregated) from the grocery/electronics-era placeholder values to the kitchen-appliance legend, perdocs/generator-spec.md§9–10: 10 products (one per SKU category, one out-of-stock bestseller for the cross-channel oversell story), 8 orders in RUB (5 marketplace 1.5–3k + 1 D2C ~4k + 2 wholesale ~48k/~76k — bimodal per spec), 5 users (2 dealer + 3 retail), 6 sessions remapped to the retail-only D2C telemetry story. Mirrored identically acrossduckdb_backend.pyandclickhouse_backend.py.revenue/avg_order_valuemetric unit end to end:catalog.py(the live source), regeneratedconfig/contracts/metric.*.yamlviascripts/generate_contracts.py(fixed the drift-check generator, not hand-edited),contracts/entities/order.yamlcurrency description, and search-index snippet text.unit: "USD"strings — found by running the full suite and fixing only what the demo-store change actually broke (structural stub-based tests using "USD" as an arbitrary placeholder were left untouched).Scope notes
Currencyenum (USD/EUR/GBP) andconfig/contracts/order.v1.yaml/order.v2.yamluntouched — that governs synthetic CDC/event validation, decoupled from the static demo seed, and out of B3's stated scope (serving demo store + NL demo answers + README examples).docs/dv2-multi-branch/demo_evidence.md, perf reports, and notebook output cells untouched — those are live-stand-generated evidence and belong to B4, not something to hand-edit.Test plan
pytest tests/unit— 1587 passed (2 pre-existing environmental flakes unrelated to this change: a Windows thread-timing test and a local helm-binary blip, both reproduced independently of this diff)pytest tests/integration tests/property -m "not requires_docker and not live"— 217 passed, 50 skipped, 5 deselectedruff check+ruff format --checkon all touched filesmypy src/— clean🤖 Generated with Claude Code