Skip to content

Migrate SchemaDesignerAPI to JAX-RS V2 annotations with RESTful improvements#23

Draft
Copilot wants to merge 65 commits into
mainfrom
copilot/migrate-schemadesignerapi-to-v2-annotations
Draft

Migrate SchemaDesignerAPI to JAX-RS V2 annotations with RESTful improvements#23
Copilot wants to merge 65 commits into
mainfrom
copilot/migrate-schemadesignerapi-to-v2-annotations

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 22, 2026

  • Analysis: DownloadConfigSet (GET /api/configsets/{configSetName}/files) in main handles the zip; JS can call it directly with the draft configset name ._designer_{configSet}
  • Add optional displayName query param to ConfigsetsApi.Download.downloadConfigSet() — when provided, overrides the filename in the Content-Disposition header (so ._designer_filmsfilms_configset.zip); add DefaultValue import to ConfigsetsApi.java
  • Update DownloadConfigSet.downloadConfigSet() to accept and use displayName; add buildZipResponse(service, configSetName, displayName) overload that sets Content-Disposition header; remove old buildZipResponse(service, configSetName) (was missing the header entirely)
  • Remove downloadConfig method from SchemaDesignerApi.java interface; remove now-unused imports (RAW_OUTPUT_PROPERTY, Extension, ExtensionProperty, Produces, jakarta.ws.rs.core.Response)
  • Remove downloadConfig implementation from SchemaDesigner.java; remove now-unused imports (jakarta.ws.rs.core.Response, StreamingOutput, DownloadConfigSet)
  • Update schema-designer.js: downloadConfig() now constructs mutableId = "._designer_" + configSet and calls /api/configsets/{encoded mutableId}/files?displayName={configSet}; add comment explaining the approach
  • Update BATS test: both download tests now use /api/configsets/.../files?displayName=... endpoint
  • Run gradlew :solr:api:tidy :solr:core:tidy — passes
  • Run gradlew :solr:api:compileJava :solr:core:compileJava — BUILD SUCCESSFUL

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…mments

Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…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
Copilot AI and others added 30 commits April 24, 2026 13:06
…e download+getFile to SchemaDesignerApi

Agent-Logs-Url: https://github.com/epugh/solr/sessions/07fed0d8-5175-46b5-bff4-7111da9bb8c3

Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
… DownloadConfigSet.zipConfigSet()

Agent-Logs-Url: https://github.com/epugh/solr/sessions/fd2b245f-2e34-45e1-96fe-a5047e48206b

Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…ownload endpoint directly

Agent-Logs-Url: https://github.com/epugh/solr/sessions/4f648089-c8e3-4fcd-9ac5-c55c3e9307df

Co-authored-by: epugh <22395+epugh@users.noreply.github.com>
…pressions (apache#4286)

Co-authored-by: Eric Pugh <epugh@opensourceconnections.com>
SOLR-18219: Rename the CoreAdmin UPGRADECOREINDEX action to UPGRADEINDEX for a cleaner API with reduced verbosity.
…hen I had to fix this.

If we used Rails we wouldn't need this!
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.

8 participants