SOLR-17849: Implement Index & Query section header #5257
All Vouch review confidence checks passed
Residual risk 0.35 = Change Risk (0.59) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #5257"
general
weight: 0.35
nick-boss-tech
🤖 AI text below 🤖 (reviewed by Nick Shanin)
Ready for review, but held as a draft due to the project's open-PR cap; I'll mark it open on request.
https://issues.apache.org/jira/browse/SOLR-17849
What happens today
The new UI has no Index & Query header. A user cannot pick a collection there, and cannot see the request handlers of the chosen collection. The ticket asks for both dropdowns, with their loading and selection state.
What this change does
Adds the header and the state it needs. The request form, the response view and the request itself are not in this change.
IndexQueryHeader: a collection dropdown labelled Collection / Core and a request handler dropdown. The closed handler field shows the selected endpoint with its class on the same line, the class in monospace. Each menu entry shows the endpoint and its class. A long class name is cut with an ellipsis. The handler field is 384 px wide and the collection field 256 px, as in the design. Both dropdowns are disabled while loading and when there is nothing to pick. Messages cover no collections and a collection with no handlers.IndexQueryStateHolder: loads the collections and the handlers of the selected collection. It holds the selected collection and handler, and clears the handler when the collection changes.HttpIndexQueryRepository:GET api/collectionsandGET api/collections/{collection}/config/requestHandler.RequestHandlerOptionmoves to the domain package, and four strings are added.Scope of this change
Summary: the header comes with the state it needs to meet the ticket's criteria.
The ticket's criteria say that the collections are listed, that the handlers load for the selected collection, and that the selection is part of the state. Its "Additional Information" excludes only the form of a request handler. Three options fit the ticket:
1. The header component only. The criteria for loading and state would stay open, because the header takes its lists and selection as parameters and nothing supplies them.
2. The header with its loading and selection state (this change). It meets the criteria for collections, handlers and state, and it leaves out request execution.
3. The whole screen, including running a request and showing its response. That is the content, which the ticket excludes and which Christos Malliaridis asked to keep in a separate pull request.
This change takes option 2.
Proof
d55bb451eb, verified 2026-10-28 with the full./gradlew -p ui check, no build cache, software renderer: JVM tests 56 run, 0 failures, 2 skipped; browser (wasm) tests 60 run, 0 failures, 3 skipped.IndexQueryHeaderTestpasses 6 of 6 andIndexQueryStateHolderTestpasses 3 of 3, on both runners.b91f75ed93. The request tests were removed with the request code. They are not new assertions, and no mutation run was made.testSelectedHandlerShowsItsClassInTheClosedField, fails on the previous head14ff707865(1 of 6 failed, the class text missing from the closed field) and passes atcf35ab0329.Screen render at head
d55bb451eb, offscreen with the software renderer, populated state (collectionsfilmsandbooks, handler/select):!Header render, offscreen software renderer
Screenshots
Headless Chromium 156, production
IndexQueryHeaderinsideSolrTheme(light theme), 1024x768, fixture states. Hosted in a secret gist.| Loading | No collections |
| --- | --- |
| !Loading | !No collections |
| Collection and request handler selected |
| --- |
| !Selected |
Limits
SearchHandlerForm),executeon the repository, and the Configsets wiring.137-12066. The collection field is 256 px and the handler field 384 px, as in the design, and the handler class is in monospace. Colors come from thumbnails and are approximate; they are not claimed as matched.AI-generated description. Nick Shanin directed the work and takes responsibility for this contribution.