Migrate SchemaDesignerAPI to JAX-RS V2 annotations with RESTful improvements#23
Draft
Migrate SchemaDesignerAPI to JAX-RS V2 annotations with RESTful improvements#23
Conversation
Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…mments Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate SchemaDesignerAPI to use JAX-RS annotations
Migrate SchemaDesignerAPI from homegrown @EndPoint to JAX-RS V2 annotations
Feb 22, 2026
Copilot stopped work on behalf of
epugh due to an error
February 22, 2026 16:50
…y docs guard) Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
Copilot
AI
changed the title
Migrate SchemaDesignerAPI from homegrown @EndPoint to JAX-RS V2 annotations
Fix schema designer /query wiping indexed docs when sample docs unavailable
Feb 22, 2026
…ader, sanitize filename Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
Copilot
AI
changed the title
Fix schema designer /query wiping indexed docs when sample docs unavailable
Migrate SchemaDesignerAPI from homegrown @EndPoint annotations to JAX-RS V2 API
Feb 23, 2026
…/docs map for JS rendering Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
Copilot
AI
changed the title
Migrate SchemaDesignerAPI from homegrown @EndPoint annotations to JAX-RS V2 API
Fix schema designer query results not rendering in UI
Feb 23, 2026
Replace all FlexibleSolrJerseyResponse usages with the specific typed response POJOs (SchemaDesignerResponse, SchemaDesignerInfoResponse, SchemaDesignerCollectionsResponse, SchemaDesignerSchemaDiffResponse) returned by the SchemaDesigner API methods. Also fix SchemaDesigner.setSchemaObjectField() to handle the add-field and add-field-type action names used by the Schema API request JSON, so that response.field is populated for add-field requests and response.fieldType for add-field-type requests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…r API Agent-Logs-Url: https://github.com/epugh/solr/sessions/507f5cc3-13ae-4824-a6c1-ef4f98052d35 Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…i-to-v2-annotations' into copilot/migrate-schemadesignerapi-to-v2-annotations # Conflicts: # solr/core/src/java/org/apache/solr/handler/configsets/DownloadConfigSet.java Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
Agent-Logs-Url: https://github.com/epugh/solr/sessions/b74e99f0-20cb-45c6-afa8-b2acdd295385 Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…s $resource in JS Agent-Logs-Url: https://github.com/epugh/solr/sessions/adec0806-852d-4a34-a0fb-aef713d8bf76 Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
… tests Agent-Logs-Url: https://github.com/epugh/solr/sessions/10ac2a78-7ae6-44d5-858d-e74dd03593ea Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DownloadConfigSetAPITestandGetConfigSetFileAPITestvs other API testsDownloadConfigSetAPITest: replacemock(ConfigSetService)+doAnswer/stubDownloadConfighelper with realFileSystemConfigSetService(createTempDir()) {}(anonymous subclass to access protected constructor); remove unusedmock(SolrQueryRequest)andmock(SolrQueryResponse)(passnullinstead); write real files withFiles.createDirectories+Files.writeString; fix sanitization test assertion to check for sanitized filename string rather than absence of spaces (theContent-Dispositionheader itself has a space)GetConfigSetFileAPITest: same pattern — realFileSystemConfigSetService, no request/response mocks;nullconfigset dir means not-found, missing file means not-foundGetConfigSetFile.downloadFileFromConfig(): handlenullreturn fromFileSystemConfigSetService(it silently returnsnullfor missing files instead of throwingIOException) and throw a 404SolrException— this was a real bug caught by switching from mocks to a real implementationgradlew tidy— passes✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.