Skip to content

Conversation

@esezen
Copy link
Contributor

@esezen esezen commented Jan 12, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 12, 2026 09:04
@esezen esezen requested a review from Mudaafi as a code owner January 12, 2026 09:04
Copy link
Contributor

Copilot AI left a comment

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 adds support for pre-filter expressions in recommendation requests, enabling filtering of recommendation results based on specified criteria.

Changes:

  • Added PreFilterExpression property to RecommendationsRequest class
  • Updated GetRequestParameters method to include pre-filter expression in request parameters
  • Added comprehensive test coverage for the new functionality

Reviewed changes

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

File Description
src/constructor.io/models/Recommendations/RecommendationsRequest.cs Added PreFilterExpression property and logic to serialize it into request parameters
src/Constructorio_NET.Tests/models/Recommendations/RecommendationsRequestTest.cs Added unit test to verify pre-filter expression is correctly added to request parameters
src/Constructorio_NET.Tests/client/modules/RecommendationsTests.cs Added integration tests for pre-filter expression functionality with both object-based and JSON-based expressions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…s.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@andersekdahl
Copy link

Nice!! Thank you!

Copy link
Contributor

@HHHindawy HHHindawy left a comment

Choose a reason for hiding this comment

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

Just left a single comment that's causing tests to fail

'value': 'XYZ'
}"
);
JsonPreFilterExpression preFilterExpression = new JsonPreFilterExpression(
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think JsonPreFilterExpression with an upper-case F is a valid class name.
We could either use JsonPrefilterExpression now instead, or rename it everywhere to be JsonPreFilterExpression.

…s.cs

Co-authored-by: Ahmad Mudaafi' <ahmad.mudaafi@constructor.io>
@esezen esezen requested review from HHHindawy and Mudaafi January 20, 2026 14:56
Copy link
Contributor

@HHHindawy HHHindawy left a comment

Choose a reason for hiding this comment

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

LGTM!

@esezen esezen dismissed Mudaafi’s stale review January 20, 2026 19:59

Already approved

@esezen esezen merged commit b85d5a9 into main Jan 20, 2026
1 check failed
@esezen esezen deleted the cdx-352-net-sdk-add-prefilterexpression-to-recommendationsrequest branch January 20, 2026 19:59
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.

5 participants