-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add query shape hash method #64
Conversation
e4433f7
to
1741799
Compare
src/main/java/org/opensearch/plugin/insights/core/service/categorizer/QueryShapeGenerator.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new utility class (SearchSourceBuilderUtils) to supply common search source objects for use in UT/ITs
Refactoring PRs should always be completely separate IMO. Even if the PR seems small, we can break it down further instead of combining unrelated code changes
src/main/java/org/opensearch/plugin/insights/core/service/categorizer/QueryShapeGenerator.java
Outdated
Show resolved
Hide resolved
It is not unrelated. I am adding new UTs in this PR so SearchSourceBuilderUtils was not expressly needed until now. |
src/test/java/org/opensearch/plugin/insights/SearchSourceBuilderUtils.java
Outdated
Show resolved
Hide resolved
Signed-off-by: David Zane <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the refactoring of the test too! LGTM
Signed-off-by: David Zane <[email protected]> (cherry picked from commit 1f4c4c6) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 1f4c4c6) Signed-off-by: David Zane <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description