-
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 a typo while inspecting values for large numerals in OSD and the JS client #8839
Fix a typo while inspecting values for large numerals in OSD and the JS client #8839
Conversation
Signed-off-by: Miki <[email protected]>
Ref: opensearch-project/opensearch-js#889 Signed-off-by: Miki <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8839 +/- ##
=======================================
Coverage 60.86% 60.87%
=======================================
Files 3799 3799
Lines 90761 90761
Branches 14294 14294
=======================================
+ Hits 55246 55248 +2
+ Misses 32005 32004 -1
+ Partials 3510 3509 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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
//ToDo: Remove when opensearch-js is released to include https://github.com/opensearch-project/opensearch-js/pull/889 | ||
promises.push( | ||
patchFile('node_modules/@opensearch-project/opensearch/lib/Serializer.js', [ | ||
{ | ||
from: 'val < Number.MAX_SAFE_INTEGER', | ||
to: 'val < Number.MIN_SAFE_INTEGER', | ||
}, | ||
]) | ||
); |
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.
2.13.0 been released https://github.com/opensearch-project/opensearch-js/releases/tag/2.13.0, guess we can remove this?
@@ -69,7 +69,7 @@ export const parse = ( | |||
numeralsAreNumbers && | |||
typeof val === 'number' && | |||
isFinite(val) && | |||
(val < Number.MAX_SAFE_INTEGER || val > Number.MAX_SAFE_INTEGER) | |||
(val < Number.MIN_SAFE_INTEGER || val > Number.MAX_SAFE_INTEGER) |
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.
nice catch!
…JS client (#8839) * [@osd/std] Fix typo while inspecting values for large numerals Signed-off-by: Miki <[email protected]> * Patch @opensearch-project/opensearch to fix a typo Ref: opensearch-project/opensearch-js#889 Signed-off-by: Miki <[email protected]> * Changeset file for PR #8839 created/updated --------- Signed-off-by: Miki <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit e993d24) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Fix a typo while inspecting values for large numerals in OSD and the JS client
Note:
Since JS client 2.x has breaking changes, we cannot adopt it immediately and cannot wait for it to be fixed; hence the client is patched with the commit.
Changelog
Check List
yarn test:jest
yarn test:jest_integration