Repository navigation
[refactor] Build allocation endpoints - #12361
Merged
SchrodingersGat merged 41 commits intoJul 24, 2026
Merged
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Codecov Report❌ Patch coverage is ❌ Your project check has failed because the head coverage (85.68%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #12361 +/- ##
==========================================
- Coverage 86.86% 83.65% -3.22%
==========================================
Files 1442 1442
Lines 95245 101490 +6245
Branches 11101 11104 +3
==========================================
+ Hits 82735 84898 +2163
- Misses 12445 16527 +4082
Partials 65 65
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Lowkey-wizard
added a commit
to EQUA-AI/InvenTree
that referenced
this pull request
Aug 7, 2026
Upstream inventree#12361/inventree#12478 route all build-allocation validation through the new StockItem.bulk_allocation_count() and persist via bulk_create, which bypasses BuildItem.clean(). Add the job-kit domain as the fourth accumulator so builds cannot consume maintenance-reserved stock, and teach can_delete() to refuse cleanly on job-kit rows (PROTECT FK) instead of raising ProtectedError. Co-Authored-By: Claude Fable 5 <[email protected]>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Benchmarks
Unit tests were added to benchmark against a high level of line items (100 items per API test). Counted the number of database hits for each API call.
/build/:id/auto-allocate/build/:id/allocate/build/:id/complete/build:/id/finishTasks