← Back to Pull requests

[17.0][OU-FIX] point_of_sale: do not set limited_product_count to 0 #6130

Open
SparkDrago05 opened this pull request with 32 lines diff across 1 files
View on GitHub
SparkDrago05 SparkDrago05 commented on Dec 01, 2026 16:16 UTC
Author

Fixes #6128.

fill_limited_product_count() checked limited_partners_loading instead of limited_products_loading, and stored 0 when no config limited the products. In 17.0, get_limited_product_count() only falls back to 20000 when the parameter is missing, so 0 makes the POS load no products. Now the parameter is set only from configs that limited the products (the smallest amount), and it is left unset otherwise.

Tested the function against PostgreSQL with a pos_config table that has the 16.0 columns:

| 16.0 configs | before | after |
|---|---|---|
| nothing limited (data from the issue) | 0 | not set (default 20000) |
| products limited to 500 | 0 | 500 |
| only partners limited | 20000 | not set (default 20000) |
| products limited to 800 and 300 | 300 | 300 |

AI disclosure: written with Claude Code (Claude Opus 5.5); I reviewed and tested the change.

Diff: 32 lines (+11 / -21) across 1 files Reviewer: pedrobaeza Review duration: 2680m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.29) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.29 · 32 lines diff across 1 files
0.29
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
0.00
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
48%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth shallow_review_depth
0.350
Diff Size diff_size
0.209
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
2 items
pedrobaeza pedrobaeza approved these changes on Dec 01, 2026 16:37 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
SparkDrago05 SparkDrago05
Labels
risk: low confidence: 48.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 28.9% (LOW) · Higher = larger blast radius
28.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 48.5% · Lower = rushed or shallow review
48.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.9% · Safe to merge
14.9%