Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Build order consume #8191

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

SchrodingersGat
Copy link
Member

This is a large(ish) feature branch which allows stock to be consumed by a build order before the build order is complete.

This allows more complex (and useful) workflows, where the build might take some significant time, but the stock is consumed at the start. e.g. a batch of PCBs are loaded, but then require a lot of testing, etc.

Currently, the allocated stock must "languish" in the build order, and this makes tracking of real stock quantities difficult.

Given that this feature might take a while to integrate and test, I am targetting it (for now at least) against 1.0.0. This will not be implemented in the legacy user interface.

TODO

  • Update documenation around new workflows
  • PUI updates
  • Playwright testing
  • Updated unit testing
  • Ensure partial allocation vs partial consumption works well

@SchrodingersGat SchrodingersGat added this to the 1.0.0 milestone Sep 26, 2024
@SchrodingersGat SchrodingersGat marked this pull request as draft September 26, 2024 10:37
Copy link

netlify bot commented Sep 26, 2024

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

Name Link
🔨 Latest commit 5f96763
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/66fb6134086d1b0008d01b74
😎 Deploy Preview https://deploy-preview-8191--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: 100 (🟢 up 1 from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (no change from production)
SEO: 70 (no change from production)
PWA: -
View the detailed breakdown and full score reports

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

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 69.23077% with 8 lines in your changes missing coverage. Please review.

Project coverage is 83.94%. Comparing base (fe7bbc2) to head (5f96763).

Files with missing lines Patch % Lines
src/backend/InvenTree/build/api.py 40.00% 3 Missing ⚠️
src/backend/InvenTree/build/models.py 71.42% 2 Missing ⚠️
src/frontend/src/tables/build/BuildLineTable.tsx 0.00% 2 Missing ⚠️
src/frontend/src/tables/ColumnRenderers.tsx 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8191      +/-   ##
==========================================
- Coverage   84.30%   83.94%   -0.37%     
==========================================
  Files        1160     1162       +2     
  Lines       52366    52418      +52     
  Branches     1892     1895       +3     
==========================================
- Hits        44149    44004     -145     
- Misses       7736     7957     +221     
+ Partials      481      457      -24     
Flag Coverage Δ
backend 85.99% <72.22%> (-0.01%) ⬇️
pui 65.62% <62.50%> (-0.63%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build orders feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant