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

Add query shape hash method #64

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

dzane17
Copy link
Collaborator

@dzane17 dzane17 commented Aug 1, 2024

Description

  • Add hash code method in QueryShapeGenerator class
  • Add new utility class (SearchSourceBuilderUtils) to supply common search source objects for use in UT/ITs

@dzane17 dzane17 force-pushed the shape-hash branch 2 times, most recently from e4433f7 to 1741799 Compare August 1, 2024 23:02
@dzane17 dzane17 changed the title Add query shape hash code Add query shape hash method Aug 1, 2024
Copy link
Collaborator

@jainankitk jainankitk left a 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

@dzane17
Copy link
Collaborator Author

dzane17 commented Aug 8, 2024

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

It is not unrelated. I am adding new UTs in this PR so SearchSourceBuilderUtils was not expressly needed until now.

Copy link
Collaborator

@jainankitk jainankitk left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Collaborator

@deshsidd deshsidd 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 the refactoring of the test too! LGTM

@dzane17 dzane17 merged commit 1f4c4c6 into opensearch-project:main Aug 19, 2024
15 of 16 checks passed
@dzane17 dzane17 deleted the shape-hash branch August 19, 2024 17:50
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 28, 2024
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>
deshsidd pushed a commit that referenced this pull request Aug 28, 2024
(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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants