Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

opensearch-trigger-bot[bot]
Copy link

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

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
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.

None yet

3 participants