Skip to content

fix(backend): registry install command#11657

Open
matmair wants to merge 25 commits into
inventree:masterfrom
matmair:matmair/issue11460
Open

fix(backend): registry install command#11657
matmair wants to merge 25 commits into
inventree:masterfrom
matmair:matmair/issue11460

Conversation

@matmair
Copy link
Copy Markdown
Member

@matmair matmair commented Apr 1, 2026

Fixes problems with installing from custom indexes
Also cleans up logic a bit to be easier to understand

Fixes #11460

@matmair matmair added this to the 1.2.7 milestone Apr 1, 2026
@matmair matmair self-assigned this Apr 1, 2026
@matmair matmair requested a review from SchrodingersGat as a code owner April 1, 2026 22:38
@matmair matmair added bug Identifies a bug which needs to be addressed plugin Plugin ecosystem setup Relates to the InvenTree setup / installation process labels Apr 1, 2026
@matmair matmair marked this pull request as draft April 1, 2026 22:38
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 1, 2026

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

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

@matmair
Copy link
Copy Markdown
Member Author

matmair commented Apr 1, 2026

@vrzh can you qualify if this solves your issue?

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

❌ Patch coverage is 94.44444% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.49%. Comparing base (4c4e0eb) to head (c6cfc18).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11657      +/-   ##
==========================================
+ Coverage   86.57%   91.49%   +4.91%     
==========================================
  Files        1385      979     -406     
  Lines       88870    52449   -36421     
  Branches     9954        0    -9954     
==========================================
- Hits        76943    47989   -28954     
+ Misses      11865     4460    -7405     
+ Partials       62        0      -62     
Flag Coverage Δ
backend 90.50% <94.44%> (+0.01%) ⬆️
web ?

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

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

@vrzh
Copy link
Copy Markdown

vrzh commented Apr 6, 2026

@vrzh can you qualify if this solves your issue?

I am not sure what is the correct way to fill out the InvenTree UI, what are the correct values for "Package Name" and "Source URL". In my original bug report, I have 3 options, is the first one correct?

Package Name: "my_custom_plugin"
Source URL: "https://my-custom-domain.com/python"

@matmair
Copy link
Copy Markdown
Member Author

matmair commented Apr 6, 2026

That is a difficult question. Anything pip will resolve works - that can be a local package, an http/https repository, any number of vcs repositories.

The option you listed should work.

@SchrodingersGat SchrodingersGat modified the milestones: 1.2.7, 1.3.0 Apr 7, 2026
@vrzh
Copy link
Copy Markdown

vrzh commented Apr 8, 2026

@vrzh can you qualify if this solves your issue?

What is a quick way of testing this branch please, ideally through docker? Sorry, I am not very familiar with Inventree dev setup.

I saw here https://docs.inventree.org/en/latest/start/docker/#tagged-images that you can get the latest main using inventree:latest is there something quick and simple I can use in this case?

@SchrodingersGat SchrodingersGat modified the milestones: 1.3.0, 1.4.0 Apr 11, 2026
@SchrodingersGat
Copy link
Copy Markdown
Member

@matmair pushing this to the next release, hoping to get the 1.3.0 out soon

@SchrodingersGat SchrodingersGat modified the milestones: 1.4.0, 1.3.1 Apr 11, 2026
@SchrodingersGat SchrodingersGat added backport Apply this label to a PR to enable auto-backport action backport-to-1.3.x labels Apr 11, 2026
@matmair
Copy link
Copy Markdown
Member Author

matmair commented Apr 22, 2026

@vrzh we are not releasing docker-images for PRs; you would need a dev setup or build the branch locally; are you able to do that?

@SchrodingersGat SchrodingersGat modified the milestones: 1.3.1, 1.2.8, 1.3.2 Apr 26, 2026
@SchrodingersGat SchrodingersGat modified the milestones: 1.3.2, 1.4.0 May 5, 2026
@vrzh
Copy link
Copy Markdown

vrzh commented May 26, 2026

@vrzh we are not releasing docker-images for PRs; you would need a dev setup or build the branch locally; are you able to do that?

Hi, sorry for the delay, it took a while to follow the devcontainer instructions for the first time and getting it working. I think the fix works great, at least I now get the "Plugin installed successfully" toast message. Now I need to work on my plugin :)

FYI I now use the following:

Which is what I would have expected to work - so that is great. In the future I will also test specifying an exact version to install.

@matmair matmair marked this pull request as ready for review May 26, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Apply this label to a PR to enable auto-backport action backport-to-1.3.x bug Identifies a bug which needs to be addressed plugin Plugin ecosystem setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to install plugins through web UI using custom registry and/or Python wheel files.

3 participants