Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jmthomas
Copy link
Member

@jmthomas jmthomas commented May 9, 2025

No description provided.

@jmthomas jmthomas requested review from ryan-pratt and ryanmelt and removed request for ryanmelt May 9, 2025 13:57

// parse huge integer values into a bigint, and use a regular number otherwise
export function customNumberParser(value) {
return isSafeNumber(value) ? parseFloat(value) : BigInt(value)
Copy link
Member Author

@jmthomas jmthomas May 9, 2025

Choose a reason for hiding this comment

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

This was causing an exception because isSafeNumber was false for floating point numbers that can not be represented like 0.66666666666. So then BigInt was trying to create an integer from a float and was failing.

This fixes the screen error that was showing up in the Demo on the INST ADCS screen.

@codecov
Copy link

codecov bot commented May 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.12%. Comparing base (cde419c) to head (f96ad18).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2062      +/-   ##
==========================================
- Coverage   79.15%   79.12%   -0.03%     
==========================================
  Files         631      631              
  Lines       47536    47536              
  Branches      754      754              
==========================================
- Hits        37627    37614      -13     
- Misses       9826     9839      +13     
  Partials       83       83              
Flag Coverage Δ
python 84.05% <ø> (-0.09%) ⬇️
ruby-api 71.34% <ø> (ø)
ruby-backend 82.91% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jmthomas jmthomas requested a review from clayandgen May 9, 2025 14:30
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 9, 2025

@jmthomas jmthomas merged commit e120652 into main May 10, 2025
30 checks passed
@jmthomas jmthomas deleted the parse_num branch May 10, 2025 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants