Skip to content

BOM Validation Improvements (#12780) - #12786

Merged
SchrodingersGat merged 1 commit into
inventree:1.5.xfrom
SchrodingersGat:bom-fix-backport
Sep 5, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:1.5.xfrom
SchrodingersGat:bom-fix-backport

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Backport of #12780

* Adjust get_bom_hash function:

- Optionally skip inclusion of part names
- Skip 'piece_count' if default value set

* Fall back to legacy comparison

* Add per-line-item check

* Add regression tests
@SchrodingersGat SchrodingersGat added this to the 1.5.3 milestone Sep 4, 2026
@SchrodingersGat SchrodingersGat added the bug Identifies a bug which needs to be addressed label Sep 4, 2026
@codecov

codecov Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.77%. Comparing base (4a795cc) to head (9e567c1).

Additional details and impacted files
@@           Coverage Diff           @@
##            1.5.x   #12786   +/-   ##
=======================================
  Coverage   86.77%   86.77%           
=======================================
  Files        1449     1449           
  Lines       97082    97084    +2     
  Branches    11261    11261           
=======================================
+ Hits        84241    84246    +5     
+ Misses      12777    12774    -3     
  Partials       64       64           
Flag Coverage Δ
backend 90.73% <100.00%> (+<0.01%) ⬆️

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

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

@SchrodingersGat
SchrodingersGat merged commit c154bfa into inventree:1.5.x Sep 5, 2026
35 checks passed
@SchrodingersGat
SchrodingersGat deleted the bom-fix-backport branch September 5, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant