Skip to content

Ignore 'piece_count' if default value - #12781

Merged
SchrodingersGat merged 2 commits into
inventree:masterfrom
SchrodingersGat:bom-piece-count
Sep 4, 2026
Merged

SchrodingersGat merged 2 commits into
inventree:masterfrom
SchrodingersGat:bom-piece-count

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Ref: #12422

When calculating BOM checksum, ignore the piece_count field if it is the default value (1) - this is to ensure backwards compatibility with checksum calculations performed before the field was introduced.

As #12422 has not made it into "stable" release code yet, it is good to catch this now.

@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Sep 4, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed area/BOM related to BOM/assembly logic and possible engine improvements labels Sep 4, 2026
@netlify

netlify Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 614457a
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a9a21463b123a000881b4ea

@codecov

codecov Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.16%. Comparing base (43bd525) to head (614457a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12781   +/-   ##
=======================================
  Coverage   87.16%   87.16%           
=======================================
  Files        1483     1483           
  Lines      100482   100509   +27     
  Branches    11618    11618           
=======================================
+ Hits        87581    87608   +27     
  Misses      12838    12838           
  Partials       63       63           
Flag Coverage Δ
backend 91.15% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
Backend Apps 92.42% <100.00%> (+<0.01%) ⬆️
Backend General 94.68% <ø> (ø)
Frontend 79.85% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit ff732d0 into inventree:master Sep 4, 2026
42 checks passed
@SchrodingersGat
SchrodingersGat deleted the bom-piece-count branch September 4, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/BOM related to BOM/assembly logic and possible engine improvements bug Identifies a bug which needs to be addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant