Skip to content

refactor(backend): fix remaining undocumented path based serializer mutations - #10495

Merged
SchrodingersGat merged 10 commits into
inventree:masterfrom
matmair:refactor(backend)--fix-serializer-mutations
Oct 6, 2025
Merged

SchrodingersGat merged 10 commits into
inventree:masterfrom
matmair:refactor(backend)--fix-serializer-mutations

Conversation

@matmair

@matmair matmair commented Oct 5, 2025

Copy link
Copy Markdown
Member

Closes #9481

@matmair matmair added this to the 1.1.0 milestone Oct 5, 2025
@matmair matmair self-assigned this Oct 5, 2025
@matmair matmair added api Relates to the API refactor labels Oct 5, 2025
@netlify

netlify Bot commented Oct 5, 2025 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 1c8b56b
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/68e2ed8f9f4b060008be6cfc
😎 Deploy Preview https://deploy-preview-10495--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: 94 (🔴 down 1 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

codecov Bot commented Oct 5, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.62%. Comparing base (d7b4997) to head (1c8b56b).
⚠️ Report is 267 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10495   +/-   ##
=======================================
  Coverage   87.62%   87.62%           
=======================================
  Files        1266     1266           
  Lines       56924    56933    +9     
  Branches     2054     2054           
=======================================
+ Hits        49878    49889   +11     
+ Misses       6543     6541    -2     
  Partials      503      503           
Flag Coverage Δ
backend 89.35% <100.00%> (+<0.01%) ⬆️

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

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

@matmair
matmair marked this pull request as ready for review October 5, 2025 12:23
@matmair

matmair commented Oct 5, 2025

Copy link
Copy Markdown
Member Author

@SchrodingersGat ready for review and merge, this closes #9481 after the extensive work @Reza98Sh and @1337joe have done.

In a follow-ups we could restructure serializers to use decorators to mark these optional fields and move the serializer side to a more introspective - friendly method. That would, when done correctly, enable us to CI test for undocumented mutations. All of those would be another massive lift though.

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair just needs to fix merge conflicts

@matmair

matmair commented Oct 5, 2025

Copy link
Copy Markdown
Member Author

@SchrodingersGat merge conflicts are addressed

@matmair

matmair commented Oct 5, 2025

Copy link
Copy Markdown
Member Author

@SchrodingersGat readt for merge

@SchrodingersGat
SchrodingersGat merged commit 946418e into inventree:master Oct 6, 2025
@SchrodingersGat

Copy link
Copy Markdown
Member

Thanks @matmair

@SchrodingersGat
SchrodingersGat deleted the refactor(backend)--fix-serializer-mutations branch October 6, 2025 00:21
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[API] Reduce hidden mutations

2 participants