Oliver
c79fc281fd
Fix typo ( #8757 )
...
- registraton -> registration
2024-12-25 07:38:39 +11:00
Matthias Mair
fe68dc7318
Refactor fix formatting exclusion ( #8746 )
...
* fix ruff exclusions
* aut-format
* Fix docstrings
* more fixes
* ignore error(s)
* fix imports
* adjust descriptions for build
2024-12-25 07:16:24 +11:00
Matthias Mair
1fec41cb71
Update qc_checks.yaml ( #8759 )
2024-12-24 21:42:39 +11:00
dependabot[bot]
02e43061b2
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] <support@github.com>
* fix req
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2024-12-24 11:54:10 +11:00
Matthias Mair
7f1cc4658b
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
2024-12-24 11:53:25 +11:00
Oliver
8fcebefa0b
Handle error when loading icon pack ( #8753 )
...
* Handle error when loading icon pack
* Update
2024-12-24 10:18:00 +11:00
dependabot[bot]
4e927bf697
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](b4b15b8c7c...6f51ac03b9
)
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](7f8b4b4bde...1e68e06f1d
)
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](df409f7d92...48ab28a6f5
)
---
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-24 07:23:52 +11:00
Matthias Mair
ec6280dacd
MFA add better logging ( #8745 )
...
* add better logging
* use structlog
2024-12-24 07:22:28 +11:00
Matthias Mair
728e0894aa
Factor out helper ( #8744 )
...
* facour out helper
* fix import path
2024-12-24 07:20:27 +11:00
Oliver
71eb2814d4
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
2024-12-24 07:19:36 +11:00
Oliver
f31ba657cc
API error handling ( #8739 )
...
* API error handling
- Add error handlers to various API calls
* Fix return type
2024-12-24 07:18:56 +11:00
github-actions[bot]
933330fa51
New Crowdin translations by GitHub Action ( #8683 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-23 10:36:39 +11:00
Matthias Mair
aa905166c5
Switch to zoneinfo from pytz ( #7645 )
...
* switch to zoneinfo from pytz
* fix lookup
* fix assert
* fix another round of assertions
2024-12-23 08:46:31 +11:00
Joe Rogers
0bcad6b340
Add separate dialog for 'Ship Order' button ( #8734 )
2024-12-22 16:08:45 +11:00
Oliver
d8207c88f0
Remove unused setting ( #8731 )
2024-12-21 08:33:31 +11:00
Oliver
aabcf52cd2
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
2024-12-20 14:53:39 +11:00
Oliver
68ac4118e9
[UI] Link fix ( #8726 )
...
- Fixes anchor issues in stock tracking table
2024-12-20 12:21:21 +11:00
Oliver
130bc84b44
Badge fix ( #8725 )
...
- Fix badge rendering for SalesOrderShipment
2024-12-20 12:13:00 +11:00
Matthias Mair
aad5575cd2
Fix MFA auth flow ( #8720 )
...
* Re-add html account base
Fixes #8690
* fix base template
2024-12-20 07:21:22 +11:00
Oliver
53792693f5
Allow backup_value to be specified to the 'getkey' report helper ( #8719 )
2024-12-19 09:24:01 +11:00
Matthias Mair
17fd7f32a4
consider INVENTREE_RESTRICT_ABOUT setting ( #8717 )
2024-12-19 08:37:39 +11:00
Oliver
6634bc54bd
Remove javascript rendering ( #8713 )
2024-12-19 07:34:01 +11:00
Oliver
88bfb23362
Cleanup tags ( #8712 )
...
* Remove part_allocation_count tag
* Remove more dead tags
2024-12-19 07:33:48 +11:00
Oliver
e37e72357a
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
2024-12-19 07:31:59 +11:00
Matthias Mair
1c9f56011c
Various SAST fixes ( #8718 )
...
* fix type
* fix typing
* fix python:S5713
* fix python:S1066
* fix python:S3516
* fix python:S5727
* fix python:S5886
2024-12-19 07:31:33 +11:00
Oliver
1493bbaac6
[Refactor] Template fix ( #8710 )
...
* Commonize favicon template
* Cleanup templates
2024-12-19 01:18:13 +11:00
Oliver
378d69f0b3
[UI] Enhanced null checks ( #8706 )
...
* Extra null check in SettingList.tsx
* Null checks on error responses
2024-12-19 00:59:56 +11:00
Oliver
1eaf3a4594
Image upload error ( #8700 )
...
* Add helper function for displaying API error message
* Provide feedback on image upload
* Update notification
2024-12-18 23:24:18 +11:00
Oliver
4569fd273d
Cast barcode scan IDs to list ( #8701 )
...
- Fixes issues with limitations on old MySQL server
2024-12-18 16:51:32 +11:00
Oliver
1910612725
Fix for table update ( #8698 )
...
- Retain data when updating a single record
- Fixes https://github.com/inventree/InvenTree/issues/8693
2024-12-18 14:21:31 +11:00
Oliver
9f1d1abd5b
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 <code@mjmair.com>
2024-12-18 09:25:14 +11:00
Oliver
886d1b39cf
Remove old javascript file ( #8697 )
2024-12-18 09:14:45 +11:00
Matthias Mair
8fcb3c2506
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
2024-12-17 22:20:21 +11:00
Oliver
acb756eacc
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
2024-12-17 13:48:43 +11:00
Matthias Mair
24f433c948
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
2024-12-17 12:30:41 +11:00
Oliver
bf8113a33e
Fix README.md ( #8682 )
2024-12-17 10:58:49 +11:00
Matthias Mair
d4be203b03
small style changes ( #8681 )
2024-12-17 10:31:21 +11:00
Matthias Mair
6fc7c4d2fe
Docker improve build times ( #8680 )
...
* Update docker.yaml (#278 )
* update README.md
2024-12-17 10:13:58 +11:00
Matthias Mair
9dc4fc1f8f
[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
2024-12-17 10:12:51 +11:00
github-actions[bot]
5d2329651a
New Crowdin translations by GitHub Action ( #8668 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-17 10:09:12 +11:00
Oliver
3041d9050b
Bump version number ( #8677 )
...
- Update to 0.18.0 dev
- Will likely become 1.0.0 dev
2024-12-17 09:16:38 +11:00
dependabot[bot]
1e4e3e65cc
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](c47758b77c...6524bf65af
)
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](55dc4ee224...df80a981bc
)
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](c4fbc64884...7668571508
)
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](aa57810251...df409f7d92
)
Updates `crowdin/github-action` from 2.4.0 to 2.5.0
- [Release notes](https://github.com/crowdin/github-action/releases )
- [Commits](a9ffb7d5ac...8dfaf9c206
)
---
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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-17 08:01:54 +11:00
dependabot[bot]
1518475d51
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] <support@github.com>
* fix req
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Mair <code@mjmair.com>
2024-12-17 08:01:45 +11:00
Oliver
d42435c841
[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
2024-12-17 07:39:49 +11:00
Oliver
169f4f8350
[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
2024-12-16 23:07:33 +11:00
Oliver
34b70d0a39
PUI: Adjust test result table ( #8667 )
...
- Allow disable of results for "disabled" tests
- Controlled via additional table filter
2024-12-16 14:28:27 +11:00
github-actions[bot]
88ab59359f
New Crowdin translations by GitHub Action ( #8654 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-16 09:50:27 +11:00
Michael
1bd51fc8a2
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
2024-12-15 07:53:09 +11:00
Matthias Mair
2b607a4a28
clean up refes ( #8663 )
2024-12-15 06:54:56 +11:00
Matthias Mair
57e7b8eed2
fix namespace of frontend install command ( #8662 )
...
Fixes #8656
2024-12-14 08:39:23 +11:00