Skip to content

SOLR-16396 | Migrate GET config sections query, searchComponent & queryResponseWriter to JAX-RS - #5125

Merged
epugh merged 13 commits into
apache:mainfrom
jaykay12:SOLR-16396-config-query
Oct 15, 2026
Merged

epugh merged 13 commits into
apache:mainfrom
jaykay12:SOLR-16396-config-query

Conversation

@jaykay12

@jaykay12 jaykay12 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

https://issues.apache.org/jira/browse/SOLR-16396

Description

Part of SOLR-16396 (Config GET → JAX-RS)

This PR: migrate the three similar-kinds section GETs to JAX-RS:

  • GET /config/query
  • GET /config/searchComponent
  • GET /config/queryResponseWriter

Already landed / related:

Solution

AI Disclaimer: Used Cursor for Approach formulation, code is fully vetted & reviewed by me.

Tests

Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.

Checklist

Please review the following and check all that apply:

  • I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
  • I have created a Jira issue and added the issue ID to my pull request title.
  • I have given Solr maintainers access to contribute to my PR branch. (optional but recommended, not available for branches on forks living under an organisation)
  • 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
  • I have added a changelog entry for my change

@epugh epugh added this to the 10.x milestone Oct 13, 2026
@epugh epugh self-assigned this Oct 13, 2026
@jaykay12

jaykay12 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

@jaykay12 jaykay12 left a comment

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.

self-review ✅
local testing ✅
all CI checks passing ✅

jaykay12 and others added 2 commits October 14, 2026 23:48
…it one is hte query param to path param

Switches GET /config/{component}?componentName= to GET
/config/{component}/{componentName}, matching other v2 API conventions.
Also fixes an NPE-on-unknown-componentName bug (now returns 404), and
deduplicates the filtering logic that was copy-pasted between the new v2
code and the legacy v1 handler. Adds test coverage for all three.
@epugh

epugh commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

okay, I poked a bit and I think the new pattern is more "restful"...

2 similar comments
@epugh

epugh commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

okay, I poked a bit and I think the new pattern is more "restful"...

@epugh

epugh commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

okay, I poked a bit and I think the new pattern is more "restful"...

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 15, 2026

@jaykay12 jaykay12 left a comment

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.

lgtm.
do we need to update any more docs if we are changing the format of v2 API?

thanks for the refactoring & more restful-ness changes @epugh ! ✨

local testing is done & looks fine to me. ✅

Image Image Image

@epugh
epugh merged commit 714d6ce into apache:main Oct 15, 2026
1 check passed
@jaykay12
jaykay12 deleted the SOLR-16396-config-query branch October 15, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cat:api documentation Improvements or additions to documentation tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants