Skip to content

Display more output information in "build allocated stock" table#11276

Merged
SchrodingersGat merged 12 commits intoinventree:masterfrom
SchrodingersGat:build-output-sn
Feb 11, 2026
Merged

Display more output information in "build allocated stock" table#11276
SchrodingersGat merged 12 commits intoinventree:masterfrom
SchrodingersGat:build-output-sn

Conversation

@SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat added this to the 1.2.0 milestone Feb 10, 2026
@SchrodingersGat SchrodingersGat added api Relates to the API build Build orders User Interface Related to the frontend / User Interface labels Feb 10, 2026
@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 45d5a1c
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/698c6bc57da04a00086941db
😎 Deploy Preview https://deploy-preview-11276--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93 (no change from production)
Accessibility: 81 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.08%. Comparing base (e963b82) to head (45d5a1c).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11276      +/-   ##
==========================================
+ Coverage   88.06%   88.08%   +0.02%     
==========================================
  Files        1292     1292              
  Lines       58527    58481      -46     
  Branches     1964     1943      -21     
==========================================
- Hits        51539    51511      -28     
+ Misses       6499     6486      -13     
+ Partials      489      484       -5     
Flag Coverage Δ
backend 89.30% <100.00%> (ø)

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

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

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 10, 2026

Merging this PR will degrade performance by 35.94%

❌ 3 regressed benchmarks
✅ 41 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime test_api_list_performance[/api/build/item/] 597.7 ms 933 ms -35.94%
WallTime test_api_options_performance[/api/build/line/] 899.9 ms 1,162.4 ms -22.58%
WallTime test_api_options_performance[/api/build/item/] 645.2 ms 979.1 ms -34.1%

Comparing SchrodingersGat:build-output-sn (45d5a1c) with master (d24ba79)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (e963b82) during the generation of this report, so d24ba79 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link
Member

@matmair matmair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +1248 to +1261
install_into_detail = enable_filter(
StockItemSerializer(
source='install_into',
read_only=True,
allow_null=True,
label=_('Install Into'),
part_detail=False,
location_detail=False,
supplier_part_detail=False,
path_detail=False,
),
False,
prefetch_fields=['install_into', 'install_into__part'],
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you looked into the performance impact of this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is some performance hit by adding an enable_filter - even if it is not used in the final API output.

#11073 would be useful here

@SchrodingersGat SchrodingersGat merged commit 3ebf27d into inventree:master Feb 11, 2026
38 checks passed
@SchrodingersGat SchrodingersGat deleted the build-output-sn branch February 11, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API build Build orders User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Build Order "Allocated Stock" table shows stock item ID under "build output"

2 participants

Comments