-
Notifications
You must be signed in to change notification settings - Fork 916
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
[ignoreFilterIfFieldNotInIndex] Parse query string filters to determine if fields match an index #6126
[ignoreFilterIfFieldNotInIndex] Parse query string filters to determine if fields match an index #6126
Conversation
Signed-off-by: Nick Steinbaugh <nsteinbaugh@icr-team.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6126 +/- ##
===========================================
+ Coverage 32.93% 67.15% +34.22%
===========================================
Files 2260 3326 +1066
Lines 45769 64421 +18652
Branches 7200 10368 +3168
===========================================
+ Hits 15075 43264 +28189
+ Misses 29984 18621 -11363
- Partials 710 2536 +1826
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hello @neodescis, apologies about the delay. Going to go through this. I understand the issue, but could you provide some quick insight as that setting has caused some trouble in the past. Do we see any issue with bringing up that helper function and using it where you have it. Any impact to performance that is noticeable? Thank you! |
Do you mean using |
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.
Hello @neodescis,
Sorry about the delay. Played with it for a while. Works great! The filter bar warning change makes sense to me I believe.
❌ Invalid Prefix For Manual Changeset CreationInvalid description prefix. Found "feat". Only "skip" entry option is permitted for manual commit of changeset files. If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description. |
@neodescis, I think perhaps updates to the PR is disabled for this PR? There's some workflows that are failing and I believe the branch just needs to be updated. Could you enable it or just rebase from main? Otherwise, all good for approval upon passing workflow. Let me know if you need any assistance. Thank you so much! |
Hmm, it seems that GitHub pull requests from another "organization" cannot be set to allow edits by you. That is unfortunate! At any rate, I did just update the branch, so we'll see if that gets the workflow to pass. It seems you have to approve running them every time though, which is also unfortunate. Do you need a CHANGELOG entry, or anything else? I was holding off on that one just because merging it is never fun. |
That is good to know. I was curious why I couldn't update the branch via GitHub. Thank you for updating it! Re-triggered the workflows.
I have updated the PR with the template. So after updating the branch you should be good and don't need to change any file. If you don't mind checking the Changelog section I have added to the PR to make sure it's accurate that would be great. |
Workflow passed. Changelog entry in the PR description looks good to me. Thanks! |
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.
Awesome thank you. Going to try to get this into 2.14.
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
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-6126-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 24177b248c74ecf078b592b6ac20cf1698768ec6
# Push it to GitHub
git push --set-upstream origin backport/backport-6126-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x Then, create a pull request where the |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.14 2.14
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.14
# Create a new branch
git switch --create backport/backport-6126-to-2.14
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 24177b248c74ecf078b592b6ac20cf1698768ec6
# Push it to GitHub
git push --set-upstream origin backport/backport-6126-to-2.14
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.14 Then, create a pull request where the |
Signed-off-by: Nick Steinbaugh <nsteinbaugh@icr-team.com> (cherry picked from commit 24177b2)
Signed-off-by: Nick Steinbaugh <nsteinbaugh@icr-team.com> (cherry picked from commit 24177b2)
Signed-off-by: Nick Steinbaugh <nsteinbaugh@icr-team.com> (cherry picked from commit 24177b2)
Signed-off-by: Nick Steinbaugh <nsteinbaugh@icr-team.com> (cherry picked from commit 24177b2)
Signed-off-by: Nick Steinbaugh <nsteinbaugh@icr-team.com> (cherry picked from commit 24177b2)
Signed-off-by: Nick Steinbaugh <nsteinbaugh@icr-team.com>
Description
For "query_string" filters, parse the query string as lucene to determine if the query's fields matches any given index. This is pertinent when the
ignoreFilterIfFieldNotInIndex
advanced setting is enabled, as filters are only applied to applicable indexes.Also, for filter bar items, the "Warning" when a filter does not match any indexes has been updated to use the same logic.
Issues Resolved
closes #6036
Screenshot
Changelog
ignoreFilterIfFieldNotInIndex
is enabledTesting the changes
ignoreFilterIfFieldNotInIndex
{ "query": { "query_string": { "query": "foo: bar" } } }
Check List
yarn test:jest
yarn test:jest_integration