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 a typo while inspecting values for large numerals in OSD and the JS client #8839

Merged
merged 3 commits into from
Nov 15, 2024

Conversation

AMoo-Miki
Copy link
Collaborator

@AMoo-Miki AMoo-Miki commented Nov 10, 2024

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

  • fix: Fix a typo while inspecting values for large numerals in OSD and the JS client

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link

codecov bot commented Nov 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.87%. Comparing base (696b792) to head (f631cf9).
Report is 11 commits behind head on main.

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     
Flag Coverage Δ
Linux_1 29.04% <ø> (ø)
Linux_2 56.39% <ø> (ø)
Linux_3 37.81% <ø> (+<0.01%) ⬆️
Linux_4 29.87% <ø> (ø)
Windows_1 29.06% <ø> (ø)
Windows_2 56.34% <ø> (ø)
Windows_3 37.81% <ø> (ø)
Windows_4 29.87% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Hailong-am Hailong-am left a comment

Choose a reason for hiding this comment

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

thanks

Comment on lines +87 to +95
//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',
},
])
);
Copy link
Collaborator

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)
Copy link
Member

Choose a reason for hiding this comment

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

nice catch!

@AMoo-Miki AMoo-Miki merged commit e993d24 into opensearch-project:main Nov 15, 2024
70 of 71 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 15, 2024
…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>
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