Skip to content

Migrate Admin UI screens to v2 endpoints: Java Properties, Schema, and Cloud Zookeeper tree view - #4901

Open
epugh wants to merge 8 commits into
apache:mainfrom
epugh:migrate_solr_admin_to_v2_endpoints
Open

epugh wants to merge 8 commits into
apache:mainfrom
epugh:migrate_solr_admin_to_v2_endpoints

Conversation

@epugh

@epugh epugh commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Description

Migrate Solr Admin UI to V2 equivalent APIs that have already been merged in.

Solution

We have a number of V2 apis that haven't been used in the Solr Admin yet. We migrated the Java Properties, the Schema UI, and the Cloud panels "Zookeeper tree" to V2 equivalents.

Tests

manual and selenium.

epugh and others added 5 commits September 10, 2026 09:42
…m updateschema

UpdateSchema was not responding properly, it had errors but return ad 200, which wasn't how v2 is uspposed to work.
…ren stat map in listNodes response

ZooKeeperListChildrenResponse's `unknownFields` was serialized twice: once
as its own literal property (a public field Jackson auto-detects) and again flattened via @JsonAnyGetter. @JsonIgnore on the field removes the first copy
Documents the UpdateSchema fix (200-instead-of-4xx on failure) landed
in c068793, under SOLR-18439.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
epugh and others added 2 commits September 10, 2026 15:55
The schema error-reporting fix's changelog entry duplicated SOLR-18439
coverage already provided by the separate replication/backup fix's
changelog entry on another branch.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@epugh
epugh marked this pull request as ready for review September 15, 2026 17:28
@epugh epugh added this to the 10.x milestone Sep 15, 2026
@epugh

epugh commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

This needs a bit of review...

@epugh
epugh requested review from gerlowskija and a balanced review from Copilot September 16, 2026 18:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.


var cookie_schema_browser_autoload = 'schema-browser_autoload';

// SchemaV2 (the generated OpenAPI client) uses superagent directly, so genuine transport/auth

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too much? This is the one place we do kind of werid stuff with error handling.

@epugh epugh changed the title Migrate solr admin to v2 endpoints Migrate solr admin java properties, schema, and cloud zookeeper tree to v2 endpoints Sep 16, 2026
@epugh epugh changed the title Migrate solr admin java properties, schema, and cloud zookeeper tree to v2 endpoints Migrate Admin UI screens to v2 endpoints: java properties, schema, and cloud zookeeper tree Sep 16, 2026
@epugh epugh changed the title Migrate Admin UI screens to v2 endpoints: java properties, schema, and cloud zookeeper tree Migrate Admin UI screens to v2 endpoints: Java Properties, Schema, and Cloud Zookeeper tree view Sep 16, 2026
@epugh

epugh commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

The Schema tool needs a bit of love:
image

Not sure why the dropdown isn't loading, no errors int he browser...

.factory('ZookeeperReadV2',
['$http', function($http) {
// Hand-rolled rather than the generated solrApi.ZookeeperReadApi client: the generated
// ApiClient.buildUrl() runs encodeURIComponent() on the whole zkPath value, turning its '/'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to deal with this, and we neded up hacking up OpenAPI annotation templates!

@epugh

epugh commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

Not sure why the dropdown isn't loading, no errors int he browser...

fixed!

@epugh

epugh commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

assuming a good build, will merge on Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants