Skip to content

fix(backend): registry install command#11657

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

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

Conversation

@matmair

@matmair matmair commented Apr 1, 2026

Copy link
Copy Markdown
Member

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

netlify Bot commented Apr 1, 2026

Copy link
Copy Markdown

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

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

@matmair

matmair commented Apr 1, 2026

Copy link
Copy Markdown
Member Author

@vrzh can you qualify if this solves your issue?

@codecov

codecov Bot commented Apr 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.44444% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.42%. Comparing base (ca6f73e) to head (60467c7).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11657      +/-   ##
==========================================
+ Coverage   86.46%   91.42%   +4.96%     
==========================================
  Files        1386      979     -407     
  Lines       89107    52503   -36604     
  Branches    10112        0   -10112     
==========================================
- Hits        77042    48002   -29040     
+ Misses      12002     4501    -7501     
+ Partials       63        0      -63     
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

vrzh commented Apr 6, 2026

Copy link
Copy Markdown

@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

matmair commented Apr 6, 2026

Copy link
Copy Markdown
Member Author

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

vrzh commented Apr 8, 2026

Copy link
Copy Markdown

@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

matmair commented Apr 22, 2026

Copy link
Copy Markdown
Member Author

@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

vrzh commented May 26, 2026

Copy link
Copy Markdown

@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
@matmair matmair removed backport Apply this label to a PR to enable auto-backport action backport-to-1.3.x labels Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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