Skip to content

[FR] add well-known mixin to let plugins define well-known urls - #12698

Merged
SchrodingersGat merged 14 commits into
inventree:masterfrom
matmair:matmair/issue11741
Aug 28, 2026
Merged

SchrodingersGat merged 14 commits into
inventree:masterfrom
matmair:matmair/issue11741

Conversation

@matmair

@matmair matmair commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Fixes #11741
Adds a way for plugins to add .well-known entry points to the instance; helpful for A&A, system integrations and auto-discovery. Full docs provided with more insights.

@matmair matmair added this to the 1.6.0 milestone Aug 24, 2026
@matmair matmair self-assigned this Aug 24, 2026
@matmair matmair added enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem labels Aug 24, 2026
@netlify

netlify Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

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

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

@codecov

codecov Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.84%. Comparing base (08b0bb8) to head (95ba430).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12698      +/-   ##
==========================================
+ Coverage   86.83%   86.84%   +0.01%     
==========================================
  Files        1456     1459       +3     
  Lines       97725    97810      +85     
  Branches    11330    11330              
==========================================
+ Hits        84856    84944      +88     
+ Misses      12803    12800       -3     
  Partials       66       66              
Flag Coverage Δ
backend 90.90% <100.00%> (+0.01%) ⬆️

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

Components Coverage Δ
Backend Apps 92.27% <100.00%> (+0.01%) ⬆️
Backend General 93.78% <ø> (ø)
Frontend 79.70% <ø> (ø)
🚀 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 draft August 24, 2026 20:03
@matmair
matmair marked this pull request as ready for review August 24, 2026 21:14
@matmair

matmair commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@SchrodingersGat ready for review and merge

@SchrodingersGat

Copy link
Copy Markdown
Member

As the well-known endpoints are not going to be changing frequently - i.e. only when the plugin registry hash changes, can we cache the wellknownindexview endpoint - rather than regenerating the list of endpoints on each request?

We could build this cache whenever the plugin registry is reloaded, or first time the API endpoints is requested, and this would reduce the DB hits on subsequent requests.

@matmair

matmair commented Aug 28, 2026

Copy link
Copy Markdown
Member Author

No, for some discovery use cases the response needs to change depending on data in the request (most often headers)

@matmair

matmair commented Aug 28, 2026

Copy link
Copy Markdown
Member Author

We could cache the plugin list but each needs to be called on each index request

@SchrodingersGat

Copy link
Copy Markdown
Member

@matmair ok that's fair enough. Nice implementation overall

@SchrodingersGat
SchrodingersGat merged commit 5244b8a into inventree:master Aug 28, 2026
42 checks passed
@SchrodingersGat
SchrodingersGat deleted the matmair/issue11741 branch August 28, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This is an suggested enhancement or new feature plugin Plugin ecosystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] add well-known mixin to let plugins define well-known data entry points

3 participants