[6.2] [AI] Fix Smart Search category access indexing #48136
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.49) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.49 · 348 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Diff Size
diff_size
0.350
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #48136"
general
weight: 0.35
carrerasdarren-cell
Pull Request resolves #47839.
Summary of Changes
Joomla access-level IDs are identifiers, not an ordering of restrictiveness. Smart Search therefore cannot combine an item's access level with its category access level by choosing the larger ID.
This change stores the item and category access levels independently in
#__finder_linksand requires the current user to be authorized for both when loading search results or suggestions. It also:The PR targets
6.2-devbecause the separatecat_accessschema is a feature-level database change. Existing Smart Search data must be cleared and reindexed after applying the database update so thatcat_accessis populated from each source item.Testing Instructions
Automated checks run locally against
6.2-dev:Manual reproduction:
1. Apply the database update.
2. Clear the existing Smart Search index.
3. Create a category with access set to Registered.
4. Create a published article in that category with access set to Public.
5. Run the Smart Search indexer.
6. As a guest, search for the article title.
7. As a registered user, repeat the search.
Actual result BEFORE applying this Pull Request
The guest search shows the article even though opening it is denied. The indexed row keeps only the article access level and discards the category access level.
Expected result AFTER applying this Pull Request
The article is excluded from guest search results and remains available to users authorized for both the article and its category. Custom access-level IDs work the same way regardless of their numeric order.
Link to documentations
Please select: