-
Notifications
You must be signed in to change notification settings - Fork 894
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 SurroundingDocsView with URI encoded chars in document id #8869
base: main
Are you sure you want to change the base?
Fix SurroundingDocsView with URI encoded chars in document id #8869
Conversation
When viewing surrounding documents of a document which id contains chars such as `@` or `+`, these chars are encoded, preventing OpenSearch from finding the requested document. Decode the id to transform back the URI encoded chars to the actual chars in the document id to find it and unbreak the feature. Fixes opensearch-project#5711 Signed-off-by: Romain Tartière <[email protected]>
❌ Invalid Changelog HeadingThe '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax. |
❌ Changelog Entry Missing HyphenChangelog entries must begin with a hyphen (-). |
❌ Invalid Prefix For Manual Changeset CreationInvalid description prefix. Found "fix". 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. |
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!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8869 +/- ##
=======================================
Coverage 60.93% 60.93%
=======================================
Files 3800 3800
Lines 90878 90878
Branches 14323 14323
=======================================
Hits 55380 55380
Misses 31968 31968
Partials 3530 3530
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
When viewing surrounding documents of a document which id contains chars
such as
@
or+
, these chars are encoded, preventing OpenSearch fromfinding the requested document.
Decode the id to transform back the URI encoded chars to the actual
chars in the document id to find it and unbreak the feature.
Fixes #5711
Signed-off-by: Romain Tartière [email protected]
Changelog