Skip to content

[Backport 2.x] Bug fixes and refactoring - #72

Merged
noCharger merged 1 commit into
2.xfrom
backport/backport-38-to-2.x
Jan 3, 2023
Merged

[Backport 2.x] Bug fixes and refactoring#72
noCharger merged 1 commit into
2.xfrom
backport/backport-38-to-2.x

Conversation

@opensearch-trigger-bot

Copy link
Copy Markdown

Backport d8ba75b from #38

* Bug fixes and refactoring

1. Shallow clone SearchResponse in SearchActionFilter. The only
   properties that we're currently changing are SearchHit and
   timeTookMillis. This is also less brittle as we don't try to
   implement deserialization ourselves.
2. KendraIntelligentRanker doesn't transform if the required client
   settings (endpoint + execution plan ID) are missing.
3. A lot of refactoring to prepare for other transformers. Where we
   previously had logic of the form `if kendra_intelligent_ranking then
   do Kendra intelligent ranking`, now the APIs support arbitrary named
   transformers. This required updates to tests and configuration code.
4. Added tests and fixes for SearchConfigurationExtBuilder.

Signed-off-by: Michael Froh <froh@amazon.com>

* Address PR comments from myself

Looking at the PR on GitHub, I spotted a few mistakes and possible
improvements.

Signed-off-by: Michael Froh <froh@amazon.com>

* Address comments by noCharger

Signed-off-by: Michael Froh <froh@amazon.com>

Signed-off-by: Michael Froh <froh@amazon.com>
(cherry picked from commit d8ba75b)
@opensearch-trigger-bot
opensearch-trigger-bot Bot requested a review from a team January 3, 2023 17:56
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #72 (8bc45d2) into 2.x (8bc45d2) will not change coverage.
The diff coverage is n/a.

❗ Current head 8bc45d2 differs from pull request most recent head bba4ae9. Consider uploading reports for the commit bba4ae9 to get more accurate results

@@            Coverage Diff            @@
##                2.x      #72   +/-   ##
=========================================
  Coverage     60.43%   60.43%           
  Complexity      155      155           
=========================================
  Files            29       29           
  Lines           867      867           
  Branches        119      119           
=========================================
  Hits            524      524           
  Misses          304      304           
  Partials         39       39           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@noCharger
noCharger merged commit 0f25ddd into 2.x Jan 3, 2023
@gaiksaya
gaiksaya deleted the backport/backport-38-to-2.x branch October 15, 2025 21:03
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