[17.0][OU-FIX] point_of_sale: do not set limited_product_count to 0 #6130
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
Approved
Approved these changes.
pedrobaeza
SparkDrago05
Fixes #6128.
fill_limited_product_count()checkedlimited_partners_loadinginstead oflimited_products_loading, and stored0when no config limited the products. In 17.0,get_limited_product_count()only falls back to 20000 when the parameter is missing, so0makes 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_configtable 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.