-
-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor to use structlog #8747
Refactor to use structlog #8747
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8747 +/- ##
==========================================
- Coverage 85.10% 84.65% -0.46%
==========================================
Files 1178 1180 +2
Lines 51748 51925 +177
Branches 2091 2013 -78
==========================================
- Hits 44040 43956 -84
- Misses 7178 7472 +294
+ Partials 530 497 -33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…refactor-use-structlog
@matmair nice, this will be a great improvement to the logging |
@matmair this merge has broken some processes. The docker image CI step no longer succeeds for example: https://github.com/inventree/InvenTree/actions/runs/12615522315/job/35155688674 And I have just pulled down master and attemted to run Traceback (most recent call last):
File "/usr/bin/invoke", line 8, in <module>
sys.exit(program.run())
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/invoke/program.py", line 398, in run
self.execute()
File "/usr/lib/python3.11/site-packages/invoke/program.py", line 583, in execute
executor.execute(*self.tasks)
File "/usr/lib/python3.11/site-packages/invoke/executor.py", line 140, in execute
result = call.task(*args, **call.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/invoke/tasks.py", line 138, in __call__
result = self.body(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inventree/tasks.py", line 582, in update
install(c, uv=uv)
File "/usr/lib/python3.11/site-packages/invoke/tasks.py", line 138, in __call__
result = self.body(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inventree/tasks.py", line 316, in install
plugins(c, uv=uv)
File "/usr/lib/python3.11/site-packages/invoke/tasks.py", line 138, in __call__
result = self.body(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inventree/tasks.py", line 264, in plugins
from src.backend.InvenTree.InvenTree.config import get_plugin_file
File "/home/inventree/src/backend/InvenTree/InvenTree/config.py", line 15, in <module>
import structlog
ModuleNotFoundError: No module named 'structlog' |
Ah, ok this is the annoying pathing issue when calling The installed "invoke" tool is not in the proper venv:
So calling Traceback (most recent call last):
File "/usr/bin/invoke", line 8, in <module>
sys.exit(program.run())
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/invoke/program.py", line 398, in run
self.execute()
File "/usr/lib/python3.11/site-packages/invoke/program.py", line 583, in execute
executor.execute(*self.tasks)
File "/usr/lib/python3.11/site-packages/invoke/executor.py", line 140, in execute
result = call.task(*args, **call.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/invoke/tasks.py", line 138, in __call__
result = self.body(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inventree/tasks.py", line 1146, in version
import src.backend.InvenTree.InvenTree.version as InvenTreeVersion
File "/home/inventree/src/backend/InvenTree/InvenTree/version.py", line 23, in <module>
import structlog
ModuleNotFoundError: No module named 'structlog' Whereas calling
|
With a bit of import hacking I get:
|
I have run into this issue previously but have not been able to quantify it so clearly as this. I think this needs looking into! |
Interesting, I do not get this problem in my environment or on CI tests |
commit dcff7a5ccdcd88effbf94b73f9e28b4aa520e6ff Author: Oliver <[email protected]> Date: Wed Jan 8 12:55:56 2025 +1100 Simplify translated string (#8860) commit c81545546170480113b2a3fdc49fc3bf06b373b8 Author: Oliver <[email protected]> Date: Wed Jan 8 12:06:00 2025 +1100 Datamatrix (#8853) * Implement datamatrix barcode generation * Update documentation * Update package requirements * Add unit test * Raise error on empty barcode data * Update docs/hooks.py commit 9138e31e58c02ef2adbd58c16f87a26d63ebdc9a Author: Oliver <[email protected]> Date: Wed Jan 8 10:07:38 2025 +1100 Created by (#8848) * Add 'created_by' field to order API endpoints * Add 'created_by' filter * Allow ordering by 'created_by' field * Update UI tables - Show "Created By" column - Column sorting - Column filtering * Cleanup order detail pages * Bump API version * Refactor table filters * Fix BuildOrderTable filters commit 296c54a1d776a95c67f5283d944c6a9b4a913c53 Author: Oliver <[email protected]> Date: Wed Jan 8 07:34:06 2025 +1100 [UI] API Context (#8851) * Create ApiContext provider * Utilize new context * Remove api from global context * Refactor <InvenTreeTable> - No longer need hard-coded API constant * Refactor useInstance hook * Refactoring - QueryCountDatshboardWidget - NotesEditor - RenderInstance * Refactor multiple tables * Fix typos * Refactor useFilters hook - Allow plugins to use this hook! * Further refactoring * Refactor API forms * Cleanup context routing * Fix provision order commit 3a62bdd2762e36bb22dd06edc3eacc626a4feff3 Author: Oliver <[email protected]> Date: Tue Jan 7 17:07:07 2025 +1100 Ensure error is raised (#8849) commit b42edbf2ab91e3131b287feb4416add0fc9adfcc Author: Oliver <[email protected]> Date: Tue Jan 7 15:00:48 2025 +1100 Fix for notification (#8840) label -> title commit dcf0bb103e9181800baea229e3269ef76be871a0 Author: Oliver <[email protected]> Date: Tue Jan 7 14:59:22 2025 +1100 Order creation fix (#8846) * Bug fix for PurchaseOrder - Correctly record the user who created a PO - Code refactoring * Updated unit tests commit 94f7890a4150c3d8da0e53faa3ab938e05ff5943 Author: Oliver <[email protected]> Date: Tue Jan 7 10:34:47 2025 +1100 Fix for test results in stock item report context (#8843) - Allow for "cascade" installed items - i.e. support multi-level installed items commit ce617b77929a9088c47b331ac676ef1090e03b8b Author: Oliver <[email protected]> Date: Mon Jan 6 14:14:38 2025 +1100 [Documentation] Remove package credits (#8811) * Remove hard-coded credits from docs - Extract *actual* package credits - Auto-build into docs * Include URLs when generating python license data * Update readthedocs process * Better URL extraction * Adjust build process for RTD * Spelling fixes * Install node and yarn * Command fix * Improved library sorting * Improved error message * Remove credits.md * Cleanup * Further cleanup * Tweak playwright test * Handle uncaught exception in fetchIcons * Fix for CORS settings in playwright testing * Enhance login check * Fix for barcode test --------- Co-authored-by: Matthias Mair <[email protected]> commit 40cff058644a6c7e7a6e0de056fe134802fffaba Author: Oliver <[email protected]> Date: Mon Jan 6 10:06:38 2025 +1100 Tasks cleanup (#8838) * Pretty print and typo fix * Improved output * Improve logging commit 0614f01247094b93518cd6c4622422ab817f15b7 Author: Oliver <[email protected]> Date: Mon Jan 6 09:46:16 2025 +1100 Docker fix (#8835) * Fix server command in Dockerfile * Ensure invoke is installed into the venv * Run extra check in docker build step * Improve documentation * Intercept ModuleNotFoundError - Clear error message * Docs updates * Add extra check to dev docker build * Cleanup tasks.py * Prevent double activation of venv * Change order of operations --------- Co-authored-by: Matthias Mair <[email protected]> commit 6b5e0dbb29d043bba617499ced992e0f47f52048 Author: Matthias Mair <[email protected]> Date: Sun Jan 5 21:28:28 2025 +0100 remove structlog from internal paths (#8836) commit ae1f9bf2741f844d1efe1d602b76f86f486ed48d Author: Oliver <[email protected]> Date: Sun Jan 5 22:43:20 2025 +1100 Navigate to index when deleting a company (#8831) commit decccf8163102137a4b2074e27933e9068c5db9c Author: Oliver <[email protected]> Date: Sun Jan 5 22:18:24 2025 +1100 Fix for buggy Caddyfile (#8830) commit 8b343e570e2a3135ff567b9c02213b5c899cda4f Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun Jan 5 20:21:50 2025 +1100 New Crowdin translations by GitHub Action (#8826) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit b2a3f6d31180963d2a5fa2b9bc10929374dd005e Author: Oliver <[email protected]> Date: Sun Jan 5 14:58:07 2025 +1100 Remove old PanelMixin class (#8828) - Custom panels for legacy UI - No longer needed commit 7125261bbc81c05015dce5a383d619075cb88e45 Author: Matthias Mair <[email protected]> Date: Sun Jan 5 02:57:20 2025 +0100 Remove admin shell (#8816) commit ea9e3fb992df555a9c68e0b84b1011c25be83da4 Author: Matthias Mair <[email protected]> Date: Sun Jan 5 02:48:57 2025 +0100 Refactor to use structlog (#8747) * use structlog instead of normal logging * more fixes * more fixes * fix test asserts * use static name * fix logger * fix assert * fix asserts commit 3479b0008ca8e4ed01deb1ada62e6c152d0759c4 Author: Matthias Mair <[email protected]> Date: Thu Jan 2 10:41:17 2025 +0100 Docs remove old customize options (#8817) * remove "hide_pui_banner" * clean up more commit 5eeb150828278fe72a6b7f0f205d78b1fae5abd1 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed Jan 1 10:41:30 2025 +1100 New Crowdin translations by GitHub Action (#8786) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit d7939efaa907fc3a716e28c6e165eb062f603ca4 Author: Matthias Mair <[email protected]> Date: Tue Dec 31 13:13:35 2024 +0100 Fix package install in envs using python lower than 3.12 on debian like OSs (#8793) * do not install with uv for now - fixes #8789 #8742 #8495 #8494 * Ensure errors are raised if install / update fails commit 02967a5b1d0ae40170d12a7b26e0779f3b578715 Author: Oliver <[email protected]> Date: Tue Dec 31 20:36:27 2024 +1100 Reintroduce FAQ entry (#8812) commit 16e97293089d6926658904cd2255c0efc7137ef7 Author: Oliver <[email protected]> Date: Tue Dec 31 15:48:41 2024 +1100 Allow barcode linking for stock location (#8802) commit 7a3709eb370c6470407bf22b0c4c1421e2eae6e7 Author: Oliver <[email protected]> Date: Tue Dec 31 15:08:00 2024 +1100 Fix FAQ typo (#8809) commit 74cd0b9aed1a6e8c381c7e5022b4b61869d9dae0 Author: Oliver <[email protected]> Date: Tue Dec 31 14:44:34 2024 +1100 Update .env file (#8799) * Update .env file - No functional changes - Improved file comments * Update .env Improved comment commit 741994430156ca34e4871b8510e07e2bb51b238e Author: Oliver <[email protected]> Date: Tue Dec 31 14:08:23 2024 +1100 Add FAQ on cookie setting change (#8805) commit c917c64aa18f82ae20b4440c4fec664674eb900d Author: Oliver <[email protected]> Date: Tue Dec 31 14:01:18 2024 +1100 Add documentation on transferring media files (#8803) commit 5692f5663080eaeed7af0d4d37b7bd86b0030f18 Author: Oliver <[email protected]> Date: Tue Dec 31 13:45:52 2024 +1100 Add docs for secret_key (#8801) commit ecc1c937ed5ea91058cb87c09dc2f8f58a77f84a Author: Oliver <[email protected]> Date: Tue Dec 31 13:35:51 2024 +1100 Caddyfile documentation (#8798) * basic mixin file * Add basic check for model type support * Enhanced documentation for Caddyfile * Additional documentation around proxy server * Remove code from other PR commit 23e4f2f2a23ec0e17c392187ddc351711d434011 Author: Oliver <[email protected]> Date: Tue Dec 31 12:33:17 2024 +1100 [Setup] Support X-Forwarded-Proto header (#8790) * Remove use_x_forwarded_port setting - As per the docs, this is ignored in favour of use_x_forwarded_host - So, is not being used anyway * Add note on x_forwarded_host option * Add warning message if SITE_URL not provided * Add support for SECURE_PROXY_SSL_HEADER * Update configuration template file * Update SITE_URL docs * Remove line * Re-add use_x_forwarded_port * Docs tweak * Improve wording * Fix broken link commit 1c2ad94bb7f308fc0b0091edfc1553a9c7e2777a Author: Oliver <[email protected]> Date: Sun Dec 29 20:41:14 2024 +1100 Remove old script for calculating translation stats (#8787) * Remove old script for calculating translation stats * Update tasks.py * Adjust unit test call commit b36027b5c17d4281f3c5b012582524ba993b1b5a Author: Oliver <[email protected]> Date: Sun Dec 29 20:14:42 2024 +1100 Remove RELEASE.md file (#8788) commit 5e79c6906cc7b93fba9ea5537258dfdfa6d81e94 Author: Oliver <[email protected]> Date: Sun Dec 29 17:00:27 2024 +1100 [UI] Permission Enhancements (#8785) * Update page permissions - Add permission check to <InstanceDetail> - HIde breadcrumbs and tree for part - Hide breadcrumbs and tree for stock * Additional permissions checks commit cd0ee7dbab77abed24e3babf5b68b99ff6b0639a Author: Oliver <[email protected]> Date: Sun Dec 29 14:54:02 2024 +1100 Url refactor (#8784) * Cleanup config template * Small refactor - Fix for frontend_base_url setting * Revert base url * Fix reverse URL lookup commit 964984ccacb3024361ee2b444ead141ba09f4dd9 Author: Oliver <[email protected]> Date: Sun Dec 29 08:45:23 2024 +1100 [Refactor] Custom states (#8438) * Enhancements for "custom state" form - More intuitive form actions * Improve back-end validation * Improve table rendering * Fix lookup for useStatusCodes * Fix status display for SockDetail page * Fix SalesOrder status display * Refactor get_custom_classes - Add StatusCode.custom_values method * Fix for status table filters * Cleanup (and note to self) * Include custom state values in specific API endpoints * Add serializer class definition * Use same serializer for AllStatusView * Fix API to match existing frontend type StatusCodeListInterface * Enable filtering by reference status type * Add option to duplicate an existing custom state * Improved validation for the InvenTreeCustomUserStateModel class * Code cleanup * Fix default value in StockOperationsRow * Use custom status values in stock operations * Allow custom values * Fix migration * Bump API version * Fix filtering of stock items by "status" * Enhance status filter for orders * Fix status code rendering * Build Order API filter * Update playwright tests for build filters * Additional playwright tests for stock table filters * Add 'custom' attribute * Fix unit tests * Add custom state field validation * Implement StatusCodeMixin for setting status code values * Clear out 'custom key' if the base key does not match * Updated playwright testing * Remove timeout * Refactor detail pages which display status * Update old migrations - add field validator * Remove dead code * Simplify API query filtering * Revert "Simplify API query filtering" This reverts commit 06c858ae7ce1feab5af0f91993b42ba8a81e588a. * Fix save method * Unit test fixes * Fix for ReturnOrderLineItem * Reorganize code * Adjust unit test commit c582ca0afd287d802cef7738e6d830844472a14a Author: Matthias Mair <[email protected]> Date: Sat Dec 28 15:12:42 2024 +0100 Add scan to action menu (#8781) * small style fixes * refactor: split scanning and dialog logic * feat: Add modal and quick action to scan a barcode from anywhere commit 3e73162368b1932f9a344161f6af86c5636b0fcf Author: Oliver <[email protected]> Date: Sat Dec 28 20:38:53 2024 +1100 Barcode scanning (#8732) * Implement new "general purpose" barcode scan dialog - Separated widgets for camera / keyboard / wedge scanner - UI / UX improvements * Handle scan results * Fix missing imports * Handle successful global scan * Handle error when linking barcode * Backend fix for InvenTreeInternalBarcodePlugin * Error handling * Working on scanner input * Refactor scan page * Callback from scanner input * Refactoring <Scan> page * Allow InvenTreeTable to be used with supplied data * Refactor optionalparams * Refactoring table of scan results * Implement callbacks * Navigate from barcode table * Fix delete callback * Refactor callbacks * Refactor idAccessor - Access as part of useTable hook - No longer hard-coded to 'pk' * prevent duplicate scans * Fix for deleting items from table * Cleanup * Bump API version * Adjust playwright tests * Update playwright tests * Update barcode screenshots * Fix links * Add quick links to barcode formats * Updated screenshots * Fix for BuildLineSubTable * Specify idAccessor values * Clear barcode input after timeout period * Move items * Fix for playwright test * Remove debug print * Additional error ignores * Cleanup scanner input - Simplify - Prevent errant keycodes from closing the scanner dialog * Playwright test adjustments commit 0765b00520b9e51b7a7e274b9b925bfb0acfde19 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri Dec 27 19:43:52 2024 +1100 New Crowdin translations by GitHub Action (#8752) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit b0ce67fcd7f20dbd5ba2a8369dda36d91d1d0436 Author: Oliver <[email protected]> Date: Fri Dec 27 15:46:17 2024 +1100 [Docs] Update FAQ (#8777) * Update FAQ * Add links to FAQ * Extra info * Extend documentation for debug options commit 189f2303b8d1e8660166e06831a91a3f1ad3b1f7 Author: Oliver <[email protected]> Date: Fri Dec 27 11:01:48 2024 +1100 [PUI] Set password (#8770) * Add <ChangePassword> page * Rename Set-Password to ResetPassword * Add unit testing * Ensure user is properly logged into page * Update playwright tests * Small tweaks commit 5499884553e2b1475a511f2501cd5b51bae21231 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Dec 27 08:14:46 2024 +1100 Bump jinja2 from 3.1.4 to 3.1.5 in /docs (#8771) * Bump jinja2 from 3.1.4 to 3.1.5 in /docs Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5) --- updated-dependencies: - dependency-name: jinja2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix req --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Mair <[email protected]> commit 04d7a96ddea647fbc53bb33f06aa62b3809a4b5c Author: Matthias Mair <[email protected]> Date: Thu Dec 26 22:14:32 2024 +0100 split up python updates and assign to @matmair for manual fixes where necessary (#8772) commit 1d22b89ed6fe3229848880320dd2337659c13656 Author: Oliver <[email protected]> Date: Thu Dec 26 23:43:49 2024 +1100 DB CI Checks (#8773) * Update test databases in CI * Add new target commit da21e39e849fde93cc2c8aa9119dbf8a8583c41d Author: Matthias Mair <[email protected]> Date: Thu Dec 26 10:16:53 2024 +0100 Turn off debug by default (#8743) * turn off debug by default * fix log level / debug settings for workflows * fix typo commit d4ee8c53b21143bdf151010ebb3d3e27e1c3fb09 Author: Oliver <[email protected]> Date: Thu Dec 26 11:25:58 2024 +1100 Fix default value for SESSION_COOKIE_SECURE (#8767) - Default value was previously 'True' - Documentation indicated that it was 'False' - Value in config_template.yaml was 'False' (but commented out) commit ae7f4e33d52f671584e9e99fc2b486f55f831edc Author: Oliver <[email protected]> Date: Thu Dec 26 10:42:07 2024 +1100 Zero stock fix (#8766) * Change backend validation - Allow stock adjustments with zero quantity * Frontend changes commit c79fc281fde5a7da7b2bb6750eec3687dbb81626 Author: Oliver <[email protected]> Date: Wed Dec 25 07:38:39 2024 +1100 Fix typo (#8757) - registraton -> registration commit fe68dc73185cde3ee86bb85c1fe52c4f85e5ffd2 Author: Matthias Mair <[email protected]> Date: Tue Dec 24 21:16:24 2024 +0100 Refactor fix formatting exclusion (#8746) * fix ruff exclusions * aut-format * Fix docstrings * more fixes * ignore error(s) * fix imports * adjust descriptions for build commit 1fec41cb7191ee75488607bac731c04c8a375961 Author: Matthias Mair <[email protected]> Date: Tue Dec 24 11:42:39 2024 +0100 Update qc_checks.yaml (#8759) commit 02e43061b2f374a9efd393020f02a6631cd7a480 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 24 11:54:10 2024 +1100 Bump jinja2 from 3.1.4 to 3.1.5 in /src/backend (#8751) * Bump jinja2 from 3.1.4 to 3.1.5 in /src/backend Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.1.4...3.1.5) --- updated-dependencies: - dependency-name: jinja2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix req --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Mair <[email protected]> commit 7f1cc4658bb8dfa6db837963003253b6750742ef Author: Matthias Mair <[email protected]> Date: Tue Dec 24 01:53:25 2024 +0100 Fix REST registration endpoint (#8738) * Re-add html account base Fixes #8690 * fix base template * override dj-rest-auth pattern to fix fixed token model reference * pin req * fix urls.py * move definition out to separate file * fix possible issues where email is not enabled but UI shows that registration is enabled * fix import order * fix token recovery * make sure registration redirects * fix name change * fix import name * adjust description * cleanup * bum api version * add test for registration * add test for registration requirements commit 8fcebefa0b26deb8c9d63b68d4f4a1b1b10e65fe Author: Oliver <[email protected]> Date: Tue Dec 24 10:18:00 2024 +1100 Handle error when loading icon pack (#8753) * Handle error when loading icon pack * Update commit 4e927bf69758393ad42cc1ad7ef94e248087d4f0 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 24 07:23:52 2024 +1100 Bump the dependencies group with 3 updates (#8748) Bumps the dependencies group with 3 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact), [codecov/codecov-action](https://github.com/codecov/codecov-action) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/upload-artifact` from 4.4.3 to 4.5.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882...6f51ac03b9356f520e9adb1b1b7802705f340c2b) Updates `codecov/codecov-action` from 5.1.1 to 5.1.2 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/7f8b4b4bde536c465e797be725718b88c5d95e0e...1e68e06f1dbfde0e4cefc87efeba9e4643565303) Updates `github/codeql-action` from 3.27.9 to 3.28.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/df409f7d9260372bd5f19e5b04e83cb3c43714ae...48ab28a6f5dbc2a99bf1e0131198dd8f1df78169) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit ec6280dacdf70205f2e3f6c4b2a8c36966afb2be Author: Matthias Mair <[email protected]> Date: Mon Dec 23 21:22:28 2024 +0100 MFA add better logging (#8745) * add better logging * use structlog commit 728e0894aa7c8a62541ecd5e801bf03a1de8452d Author: Matthias Mair <[email protected]> Date: Mon Dec 23 21:20:27 2024 +0100 Factor out helper (#8744) * facour out helper * fix import path commit 71eb2814d4e125e906489260710ee9c63359bcaf Author: Oliver <[email protected]> Date: Tue Dec 24 07:19:36 2024 +1100 Remove django-import-export (#8685) * Remove django-import-export requirement * Update settings.py * Clean up admin files * Remove much of the old BOM exporter framework * Add note for future self * Remove dead unit test files * Remove defunct AjaxView classes * Remove InvenTreeRoleMixin * Update docs for data import * Export docs commit f31ba657cc3727bff0ff8a74a1448b586a3432ad Author: Oliver <[email protected]> Date: Tue Dec 24 07:18:56 2024 +1100 API error handling (#8739) * API error handling - Add error handlers to various API calls * Fix return type commit 933330fa516cb8402599db10483e7000ffba58fe Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon Dec 23 10:36:39 2024 +1100 New Crowdin translations by GitHub Action (#8683) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit aa905166c51d5dd83d469af5dab8418c5ddabdd0 Author: Matthias Mair <[email protected]> Date: Sun Dec 22 22:46:31 2024 +0100 Switch to zoneinfo from pytz (#7645) * switch to zoneinfo from pytz * fix lookup * fix assert * fix another round of assertions commit 0bcad6b340fc393cd63bf29c13cfd2427685ccaa Author: Joe Rogers <[email protected]> Date: Sun Dec 22 00:08:45 2024 -0500 Add separate dialog for 'Ship Order' button (#8734) commit d8207c88f0990fd555fd2b97494ec0d8ccc2e401 Author: Oliver <[email protected]> Date: Sat Dec 21 08:33:31 2024 +1100 Remove unused setting (#8731) commit aabcf52cd26a15c8338d47c8337d2587d8c2d37e Author: Oliver <[email protected]> Date: Fri Dec 20 14:53:39 2024 +1100 Forms fixes (#8722) * Refactor form fields - Allow error message to be passed through via field definition - Return error information to onFormError * Fix debounce issue for text fields * Fix for useForm hook * Badge fix - Fix badge rendering for SalesOrderShipment * Cleanup unit test commit 68ac4118e97c73d21a93aad208f770da1e93a94f Author: Oliver <[email protected]> Date: Fri Dec 20 12:21:21 2024 +1100 [UI] Link fix (#8726) - Fixes anchor issues in stock tracking table commit 130bc84b4452db4e479477faf8b04b80a6b8e15c Author: Oliver <[email protected]> Date: Fri Dec 20 12:13:00 2024 +1100 Badge fix (#8725) - Fix badge rendering for SalesOrderShipment commit aad5575cd20553751642fa924778150b94755a98 Author: Matthias Mair <[email protected]> Date: Thu Dec 19 21:21:22 2024 +0100 Fix MFA auth flow (#8720) * Re-add html account base Fixes #8690 * fix base template commit 53792693f5ec35b54d2f72026cc024be0806798e Author: Oliver <[email protected]> Date: Thu Dec 19 09:24:01 2024 +1100 Allow backup_value to be specified to the 'getkey' report helper (#8719) commit 17fd7f32a4dfad86ed387aac35bbdf8ee8db0cb0 Author: Matthias Mair <[email protected]> Date: Wed Dec 18 22:37:39 2024 +0100 consider INVENTREE_RESTRICT_ABOUT setting (#8717) commit 6634bc54bde709f4d88abad32599fd197c5b4c19 Author: Oliver <[email protected]> Date: Thu Dec 19 07:34:01 2024 +1100 Remove javascript rendering (#8713) commit 88bfb23362e80be571100f54eb4838f58d20335b Author: Oliver <[email protected]> Date: Thu Dec 19 07:33:48 2024 +1100 Cleanup tags (#8712) * Remove part_allocation_count tag * Remove more dead tags commit e37e72357a6598ea6095d1742bfc576f7b252fa9 Author: Oliver <[email protected]> Date: Thu Dec 19 07:31:59 2024 +1100 Cleanup old settings (#8709) * Use LABEL_ENABLE and REPORT_ENABLE settings in PUI * Cleanup base.html - Should reduce db hits slightly * Remove defunct homepage settings * Cleanup old settings * Adjust unit test commit 1c9f56011c3b94f72ef2ba130327e213944f0d9e Author: Matthias Mair <[email protected]> Date: Wed Dec 18 21:31:33 2024 +0100 Various SAST fixes (#8718) * fix type * fix typing * fix python:S5713 * fix python:S1066 * fix python:S3516 * fix python:S5727 * fix python:S5886 commit 1493bbaac67573921d52303f2d7d15dca26ea787 Author: Oliver <[email protected]> Date: Thu Dec 19 01:18:13 2024 +1100 [Refactor] Template fix (#8710) * Commonize favicon template * Cleanup templates commit 378d69f0b36db3a35b65857a10cf9f56f64eda85 Author: Oliver <[email protected]> Date: Thu Dec 19 00:59:56 2024 +1100 [UI] Enhanced null checks (#8706) * Extra null check in SettingList.tsx * Null checks on error responses commit 1eaf3a4594b404e08e52bebeef3fd3952d40b0bc Author: Oliver <[email protected]> Date: Wed Dec 18 23:24:18 2024 +1100 Image upload error (#8700) * Add helper function for displaying API error message * Provide feedback on image upload * Update notification commit 4569fd273dbbb28b2e173374e7530b247ab9cf5b Author: Oliver <[email protected]> Date: Wed Dec 18 16:51:32 2024 +1100 Cast barcode scan IDs to list (#8701) - Fixes issues with limitations on old MySQL server commit 1910612725b3db8b42b014dbf5f13d86dce0f059 Author: Oliver <[email protected]> Date: Wed Dec 18 14:21:31 2024 +1100 Fix for table update (#8698) - Retain data when updating a single record - Fixes https://github.com/inventree/InvenTree/issues/8693 commit 9f1d1abd5b68f6607e43a192d9a1519f7739209b Author: Oliver <[email protected]> Date: Wed Dec 18 09:25:14 2024 +1100 Remove "crispy forms" integration (#8684) * Remove "crispy forms" integration - No longer doing any back-end form rendering * Remove django-formtools package * Fix comment in settings.py --------- Co-authored-by: Matthias Mair <[email protected]> commit 886d1b39cf3ca68e1428b947131f2d7d897ca741 Author: Oliver <[email protected]> Date: Wed Dec 18 09:14:45 2024 +1100 Remove old javascript file (#8697) commit 8fcb3c2506ba7981c40f3e41b9e7fb7de63b263e Author: Matthias Mair <[email protected]> Date: Tue Dec 17 12:20:21 2024 +0100 Refactor auth adaptations into dedicated file (#8687) * Update docker.yaml (#278) * reset * rename functions to better reflect function * move authentication behaviour overrides to explicit file * fix import order * fix import path commit acb756eacc838a8490b11c0ddd30036cf8c75194 Author: Oliver <[email protected]> Date: Tue Dec 17 13:48:43 2024 +1100 Remove custom context processors (#8540) * Remove custom context processors - Only merge after 0.17.0 release - Remove code which injects custom context variables into CUI requests - Not needed for new API-based PUI code - Speeds up requests - remove unnecessary DB hits * Remove broken import * Remove custom staticfile processing - No longer needed as CUI is gone commit 24f433c9482a152463c85d5dad4a105ba1508fec Author: Matthias Mair <[email protected]> Date: Tue Dec 17 02:30:41 2024 +0100 Remove CUI (#8384) * remove CUI * fix loading * fix login middleware * remove css template functions * tmp fix for recurtion * remove old test * fix assertations * fix middleware tests * re-add plugin tags * remove thirdpartjs * re-add mfa urls * remove old js * remove cui tags * simplify error testing * use license endpoint for testing instead * disable successful test * revert de-activation * remove references to old UI customisation * update docs to remove reference to removed page * disable availabilty check * possible fix to importing problem * Revert "possible fix to importing problem" This reverts commit ee9fccdc8c5a3e1a6acf9ed029337ac5db5c2b0c. * remove old get_context_data * fix migration * remove unused function * remove unused stuff * remove unused template * fix formatting of readme commit bf8113a33e6b42380bf4c8e0fde3d9d7ed68bcc9 Author: Oliver <[email protected]> Date: Tue Dec 17 10:58:49 2024 +1100 Fix README.md (#8682) commit d4be203b030b598a147cbaed00302ea7319c6198 Author: Matthias Mair <[email protected]> Date: Tue Dec 17 00:31:21 2024 +0100 small style changes (#8681) commit 6fc7c4d2feefcab393bcbadfc6ccc36fd0c65449 Author: Matthias Mair <[email protected]> Date: Tue Dec 17 00:13:58 2024 +0100 Docker improve build times (#8680) * Update docker.yaml (#278) * update README.md commit 9dc4fc1f8f4f4b9f5e8c756c114e17b5716484ea Author: Matthias Mair <[email protected]> Date: Tue Dec 17 00:12:51 2024 +0100 [CI] Add zimor to check github action security (#8639) * Add zimor to checks * fix format * use same version of checkout everywhere * do only persist credentials if needed * remove duplicate clones * fix pin syntax * fix pins * fix template injection * another injection fix * Revert "remove duplicate clones" This reverts commit 9a00ae2bbb1ef5c6ab5610dd4efc313ec285f12f. * Add GH token for further rules commit 5d2329651acd7bbf2b72664a13f243b317546f16 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue Dec 17 10:09:12 2024 +1100 New Crowdin translations by GitHub Action (#8668) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit 3041d9050b6669aedc8363d5f0d373212e5fc372 Author: Oliver <[email protected]> Date: Tue Dec 17 09:16:38 2024 +1100 Bump version number (#8677) - Update to 0.18.0 dev - Will likely become 1.0.0 dev commit 1e4e3e65ccf3df3928c636585989ca34215306ee Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 17 08:01:54 2024 +1100 Bump the dependencies group with 5 updates (#8673) Bumps the dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.7.1` | `3.8.0` | | [anchore/sbom-action](https://github.com/anchore/sbom-action) | `0.17.8` | `0.17.9` | | [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) | `2.0.1` | `2.1.0` | | [github/codeql-action](https://github.com/github/codeql-action) | `3.27.6` | `3.27.9` | | [crowdin/github-action](https://github.com/crowdin/github-action) | `2.4.0` | `2.5.0` | Updates `docker/setup-buildx-action` from 3.7.1 to 3.8.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](https://github.com/docker/setup-buildx-action/compare/c47758b77c9736f4b2ef4073d4d51994fabfe349...6524bf65af31da8d45b59e8c27de4bd072b392f5) Updates `anchore/sbom-action` from 0.17.8 to 0.17.9 - [Release notes](https://github.com/anchore/sbom-action/releases) - [Changelog](https://github.com/anchore/sbom-action/blob/main/RELEASE.md) - [Commits](https://github.com/anchore/sbom-action/compare/55dc4ee22412511ee8c3142cbea40418e6cec693...df80a981bc6edbc4e220a492d3cbe9f5547a6e75) Updates `actions/attest-build-provenance` from 2.0.1 to 2.1.0 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/c4fbc648846ca6f503a13a2281a5e7b98aa57202...7668571508540a607bdfd90a87a560489fe372eb) Updates `github/codeql-action` from 3.27.6 to 3.27.9 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/aa578102511db1f4524ed59b8cc2bae4f6e88195...df409f7d9260372bd5f19e5b04e83cb3c43714ae) Updates `crowdin/github-action` from 2.4.0 to 2.5.0 - [Release notes](https://github.com/crowdin/github-action/releases) - [Commits](https://github.com/crowdin/github-action/compare/a9ffb7d5ac46eca1bb1f06656bf888b39462f161...8dfaf9c206381653e3767e3cb5ea5f08b45f02bf) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: anchore/sbom-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: actions/attest-build-provenance dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: crowdin/github-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 1518475d512f2990929914bca981c33833d5c97c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 17 08:01:45 2024 +1100 Bump mkdocs-material from 9.5.48 to 9.5.49 in /docs in the dependencies group across 1 directory (#8675) * Bump mkdocs-material Bumps the dependencies group with 1 update in the /docs directory: [mkdocs-material](https://github.com/squidfunk/mkdocs-material). Updates `mkdocs-material` from 9.5.48 to 9.5.49 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.48...9.5.49) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * fix req --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Mair <[email protected]> commit d42435c8410397c4278de229fb7d9d1bf99bb128 Author: Oliver <[email protected]> Date: Tue Dec 17 07:39:49 2024 +1100 [Refactor] Barcode scanning (#8658) * Enhance SupplierPart barcode mixin - Provide richer response based on available data * Add comment * Add new fields to BarcodePOReceiveSerializer * Add "supplier" information to serializer * Add 'is_completed' method for PurchaseOrderLineItem * Refactor SupplierBarcodeMixin * Tweak error message * Logic fix * Fix response data * Improved error checking * Bump API version * Bump API version * Error handling - Improve get_supplier_part method - Error handling - Wrap calls to external plugins * Enhanced unit testing and exception handling * More exception handling * Fix circula imports * Improve unit tests * Adjust filtering * Remove outdated tests * Remove success code for matching item commit 169f4f83508a01d7cc73284f40659450161afc29 Author: Oliver <[email protected]> Date: Mon Dec 16 23:07:33 2024 +1100 [PUI] Order Parts Wizard (#8602) * Add generic <WizardDrawer /> * Add a wizard hook - Similar to existing modal form hook * Slight refactor * Simple placeholder table * Only purchaseable parts * Add callback to remove selected part * Add step enum * Improve wizard * Render supplier image * Add validation checks for wizard * Further wizard improvements * add error support * Improvements * Refactoring * Add error checking * Order from part detail page * Implement from SalesOrder view * Implement from build line table * Implement from StockItem table * Add to StockDetail page * Cleanup PartTable * Refactor to use DataTable interface * Simplify wizard into single step * Refactoring * Allow creation of new supplier part * Cleanup * Refactor <PartDetail> * Fix static hook issue * Fix infinite useEffect * Playwright tests commit 34b70d0a39a7c33a333cd292b7c1e0fbfe189bd7 Author: Oliver <[email protected]> Date: Mon Dec 16 14:28:27 2024 +1100 PUI: Adjust test result table (#8667) - Allow disable of results for "disabled" tests - Controlled via additional table filter commit 88ab59359f1d9abda420849a087988f2738f8f84 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon Dec 16 09:50:27 2024 +1100 New Crowdin translations by GitHub Action (#8654) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit 1bd51fc8a2202e3158f7053a952e490ec6da86dc Author: Michael <[email protected]> Date: Sat Dec 14 21:53:09 2024 +0100 Add a more complex example the the plugin unit test docs. (#8664) * Add a more complex example to plugin unit test doc * Minor changes to the doc commit 2b607a4a28ca60d96524b5728cca50c1bf6bf011 Author: Matthias Mair <[email protected]> Date: Sat Dec 14 20:54:56 2024 +0100 clean up refes (#8663) commit 57e7b8eed2a1c0b4018dcf13034a7dfb716c25ff Author: Matthias Mair <[email protected]> Date: Fri Dec 13 22:39:23 2024 +0100 fix namespace of frontend install command (#8662) Fixes #8656 commit 7bfd36f7cbf0e3ea0ee47653d0d6596969020c42 Author: Matthias Mair <[email protected]> Date: Fri Dec 13 01:57:11 2024 +0100 Refactor: Move settings definitions (and most validators) out of models.py (#8646) * move out settings definitions * fix import paths * move validators into appropiate settings * fix refactor error * fix import paths * move types out * add validator tests * add option to reload internal issues * fix tests commit dd83735710f08131bdd931b1267f45a40b9ecaf9 Author: Matthias Mair <[email protected]> Date: Wed Dec 11 22:38:11 2024 +0100 Fix vulnerable dependencies (#8655) * bump container reqs * bump vul frontend dep * fix tests commit ec6fc0a168a84459c9929b72e674896c0fee18c4 Author: Oliver <[email protected]> Date: Wed Dec 11 15:53:27 2024 +1100 Update release.yml (#8653) Add extra ignore flag to auto issue doc commit 1adc42d422e69a225c57f534d07724de23f39064 Author: Oliver <[email protected]> Date: Wed Dec 11 15:44:00 2024 +1100 Filter fix (#8652) * Allow ordering by IPN * Update table commit ad6bd635e620db2cb6fb175593db35cd0fbb184a Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed Dec 11 15:43:47 2024 +1100 New Crowdin translations by GitHub Action (#8632) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit 3554429baa91a1d72b6743ae7af4fa23e8f4249b Author: Oliver <[email protected]> Date: Wed Dec 11 07:52:18 2024 +1100 SalesOrder Data Migration (#8585) * Add data migration to remedy bug * Add migration tests * Remove faulty migration test * Tweak filter * Update migration file --------- Co-authored-by: Matthias Mair <[email protected]> commit 5aae93e635618f836900ec10733c0f2b2fe1d642 Author: Michael <[email protected]> Date: Tue Dec 10 21:27:44 2024 +0100 Added first example to plugin unit test (#8636) * Start documentation chapter for plugin tests * Added env variables to the doc * Fix style errors * Further style bugs * Reformat environment variables * Reformat environment variables * Add comments from wolflu05 * Add text to the intro * Added first example the plugin unit test * Addred line it function * Typo * Typo * Typo commit 64dc5659bca0124a5578cd5efd2337c9c568c283 Author: Oliver <[email protected]> Date: Wed Dec 11 07:21:35 2024 +1100 Add ITEM_RECEIVED event (#8651) * Add ITEM_RECEIVED event - Triggered when an item is recevied against a purchase order * Adjust unit test commit 4a8cb6f7f3688acbd59692935e8e9fb7506a2e96 Author: Oliver <[email protected]> Date: Tue Dec 10 21:23:23 2024 +1100 Add IPN column to RelatedPartTable (#8650) commit d1c06ed12ae3be79f288a061358cf09688ef6dd4 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 10 19:52:05 2024 +1100 Bump nanoid from 3.3.7 to 3.3.8 in /src/frontend (#8647) Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.3.7...3.3.8) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 32f32e954b28d460def886fc2afc9c880d42e884 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 10 13:08:45 2024 +1100 Bump the dependencies group with 3 updates (#8643) Bumps the dependencies group with 3 updates: [codecov/codecov-action](https://github.com/codecov/codecov-action), [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) and [github/codeql-action](https://github.com/github/codeql-action). Updates `codecov/codecov-action` from 5.0.7 to 5.1.1 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/015f24e6818733317a2da2edd6290ab26238649a...7f8b4b4bde536c465e797be725718b88c5d95e0e) Updates `actions/attest-build-provenance` from 1.4.4 to 2.0.1 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](https://github.com/actions/attest-build-provenance/compare/ef244123eb79f2f7a7e75d99086184180e6d0018...c4fbc648846ca6f503a13a2281a5e7b98aa57202) Updates `github/codeql-action` from 3.27.5 to 3.27.6 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/f09c1c0a94de965c15400f5634aa42fac8fb8f88...aa578102511db1f4524ed59b8cc2bae4f6e88195) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies - dependency-name: actions/attest-build-provenance dependency-type: direct:production update-type: version-update:semver-major dependency-group: dependencies - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 6dcf35b41b6e8273e2d08c58bceabb41a4ca409a Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 10 13:08:34 2024 +1100 Bump mkdocs-material from 9.5.47 to 9.5.48 in /docs in the dependencies group across 1 directory (#8645) * Bump mkdocs-material Bumps the dependencies group with 1 update in the /docs directory: [mkdocs-material](https://github.com/squidfunk/mkdocs-material). Updates `mkdocs-material` from 9.5.47 to 9.5.48 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.47...9.5.48) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * fix req --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Mair <[email protected]> commit 987e0272f4a0c0e2e4751f4e6adb8ffc7102bb31 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon Dec 9 07:37:13 2024 +1100 Bump django from 4.2.16 to 4.2.17 in /src/backend (#8634) * Bump django from 4.2.16 to 4.2.17 in /src/backend Bumps [django](https://github.com/django/django) from 4.2.16 to 4.2.17. - [Commits](https://github.com/django/django/compare/4.2.16...4.2.17) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * fix req --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Mair <[email protected]> commit 82bce192e67c13063ec85a84663dfde4526f3666 Author: Oliver <[email protected]> Date: Fri Dec 6 14:44:13 2024 +1100 Fix URL generation error (#8630) - Implement better helper function for handling URL generation - Handle errors in said function commit 9f120ef76f38b94d87adb02a3699b9c1ad16b4f2 Author: Oliver <[email protected]> Date: Fri Dec 6 14:41:28 2024 +1100 Bug fix for stock transfer (#8631) - Prevent duplication of tracking data commit 4e36c7a2d7808be55f00c98915f0fca44d23a9d9 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu Dec 5 19:53:16 2024 +1100 New Crowdin translations by GitHub Action (#8589) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit 744dc895e9f71c60d7af4a772ab8c0b000f01c08 Author: Oliver <[email protected]> Date: Wed Dec 4 17:56:56 2024 +1100 Fix ordering issue in notifications table (#8626) commit 1a8b0308198a913504d911c872a83f1283b06ef3 Author: Oliver <[email protected]> Date: Tue Dec 3 15:21:06 2024 +1100 [PUI] Supplier part badges (#8625) * API fixes for SupplierPart - Move API filtering into SupplierPartFilter class - Correct field annotation for detail view * Add "in stock" and "no stock" badges to SupplierPart detail * Update details * Annotate 'on_order' quantity for SupplierPart * Add "has_stock" filter to SupplierPart API * Improve API query efficiency * Add 'has_stock' filter to table * Update <SupplierPartDetail> * Bump API version commit 9ab18f1da78fb8fa69b15ac828e7f6ac5b2ca2df Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 3 14:04:51 2024 +1100 Bump docker/build-push-action in the dependencies group (#8620) Bumps the dependencies group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action). Updates `docker/build-push-action` from 6.9.0 to 6.10.0 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/4f58ea79222b3b9dc2c8bbdd6debcef730109a75...48aba3b46d1b1fec4febb7c5d0c644b249a11355) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 47b8f8fb32c0b2fdecd7b97bfd4cc87248ebd384 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 3 14:04:39 2024 +1100 Bump pyjwt from 2.10.0 to 2.10.1 in /src/backend (#8619) * Bump pyjwt from 2.10.0 to 2.10.1 in /src/backend Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.10.0 to 2.10.1. - [Release notes](https://github.com/jpadilla/pyjwt/releases) - [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst) - [Commits](https://github.com/jpadilla/pyjwt/compare/2.10.0...2.10.1) --- updated-dependencies: - dependency-name: pyjwt dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * fix req --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Mair <[email protected]> commit 893a54c38aec105ff4e3eb6a529ab4995aa8445c Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue Dec 3 09:08:27 2024 +1100 Bump the dependencies group across 2 directories with 3 updates (#8621) * Bump the dependencies group across 2 directories with 3 updates Bumps the dependencies group with 1 update in the /contrib/dev_reqs directory: [jc](https://github.com/kellyjonbrazil/jc). Bumps the dependencies group with 2 updates in the /docs directory: [mkdocs-include-markdown-plugin](https://github.com/mondeja/mkdocs-include-markdown-plugin) and [mkdocs-material](https://github.com/squidfunk/mkdocs-material). Updates `jc` from 1.25.3 to 1.25.4 - [Release notes](https://github.com/kellyjonbrazil/jc/releases) - [Changelog](https://github.com/kellyjonbrazil/jc/blob/master/CHANGELOG) - [Commits](https://github.com/kellyjonbrazil/jc/compare/v1.25.3...v1.25.4) Updates `mkdocs-include-markdown-plugin` from 7.1.1 to 7.1.2 - [Release notes](https://github.com/mondeja/mkdocs-include-markdown-plugin/releases) - [Commits](https://github.com/mondeja/mkdocs-include-markdown-plugin/compare/v7.1.1...v7.1.2) Updates `mkdocs-material` from 9.5.46 to 9.5.47 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.46...9.5.47) --- updated-dependencies: - dependency-name: jc dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: mkdocs-include-markdown-plugin dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * fix req --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthias Mair <[email protected]> commit a20fd9d2318acd0f39778bc4dba66d027e92b59b Author: Matthias Mair <[email protected]> Date: Mon Dec 2 23:07:18 2024 +0100 [PUI] fix Table Context Menu Links (#8623) * Add switch to disable context menu Fixes #8553 * make attachment links right-clickable commit 4f3e8cb0a022685866f519ba167a1640f335a3ce Author: Matthias Mair <[email protected]> Date: Mon Dec 2 11:42:31 2024 +0100 [PUI] infinite loop if classic frontend is disabled (#8614) Fixes #8575 commit 21cd28559968c58850a6f92cfb8dff98648d4def Author: Oliver <[email protected]> Date: Mon Dec 2 18:49:15 2024 +1100 [PUI] Url fixes (#8615) * Refactor URL generation - Use built-in URL function - Refactor "admin" button - Refactor API image - Refactor printing actions - Refactor attachment link * Refactor URL generation for icon packs commit 147ca53629cbccfa117b755678941c97b9348312 Author: Oliver <[email protected]> Date: Mon Dec 2 13:41:31 2024 +1100 Build required widget (#8610) * Implement "required for build orders" dashboard widget * Allow dashboard widges to be optionally disabled * Fix for enabled check commit f7697bd481a3d377ddab212265bd040939ceb66b Author: Matthias Mair <[email protected]> Date: Mon Dec 2 00:49:28 2024 +0100 make logic simpler (#8613) commit f9487597fbc1a780ea238289d21a9c3e3ab6fd4f Author: Matthias Mair <[email protected]> Date: Mon Dec 2 00:48:44 2024 +0100 [PUI] Make dashboard header look less like a widget (#8611) * blend in header * move indicator commit 8ac852728e10d75a7552f0bac16d1a8e4b2214ef Author: Michael <[email protected]> Date: Sun Dec 1 23:47:49 2024 +0100 Added a comment on database creation for local testing (#8603) * New pic * Marked external icon in picture * Added a comment on database creation for unittest * Update contributing.md --------- Co-authored-by: Oliver <[email protected]> commit 7a3ceb9d6e110607b802c996dee3162eb6225012 Author: Oliver <[email protected]> Date: Sat Nov 30 21:32:48 2024 +1100 Fix for hasOwn (#8600) - Also add null check on function call - Closes https://github.com/inventree/InvenTree/issues/8595 commit 3149ae79ceecf0b3bc1139e04ed8829b8b712cb0 Author: Oliver <[email protected]> Date: Sat Nov 30 15:30:28 2024 +1100 Allow settings value to be nullified (#8596) * Allow settings value to be nullified * Additional null check * Bump API version * Fix for unit test commit 327884ca2691887b4c034deb921eaee3abd28b97 Author: Oliver <[email protected]> Date: Fri Nov 29 17:32:15 2024 +1100 [PUI] Barcode title (#8591) * Increase query limit * PUI: Barcode UI tweaks - Small visual tweaks to barcode dialogs commit 20d862e350fb191a6f7624ca3dd711de7af67001 Author: Oliver <[email protected]> Date: Fri Nov 29 17:06:35 2024 +1100 Return Order - Improvements (#8590) * Increase query limit * Add "quantity" field to ReturnOrderLineItem model * Add 'quantity' to serializer * Optionally split stock when returning from customer * Update the line item when splitting * PUI updates * Bump API version * Add unit test commit dd9a6a8a2d5f1c849b0f91ebd6f98c37c34b6a42 Author: Oliver <[email protected]> Date: Fri Nov 29 12:05:05 2024 +1100 Event enum (#8573) * Add enumeration for stock events * Update function def * Refactor build events * Plugin events * Update order events * Overdue order events * Add documentation * Revert mkdocs.yml * Stringify event name * Enum cleanup - Support python < 3.11 - Custom __str__ * Add unit tests * Fix duplicated code * Update unit tests * Bump query limit * Use proper enums in unit tests commit 390828d166231f10743eb7f8233747795434e250 Author: Oliver <[email protected]> Date: Fri Nov 29 10:45:24 2024 +1100 Hide "location" column in certain conditions (#8587) commit ced695b099301a10b9a6eedcb7fa7b9aa296d251 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri Nov 29 10:45:13 2024 +1100 New Crowdin translations by GitHub Action (#8536) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> commit b27820250a3627955c889a1bd1ff98c634403d1b Author: Oliver <[email protected]> Date: Fri Nov 29 10:08:40 2024 +1100 Add extra section to release notes (#8586) commit 7478a2853a521c35ca7fa4f0ff941cf4838a958e Author: Matthias Mair <[email protected]> Date: Thu Nov 28 21:48:19 2024 +0100 [PUI] Fix stock item state rendering (#8572) * fix rendering of stock status * update api to support custom status * Revert "update api to support custom status" This reverts commit e7ff5aa3984d6824d7cb29586aa22312cd8a76c6. commit db128f93221c1715b921960f0bf6b870dcec9edf Author: Oliver <[email protected]> Date: Thu Nov 28 15:48:06 2024 +1100 Bug fix: record shipment date (#8580) * Bug fix: record shipment date - Ref: https://github.com/inventree/InvenTree/pull/6449 * Update unit test commit 49cb63cb54209f99aa177860f33db0c230e32dab Author: Oliver <[email protected]> Date: Thu Nov 28 15:15:04 2024 +1100 Add "stock" table to "category" page (#8579) - Ref: https://github.com/inventree/InvenTree/discussions/8578 commit c074250ce6ed7ebcbdf21df45991f11b6b280ecf Author: Oliver <[email protected]> Date: Thu Nov 28 07:06:58 2024 +1100 Stock Transfer Improvements (#8570) * Allow transfer of items independent of status marker * Update test * Display errors in stock transsfer form * Add option to set status when transferring stock * Fix inStock check for stock actions * Allow adjustment of status when counting stock item * Allow status adjustment for other actions: - Remove stock - Add stock * Revert error behavior * Enhanced unit test * Unit test fix * Bump API version * Fix for playwright test - Added helper func * Extend playwright tests for stock actions commit 28ea275d1ab3b5125491fec603da71d645ea2696 Author: Oliver <[email protected]> Date: Thu Nov 28 00:59:14 2024 +1100 Consumed filter (#8574) * Add API filter for 'consumed' status * Add filter to table * Bump API vession commit a48d23b161266e2853a7f6cd827cafe10966c7b1 Author: Oliver <[email protected]> Date: Thu Nov 28 00:09:18 2024 +1100 Set status when returning from customer (#8571) * Set status when returning from customer * Fix default customer for return order table * Set status when receiving items against a ReturnOrder * Bump max query time for currency endpoint * Bump API version commit 81e87a65e2d576b61fd32500b78df40a6ad438b0 Author: Oliver <[email protected]> Date: Wed Nov 27 15:01:07 2024 +1100 [PUI] Fix stock actions (#8569) * Fix useAssignStockItems - Only allow "salable" parts * Assign item to customer * Adjust playwright tests commit af39189e7e805088bf1180e966feab07f25fcc62 Author: Matthias Mair <[email protected]> Date: Wed Nov 27 03:30:39 2024 +0100 Add SelectionList concept (#8054) * Add SelectionList model, APIs and simple tests * Add managment entries * Add field to serializer * add more tests for parameters * Add support for SelectionList to CUI * Add selection option to PUI * fix display * add PUI admin entries * remove get_api_url * fix modeldict * Add models for meta * Add test for inactive lists * Add locking and testing for locking * ignore unneeded section * Add PUI testing for adding parameter * Add selectionList admin * also allow creating entries * extend tests * force click * and more testing * adapt test? * more assurance? * make test more robust * more retries but shorter runs * Update playwright.config.ts * Add docs * Add note regarding administration * Adapt to https://github.com/inventree/InvenTree/pull/8093 * make help text more descriptive * fix migration * remove unneeded UI entries * add lables and describtions to TableFields * factor out selectionList forms * add key to button * cleanup imports * add editable fields * Add function to add row * fix render warning * remove dead parameter * fix migrations * fix migrations * fix format * autofix * fix migrations * fix create / update loop * fix addition of empty lists * extend tests * adjust changelog entry * fix updating loop * update test name * merge migrations * simplify request * - Add entry count to list - Move parameter table to default accordion * fix test * fix test clearing section --------- Co-authored-by: Oliver Walters <[email protected]> commit 20fb1250f811259bb9d5675b5815e528bf9411bc Author: Oliver <[email protected]> Date: Wed Nov 27 07:51:27 2024 +1100 Add new report filters for accessing database tables (#8560) * Add new report filters for accessing database tables * Simplify * Handle exception * Add docs * Update docstrings commit 368f3b7bd42a07594cb881dd06cd0dde445df6fb Author: Oliver <[email protected]> Date: Tue Nov 26 20:29:51 2024 +1100 Remove regex dependency (#8547) * Remove regex from requirements file * Fix order of operations - Remove hidden chars before removing HTML tags * Remove requirement for regex package * Additional unit tests * Remove debug msg * Fix for newline removal * Fix variable shadowing * Defer import of PIL.Image commit 9d2ca5e61749c5178546de677031ea9a9e38051c Author: Oliver <[email protected]> Date: Tue Nov 26 20:29:37 2024 +1100 Set null location on stock …
Directly calling the logging module does bypass structlog, this fixes that