InvenTree icon indicating copy to clipboard operation
InvenTree copied to clipboard

Parametric view showing parameters of every category

Open TimBilliet opened this issue 8 months ago • 4 comments

Please verify that this bug has NOT been raised before.

  • [x] I checked and didn't find a similar issue

Describe the bug*

The issue is exactly like in #11381

I'm using the caddyfile, .env file and docker-compose.yml file from the master branch.

When using the parametric view to look at parts in a certain category like capacitors for example, all other parameters like, resistance, etc are also visible. I tested with a clean new database and the database from the demo dataset". Both result in the same issue. Following screenshot uses the demo dataset.

Image

Running the latest devcontainer in vscode from the master branch does not result in this issue.

Steps to Reproduce

I'm using a ubuntu desktop 24.04.4 virtualbox VM with a Docker setup

Clone the master branch

Copy the Caddyfile, .env file and docker-compose.yml file into a folder

In that folder run the following commands:

docker compose pull

docker compose run --rm inventree-server invoke update

docker compose run --rm inventree-server invoke dev.setup-test -i

docker compose run inventree-server invoke superuser

docker compose down

docker compose up -d

Nothing was changed in the .env file, config.yaml or docker-compose. yml

Expected behaviour

This is a screenshot from the official demo server

Image

Deployment Method

Docker

Version Information

InvenTree-Version: 1.2.4 Django Version: 5.2.11 Commit Hash: 4789a20 Commit Date: 2026-03-17 Commit Branch: null Database: django.db.backends.postgresql Debug-Mode: False Deployed using Docker: True Platform: Linux-6.17.0-19-generic-x86_64-with-glibc2.41 Installer: DOC Active plugins: [{"name":"InvenTreeBarcode","slug":"inventreebarcode","version":"2.1.0"},{"name":"BOM Exporter","slug":"bom-exporter","version":"1.1.0"},{"name":"InvenTree Exporter","slug":"inventree-exporter","version":"1.0.0"},{"name":"Parameter Exporter","slug":"parameter-exporter","version":"2.0.0"},{"name":"InvenTreeEmailNotifications","slug":"inventree-email-notification","version":"1.0.0"},{"name":"InvenTreeUINotifications","slug":"inventree-ui-notification","version":"1.0.0"},{"name":"InvenTreeCurrencyExchange","slug":"inventreecurrencyexchange","version":"1.0.0"},{"name":"InvenTreeMachines","slug":"inventree-machines","version":"1.0.0"},{"name":"InvenTreeLabel","slug":"inventreelabel","version":"1.1.0"},{"name":"InvenTreeLabelMachine","slug":"inventreelabelmachine","version":"1.0.0"}]

Image

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Not reproducible

Relevant log output

inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:52 +0000] "GET /api/notifications/?read=false&limit=1 HTTP/1.1" 200 52 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:53 +0000] "GET /web/part/category/6/parts HTTP/1.1" 200 3165 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/auth/v1/auth/session HTTP/1.1" 200 280 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/user/me/ HTTP/1.1" 200 366 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/user/roles/ HTTP/1.1" 200 5822 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /auth/ HTTP/1.1" 200 0 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 2026-03-18T13:16:55.353630Z [warning  ] INVE-W12: Signup attempt blocked, because registration is disabled via setting LOGIN_ENABLE_REG. [inventree] ip=172.18.0.1 request_id=5df6de3c-5ede-4715-874b-7bbf45888cb9 user_id=9
inventree-server  | 2026-03-18 13:16:55,353 WARNING {'event': 'INVE-W12: Signup attempt blocked, because registration is disabled via setting LOGIN_ENABLE_REG.', 'request_id': '5df6de3c-5ede-4715-874b-7bbf45888cb9', 'user_id': 9, 'ip': '172.18.0.1', 'timestamp': '2026-03-18T13:16:55.353630Z', 'logger': 'inventree', 'level': 'warning'}
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/auth/v1/config HTTP/1.1" 200 430 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 2026-03-18T13:16:55.367717Z [warning  ] INVE-W7: Email backend not configured [inventree] ip=172.18.0.1 request_id=0b2ecf6f-f715-469d-86be-274fc4f971f2 user_id=9
inventree-server  | 2026-03-18 13:16:55,367 WARNING {'event': 'INVE-W7: Email backend not configured', 'request_id': '0b2ecf6f-f715-469d-86be-274fc4f971f2', 'ip': '172.18.0.1', 'user_id': 9, 'timestamp': '2026-03-18T13:16:55.367717Z', 'logger': 'inventree', 'level': 'warning'}
inventree-server  | 2026-03-18T13:16:55.367960Z [warning  ] InvenTree system health checks failed [inventree] ip=172.18.0.1 request_id=0b2ecf6f-f715-469d-86be-274fc4f971f2 user_id=9
inventree-server  | 2026-03-18 13:16:55,367 WARNING {'event': 'InvenTree system health checks failed', 'request_id': '0b2ecf6f-f715-469d-86be-274fc4f971f2', 'ip': '172.18.0.1', 'user_id': 9, 'timestamp': '2026-03-18T13:16:55.367960Z', 'logger': 'inventree', 'level': 'warning'}
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/ HTTP/1.1" 200 1681 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/generic/status/ HTTP/1.1" 200 8210 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/settings/user/ HTTP/1.1" 200 11330 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/settings/global/ HTTP/1.1" 200 46810 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "POST /api/system-internal/observability/end HTTP/1.1" 200 15 "http://inventree.localhost/web/logged-in" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/plugins/ui/features/navigation/ HTTP/1.1" 200 2 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/plugins/ui/features/spotlight_action/ HTTP/1.1" 200 2 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/notifications/?read=false&limit=1 HTTP/1.1" 200 52 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:55 +0000] "GET /api/part/category/6/?path_detail=true HTTP/1.1" 200 421 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:56 +0000] "GET /api/parameter/template/?active=true&for_model=part&exists_for_model=part HTTP/1.1" 200 2501 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:56 +0000] "GET /api/plugins/ui/features/panel/?target_model=partcategory&target_id=6 HTTP/1.1" 200 2 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:56 +0000] "OPTIONS /api/part/?category=6&cascade=true&category_detail=true&parameters=true HTTP/1.1" 200 63778 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:56 +0000] "GET /api/part/?category=6&cascade=true&category_detail=true&parameters=true&limit=25&offset=0 HTTP/1.1" 200 35084 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:56 +0000] "GET /auth/ HTTP/1.1" 200 0 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:56 +0000] "GET /auth/ HTTP/1.1" 200 0 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
inventree-server  | 172.18.0.1 - - [18/Mar/2026:13:16:56 +0000] "GET /auth/ HTTP/1.1" 200 0 "http://inventree.localhost/web/part/category/6/parts" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"

TimBilliet avatar Mar 18 '26 13:03 TimBilliet

I tried a bare metal setup and i got the same issue when using the stable branch. With the master branch there was no issue,

TimBilliet avatar Mar 18 '26 20:03 TimBilliet

Your report is for the stable version 1.2.4; the fix in the linked https://github.com/inventree/InvenTree/issues/11381 was merged in and is marked for 1.3.0, so this is to be expected. The demo is running on pre-releases versions build directly from "master"

matmair avatar Mar 18 '26 23:03 matmair

We are using git flow for our versioning - see https://docs.inventree.org/en/stable/develop/contributing/#branches-and-versioning for more details

matmair avatar Mar 18 '26 23:03 matmair

@TimBilliet I'm closing this issue out, you can expect to see this fix in the upcoming 1.3.0 release

SchrodingersGat avatar Mar 19 '26 00:03 SchrodingersGat