Skip to content

[API] Refactor stock adjustment endpoints - #12488

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:stock-adjust-refactor
Jul 28, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:stock-adjust-refactor

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Refactoring existing API endpoints for stock adjustment actions

Database hit benchmarks

Endpoint Before After Reduction
/api/stock/count/ 1925 825 57%
/api/stock/add/ 1923 823 57%
/api/stock/remove/ 1923 823 57%
/api/stock/transfer/ 1124 724 36%

@netlify

netlify Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

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

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

@SchrodingersGat SchrodingersGat added stock Related to Stock models api Relates to the API refactor labels Jul 28, 2026
@SchrodingersGat SchrodingersGat added this to the 1.5.0 milestone Jul 28, 2026
@codecov

codecov Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.72%. Comparing base (6302748) to head (d8b3985).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12488      +/-   ##
==========================================
- Coverage   86.73%   86.72%   -0.01%     
==========================================
  Files        1444     1444              
  Lines       96039    96051      +12     
  Branches    11213    11213              
==========================================
+ Hits        83296    83298       +2     
- Misses      12679    12689      +10     
  Partials       64       64              
Flag Coverage Δ
backend 90.75% <90.90%> (-0.02%) ⬇️

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

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

@SchrodingersGat
SchrodingersGat merged commit 1cee1bd into inventree:master Jul 28, 2026
43 checks passed
@SchrodingersGat
SchrodingersGat deleted the stock-adjust-refactor branch July 28, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API refactor stock Related to Stock models

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant