Skip to content

refactor(backend): move mixins to generic - #13293

Merged
SchrodingersGat merged 25 commits into
inventree:masterfrom
matmair:refactor_model_mixins
Nov 22, 2026
Merged

SchrodingersGat merged 25 commits into
inventree:masterfrom
matmair:refactor_model_mixins

Conversation

@matmair

@matmair matmair commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Moves model mixins and adds docs for them.

ref #13256

  • docs for each mixin
  • separate import for base classes
  • backward compatible import point
  • changelog and docs for recommended imports

@matmair matmair added this to the 1.8.0 milestone Nov 16, 2026
@netlify

netlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

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

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

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.23486% with 79 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.40%. Comparing base (8ebb7a0) to head (2bda20a).

❌ Your patch check has failed because the patch coverage (89.62%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #13293      +/-   ##
==========================================
+ Coverage   90.38%   90.40%   +0.02%     
==========================================
  Files         904      904              
  Lines       83827    83792      -35     
  Branches     4308     4298      -10     
==========================================
- Hits        75766    75752      -14     
+ Misses       7047     7021      -26     
- Partials     1014     1019       +5     
Flag Coverage Δ
backend 93.92% <90.23%> (+<0.01%) ⬆️

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

Components Coverage Δ
Backend Apps 94.35% <90.00%> (-0.07%) ⬇️
Backend General 95.00% <89.62%> (-0.49%) ⬇️
Frontend 77.46% <ø> (+0.03%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matmair matmair changed the title move mixins to generic refactor(backend): move mixins to generic Nov 17, 2026
@matmair matmair self-assigned this Nov 17, 2026
@matmair matmair added refactor plugin Plugin ecosystem labels Nov 17, 2026
@matmair
matmair marked this pull request as ready for review November 22, 2026 18:01
@matmair

matmair commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

@SchrodingersGat ready for review and merge; all old imports continue to work, I would wait till 2.0 to break them.

Not sure if you want more information per mixin; I decided against linking the source code as it is pretty long in some instances and not too helpful.

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair nice, this is making some great progress!

@SchrodingersGat
SchrodingersGat merged commit afc88f5 into inventree:master Nov 22, 2026
46 of 47 checks passed
@SchrodingersGat
SchrodingersGat deleted the refactor_model_mixins branch November 22, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin Plugin ecosystem refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants