Skip to content

Allow a separate precision for distance tolerances - #1441

Draft
nicboone8 wants to merge 1 commit into
mainfrom
fix/gdt-tolerance-precision
Draft

nicboone8 wants to merge 1 commit into
mainfrom
fix/gdt-tolerance-precision

Conversation

@nicboone8

Copy link
Copy Markdown

Add optional tolerance_precision to AnnotationBasicDimension. When omitted, the engine uses precision for both the nominal dimension and its tolerance; an explicit override allows different decimal counts, including zero.

Keep older commands valid and omit the new field from serialized output when unset. Includes regenerated OpenAPI and a regression test for old payloads and explicit zero.

Companion to https://github.com/KittyCAD/engine/pull/5298. The KCL follow-up will expose this as tolerancePrecision.

@codecov

codecov Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@29cdf3c). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1441   +/-   ##
=======================================
  Coverage        ?   36.12%           
=======================================
  Files           ?       32           
  Lines           ?     1733           
  Branches        ?        0           
=======================================
  Hits            ?      626           
  Misses          ?     1107           
  Partials        ?        0           
Flag Coverage Δ
unittests 36.12% <ø> (?)

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

☔ View full report in Codecov by Harness.
📢 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.

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.

1 participant