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

Fix for #375 - Added .Strict(bool) and .Verbatim(bool) methods on… #509

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

DumboJetEngine
Copy link
Contributor

Description

Fix for #375 - Added .Strict(bool) and .Verbatim(bool) methods on QueryContainer that recursively apply the respective attribute to all subqueries. Also added a .Name(string) method on QueryContainer that names the (root) contained query.

Issues Resolved

#375

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@Xtansia Xtansia left a comment

Choose a reason for hiding this comment

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

Hi @DumboJetEngine,

Apologies for taking a bit to getting to review this.

I've added a few comments with my thoughts.

@DumboJetEngine DumboJetEngine force-pushed the fix_375 branch 2 times, most recently from 1636310 to 478d7e8 Compare February 6, 2024 16:49
…ods on `QueryContainer` to help modify contained query attributes. (opensearch-project#375)

Signed-off-by: Kostas <[email protected]>
@Xtansia Xtansia merged commit e4f715e into opensearch-project:main Feb 6, 2024
3 checks passed
@Xtansia
Copy link
Collaborator

Xtansia commented Feb 6, 2024

Thanks @DumboJetEngine!

@Xtansia Xtansia added the backport 1.x Backport to 1.x branch label Feb 6, 2024
@opensearch-trigger-bot
Copy link
Contributor

The backport to 1.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-1.x 1.x
# Navigate to the new working tree
cd .worktrees/backport-1.x
# Create a new branch
git switch --create backport/backport-509-to-1.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e4f715e23cddceaf1268b06a48a1ffbc5fc3ffde
# Push it to GitHub
git push --set-upstream origin backport/backport-509-to-1.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-1.x

Then, create a pull request where the base branch is 1.x and the compare/head branch is backport/backport-509-to-1.x.

Xtansia pushed a commit to Xtansia/opensearch-net that referenced this pull request Feb 6, 2024
…yContainer` to help modify contained query attributes. (opensearch-project#375) (opensearch-project#509)

Signed-off-by: Kostas <[email protected]>
(cherry picked from commit e4f715e)
dblock pushed a commit that referenced this pull request Feb 7, 2024
…yContainer` to help modify contained query attributes. (#375) (#509) (#539)

Signed-off-by: Kostas <[email protected]>
(cherry picked from commit e4f715e)

Co-authored-by: DumboJetEngine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.x Backport to 1.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants