Skip to content

WA-VERIFY-102: Audit BigDecimal.new usage (Ruby 3.x) #1105

@kitcommerce

Description

@kitcommerce

Summary

Audit for removed BigDecimal constructor API usage (BigDecimal.new). Ruby 3.x removes/changes deprecated constructors, and this commonly breaks upgrades.

Approach

Run detection:

cd /Users/Shared/openclaw/projects/workarea-modernization/repos/workarea
rg -n "\\bBigDecimal\\.new\\b" core admin storefront | head -n 200

Objective

  • Confirm Workarea does not call BigDecimal.new.
  • If present, replace with a supported constructor (BigDecimal(...) or BigDecimal("...")), preserving behavior.

Client Impact

None expected (internal numeric conversion behavior should remain correct).

Acceptance Criteria

  • All BigDecimal.new call sites audited
  • Deprecated calls replaced with supported BigDecimal constructors
  • Add/adjust tests where conversion/rounding behavior is sensitive

Verification Plan

  • Run targeted tests.
  • Re-run detection and confirm no remaining matches.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions