Skip to content

[CDX-373] Add FmtOptions to RecommendationsRequest#96

Merged
esezen merged 4 commits intocdx-373-netcore-update-fmtoptionsfrom
cdx-373-netcore-update-fmtoptions-add-rex
Feb 26, 2026
Merged

[CDX-373] Add FmtOptions to RecommendationsRequest#96
esezen merged 4 commits intocdx-373-netcore-update-fmtoptionsfrom
cdx-373-netcore-update-fmtoptions-add-rex

Conversation

@esezen
Copy link
Contributor

@esezen esezen commented Feb 23, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 23, 2026 13:16
@esezen esezen requested a review from Mudaafi as a code owner February 23, 2026 13:16
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 FmtOptions support to RecommendationsRequest, enabling control over result formatting in recommendations API calls (e.g., returning hidden fields and facets). This aligns with existing support for FmtOptions in other request types like SearchRequest, BrowseRequest, and AutocompleteRequest.

Changes:

  • Added FmtOptions property to RecommendationsRequest class
  • Integrated FmtOptions parameters into GetRequestParameters() method
  • Added two integration tests to verify FmtOptions usage with hidden fields and hidden facets

Reviewed changes

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

File Description
src/constructor.io/models/Recommendations/RecommendationsRequest.cs Added FmtOptions property and integrated it into GetRequestParameters() method following the established pattern
src/Constructorio_NET.Tests/client/modules/RecommendationsTests.cs Added integration tests for FmtOptions with HiddenFields and HiddenFacets

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

Copy link
Contributor

@Mudaafi Mudaafi left a comment

Choose a reason for hiding this comment

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

Looks like some of the tests aren't checking the correct fields

esezen and others added 3 commits February 25, 2026 14:24
…s.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


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

Copy link
Contributor

@Mudaafi Mudaafi left a comment

Choose a reason for hiding this comment

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

thanks for making the changes

@esezen esezen merged commit d1d7330 into cdx-373-netcore-update-fmtoptions Feb 26, 2026
4 of 6 checks passed
@esezen esezen deleted the cdx-373-netcore-update-fmtoptions-add-rex branch February 26, 2026 15:30
esezen added a commit that referenced this pull request Mar 2, 2026
* Properly type FmtOptions

* Update src/constructor.io/utils/Helpers.cs

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

* Update FmtOptions

* Add tests

* Address comments

* Address comments

* Refactor FmtOptions completley

* Remove legacy fields

* [CDX-373] Add FmtOptions to RecommendationsRequest (#96)

* Add rex support

* Update src/Constructorio_NET.Tests/client/modules/RecommendationsTests.cs

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

* Update tests

* Fix flaky test

---------

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

* Address comments

* Remove unused constructor

* Address commenst

* Update test to use a different pod

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

3 participants