Skip to content

add a common object for browse and search request - #189

Open
as-smets wants to merge 1 commit into
Constructor-io:masterfrom
as-smets:chore/actract-base-search-browse-request
Open

add a common object for browse and search request#189
as-smets wants to merge 1 commit into
Constructor-io:masterfrom
as-smets:chore/actract-base-search-browse-request

Conversation

@as-smets

@as-smets as-smets commented Sep 1, 2026

Copy link
Copy Markdown

Closes issue #188

To be able to factorize code between search and browse common request parameters

I didn't want the object to be called only BaseRequest so I chose BrowseSearchBaseRequest but not totally convinced

Copilot AI lite review requested due to automatic review settings September 1, 2026 07:41
@as-smets
as-smets requested a review from a team as a code owner September 1, 2026 07:41

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.

Pull request overview

This PR refactors the Java client’s browse/search request models by extracting shared request parameters into a common base class, reducing duplication between BrowseRequest and SearchRequest.

Changes:

  • Introduces BrowseSearchBaseRequest to hold common browse/search parameters (pagination, facets, sorting, etc.).
  • Updates SearchRequest to extend the new base request and removes duplicated fields/accessors.
  • Updates BrowseRequest to extend the new base request and removes duplicated fields/accessors.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
constructorio-client/src/main/java/io/constructor/client/SearchRequest.java Switches search request model to inherit shared parameters from the new base request.
constructorio-client/src/main/java/io/constructor/client/BrowseSearchBaseRequest.java Adds the new shared base request containing common browse/search fields and accessors.
constructorio-client/src/main/java/io/constructor/client/BrowseRequest.java Switches browse request model to inherit shared parameters from the new base request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@as-smets
as-smets force-pushed the chore/actract-base-search-browse-request branch from af7ed1c to 13896bd Compare September 1, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants