Skip to content

Conversation

@aniketkatkar97
Copy link
Member

This pull request enhances the advanced search functionality by allowing the custom property subfield generation logic to adapt based on a new searchOutputType parameter. This enables more flexible handling of search field keys depending on the search backend (such as ElasticSearch or JSONLogic). The changes also include comprehensive updates to unit tests to ensure correct propagation and handling of the new parameter.

Key changes include:

Advanced Search Logic Enhancements

  • Updated getCustomPropertiesSubFields in AdvancedSearchClassBase to accept a searchOutputType parameter, adjusting subfield key generation logic based on whether ElasticSearch or JSONLogic is used.
  • Modified processCustomPropertyField and processEntityTypeFields to accept and pass through the searchOutputType parameter, ensuring consistent behavior throughout the advanced search utilities. [1] [2] [3] [4]

Type and Import Updates

  • Added the SearchOutputType enum to relevant imports for proper type-checking and usage across the codebase. [1] [2]

Testing Improvements

  • Expanded unit tests in AdvancedSearchUtils.test.tsx to verify that the searchOutputType parameter is correctly passed and handled in both processCustomPropertyField and processEntityTypeFields, covering ElasticSearch, JSONLogic, and undefined cases. [1] [2]

These updates make the advanced search system more robust and adaptable to different search backends, while ensuring correctness through improved testing.

@aniketkatkar97 aniketkatkar97 self-assigned this Jan 25, 2026
@aniketkatkar97 aniketkatkar97 requested a review from a team as a code owner January 25, 2026 14:52
@github-actions github-actions bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Jan 25, 2026
@aniketkatkar97 aniketkatkar97 added the To release Will cherry-pick this PR into the release branch label Jan 25, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 25, 2026

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 65%
65.82% (55590/84464) 44.82% (28662/63950) 47.72% (8734/18301)

anuj-kumary
anuj-kumary previously approved these changes Jan 25, 2026
@sonarqubecloud
Copy link

@aniketkatkar97
Copy link
Member Author

Failures are unrelated and will be taken care of in #25459

@aniketkatkar97 aniketkatkar97 merged commit c172c75 into main Jan 26, 2026
26 of 28 checks passed
@aniketkatkar97 aniketkatkar97 deleted the fix-cp-advanced-search-config branch January 26, 2026 06:11
@github-actions
Copy link
Contributor

Failed to cherry-pick changes to the 1.11.7 branch.
Please cherry-pick the changes manually.
You can find more details here.

aniketkatkar97 added a commit that referenced this pull request Jan 26, 2026
* Removed the keyword suffix for the jsonlogic

* Fix the Entity Ref custom property test flakiness

* Fix custom property failures and flakiness

---------

Co-authored-by: Anujkumar Yadav <anujf0510@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants