* Fix BuildLineSerializer
- use SubquerySum not Sum
* Add regression test
* Adjust existing API test thresholds
* Refactor assertion message in test_api.py
Simplified assertion message for GROUP BY check in count queries.
* Fix assertion message in count query test
(cherry picked from commit ce52e57fba)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Ensure generated label PDFs retain their extension
* Test generated label PDF filename handling
(cherry picked from commit 98f4a8203b)
Co-authored-by: Petr Ledvina <ledvina@ekotip.cz>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
- regex escape package name
- allow package without version indicator
- prevent duplication of entries within the plugins file
- add regression tests
(cherry picked from commit 225157153e)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Users created via Admin Center never receive password reset emails
Fixes#12733
* fix issue when using registration endpoint
* remove duplicate code path; we now always do that
* remove old test backfill that is not required anymore
(cherry picked from commit 6b1a3b899e)
Co-authored-by: Matthias Mair <code@mjmair.com>
* Add owner field to stock location create/edit form (#12537)
The platform UI form for stock locations is built from the explicit
field list in stockLocationFields(), which did not include 'owner'.
The StockLocation model (migration 0057), LocationSerializer and the
documentation all support the owner field, so restore UI parity by
adding it, following the same pattern as the stock item form.
* Hide owner field when stock ownership is disabled (#12537)
Per review: only render the owner field in the stock location
create/edit forms when the STOCK_OWNERSHIP_CONTROL global setting is
enabled. stockLocationFields() becomes the useStockLocationFields()
hook so the form can react to the setting, following the same pattern
as the expiry date field in useStockFields().
(cherry picked from commit 028d1cba1f)
Co-authored-by: wyyd-yxc <2868299717@qq.com>
* [bug] Handle null plugin instance
* Add regression test
* Fix secondary instances of same bug
(cherry picked from commit 2566d332a8)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Robustify plugin file loading
* Lock static file copying
* Improve robustness of static file copying
* Add regression tests
* Handle database not being ready
* Fix identified limitation and refactor code
* Attempt to fix CI job
* instrumentation for CI - will revert
* Another bugfix attempt
(cherry picked from commit b4cb9a9746)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Enhanced error message on CSRF failure
* Defer to 'detail' field if exists
(cherry picked from commit 9a416df5d4)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Refactor part pricing updates
- Handles cases where underlying part has been deleted
* Add regression tests
(cherry picked from commit fa44925b21)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Adjust get_bom_hash function:
- Optionally skip inclusion of part names
- Skip 'piece_count' if default value set
* Fall back to legacy comparison
* Add per-line-item check
* Add regression tests
* Fix security hole for metadata API
* Regression test for field injection
(cherry picked from commit 694d890ce5)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Clarify SSO setup via Database Admin interface
Fixes#10415 by documenting that Social applications are
configured in Django admin at /admin/, not via config.yaml or API.
* docs: move Database Admin access details to db_admin.md
Per review: drop the access-how-to from SSO.md and link to the Database Admin guide instead.
---------
(cherry picked from commit ffcbbf6292)
Co-authored-by: Senior Data Engineer <br198064@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
* Document Docker Compose container health checks
Add user documentation and CHANGELOG entry for the production
docker-compose health checks proposed in #12124.
* docs: match health-check docs to merged docker-compose.yml
Reviewed against inventree/InvenTree#12124: server uses invoke server-health, proxy probes Caddy :9090, worker uses invoke worker-health.
(cherry picked from commit fe489bd6b6)
Co-authored-by: Senior Data Engineer <br198064@gmail.com>
* Add Docker container health checks
* Use invoke tasks for Docker container health checks
Updates server and worker healthchecks to use invoke server-health
and invoke worker-health as requested in #12124 review.
Refs #12124
* Added HTTP host check to server health check
* Add health-check endpoint for Caddyfile
* Simplify health check for Caddy
* Remove test file
---------
(cherry picked from commit 773ed4eb3a)
Co-authored-by: getpwnam <cp@evilbit.co.uk>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Co-authored-by: DESKTOP-691E36A\Administrator <br198064@gmail.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
* Fill out stock location based on part default
* Add playwright tests
(cherry picked from commit 871147d936)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
* Bug fix for tracing setup
* Support forking against multiple PIDs
* Updated documentation
(cherry picked from commit fcbcef5aae)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>