Skip to content

[bug] Build line fix - #12892

Merged
SchrodingersGat merged 7 commits into
inventree:masterfrom
SchrodingersGat:build-line-fix
Sep 20, 2026
Merged

SchrodingersGat merged 7 commits into
inventree:masterfrom
SchrodingersGat:build-line-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Fixes bug which introduced extremely slow API response for BuildLine API endpoint under certain filtering conditions.

@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Sep 20, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed api Relates to the API build Build orders backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x labels Sep 20, 2026
@netlify

netlify Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

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

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

@codecov

codecov Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.29%. Comparing base (10422dc) to head (c7e0087).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12892   +/-   ##
=======================================
  Coverage   87.29%   87.29%           
=======================================
  Files        1503     1503           
  Lines      102565   102587   +22     
  Branches    11671    11578   -93     
=======================================
+ Hits        89535    89556   +21     
- Misses      12965    12966    +1     
  Partials       65       65           
Flag Coverage Δ
backend 91.91% <100.00%> (+<0.01%) ⬆️

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

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

@SchrodingersGat
SchrodingersGat merged commit ce52e57 into inventree:master Sep 20, 2026
48 checks passed
@SchrodingersGat
SchrodingersGat deleted the build-line-fix branch September 20, 2026 13:41
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.5.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

SchrodingersGat added a commit that referenced this pull request Sep 20, 2026
* Fix BuildLineSerializer

- use SubquerySum not Sum

* Add regression test

* Adjust existing API test thresholds

* Refactor assertion message in test_api.py

Simplified assertion message for GROUP BY check in count queries.

* Fix assertion message in count query test

(cherry picked from commit ce52e57)

Co-authored-by: Oliver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x bug Identifies a bug which needs to be addressed build Build orders

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant