epugh opened a new pull request, #5414: URL: https://github.com/apache/solr/pull/5414
https://issues.apache.org/jira/browse/SOLR-18695 # Description Every `*V2` service factory in `services.js` repeated the same three lines of generated-client setup (set `basePath`, drop the `User-Agent` default header, instantiate the API). This consolidates them into one helper. The JIRA originally proposed making the UI tolerate a missing `libs/solr/index.js` bundle. On investigation that isn't worth doing: the bundle is only absent in `-PdisableJsClient=true` builds, the Admin UI tests now serve the real bundle (so the stub workaround is gone), and most screens depend on the v2 client anyway. The issue has been re-scoped to this cleanup. # Solution Added `newV2Api(apiName)` in `services.js`; the 16 `*V2` factories now call it. No behavior change. The hand-rolled `ZookeeperReadV2` is untouched. Developed with the help of Claude Code. # Tests Ran the Selenium Admin UI suites that exercise the v2 services (`-Ptests.selenium=true`): `AdminUiSmokeTest`, `AdminUiCollectionsScreenTest`, `AdminUiLoggingScreenTest`, `AdminUiSchemaDesignerTest`. All pass. # Checklist - [x] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability. - [x] I have given Solr maintainers [access](https://help.github.com/en/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to contribute to my PR branch. (optional but recommended, not available for branches on a fork owned by an organization) - [x] I have developed this patch against the `main` branch. - [ ] I have run `./gradlew check`. - [ ] I have added tests for my changes. - [ ] I have added documentation for the [Reference Guide](https://github.com/apache/solr/tree/main/solr/solr-ref-guide) - [ ] I have added a [changelog entry](https://github.com/apache/solr/blob/main/dev-docs/changelog.adoc) for my change 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018RwsEmM9zRWihYjszWDGK9 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
